Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Z1.i.1.|Z1.i.2.|Z2.i.1.|Z2.i.2.|Z3.i.1.|Z3.i.2.|Z4.i.1.|Z4.i.2.|Z5.i.1.|Z5.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance") translateModel(Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Z1.i.1.|Z1.i.2.|Z2.i.1.|Z2.i.2.|Z3.i.1.|Z3.i.2.|Z4.i.1.|Z4.i.2.|Z5.i.1.|Z5.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.279/2.279, allocations: 390.3 MB / 405.3 MB, free: 13.44 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00163/0.00163, allocations: 185.1 kB / 498.1 MB, free: 5.672 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.504/1.504, allocations: 223.2 MB / 0.7948 GB, free: 17.89 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009045/0.0009045, allocations: 98.69 kB / 0.9346 GB, free: 6.172 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0005113/0.0005115, allocations: 11.25 kB / 1.084 GB, free: 221.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3595/0.3601, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2137/0.5738, allocations: 165.3 MB / 1.384 GB, free: 12.69 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003628/0.5743, allocations: 91.94 kB / 1.384 GB, free: 12.6 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.07931/0.6536, allocations: 32.43 MB / 1.416 GB, free: 11.83 MB / 0.9167 GB Notification: Performance of FrontEnd: time 4.198e-06/0.6537, allocations: 0 / 1.416 GB, free: 11.83 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 0.0001035/0.6538, allocations: 19.98 kB / 1.416 GB, free: 11.81 MB / 0.9167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 129 * Number of variables: 129 Notification: Performance of Generate backend data structure: time 0.002673/0.6565, allocations: 0.845 MB / 1.417 GB, free: 10.91 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 5.82e-05/0.6566, allocations: 12.03 kB / 1.417 GB, free: 10.9 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001532/0.6581, allocations: 214.8 kB / 1.417 GB, free: 10.69 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001181/0.6593, allocations: 488.3 kB / 1.418 GB, free: 10.17 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.718e-05/0.6594, allocations: 36.98 kB / 1.418 GB, free: 10.14 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001466/0.6595, allocations: 43.98 kB / 1.418 GB, free: 10.09 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001533/0.6611, allocations: 0.9276 MB / 1.419 GB, free: 8.988 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.219e-05/0.6611, allocations: 7.844 kB / 1.419 GB, free: 8.98 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.996e-05/0.6612, allocations: 28 kB / 1.419 GB, free: 8.953 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.013e-05/0.6613, allocations: 56.89 kB / 1.419 GB, free: 8.895 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009518/0.6623, allocations: 0.5617 MB / 1.419 GB, free: 8.336 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005229/0.6675, allocations: 5.666 MB / 1.425 GB, free: 2.273 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00064/0.6682, allocations: 450.3 kB / 1.425 GB, free: 1.824 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 2.929e-05/0.6682, allocations: 4 kB / 1.425 GB, free: 1.82 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.442e-05/0.6683, allocations: 42.52 kB / 1.425 GB, free: 1.77 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=32): time 3.156e-06/0.6683, allocations: 0 / 1.425 GB, free: 1.77 MB / 0.9167 GB Notification: Performance of matching and sorting (n=33): time 0.002775/0.6711, allocations: 1.495 MB / 1.427 GB, free: 164 kB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.741e-05/0.6711, allocations: 63.39 kB / 1.427 GB, free: 88 kB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.6845/1.356, allocations: 422.5 kB / 1.427 GB, free: 184.3 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 9.218e-05/1.356, allocations: 31.36 kB / 1.427 GB, free: 184.3 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002376/1.356, allocations: 342.4 kB / 1.428 GB, free: 184.2 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001194/1.356, allocations: 121.3 kB / 1.428 GB, free: 184.2 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.547e-05/1.356, allocations: 13.34 kB / 1.428 GB, free: 184.2 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001142/1.356, allocations: 364.2 kB / 1.428 GB, free: 183.8 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002811/1.357, allocations: 190.3 kB / 1.428 GB, free: 183.8 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003861/1.357, allocations: 406.2 kB / 1.429 GB, free: 183.6 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003496/1.357, allocations: 251 kB / 1.429 GB, free: 183.6 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.194e-06/1.357, allocations: 1.906 kB / 1.429 GB, free: 183.6 MB / 0.9167 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001422/1.359, allocations: 0.7809 MB / 1.43 GB, free: 183.5 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 2.77e-05/1.359, allocations: 8.125 kB / 1.43 GB, free: 183.5 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.515e-05/1.359, allocations: 7.453 kB / 1.43 GB, free: 183.5 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005421/1.359, allocations: 150.8 kB / 1.43 GB, free: 183.4 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000466/1.36, allocations: 115.3 kB / 1.43 GB, free: 183.4 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002742/1.363, allocations: 4.05 MB / 1.434 GB, free: 179.7 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004484/1.363, allocations: 35.89 kB / 1.434 GB, free: 179.7 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.59e-05/1.363, allocations: 26.06 kB / 1.434 GB, free: 179.7 MB / 0.9167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003003/1.363, allocations: 215.7 kB / 1.434 GB, free: 179.6 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.074e-05/1.364, allocations: 60.34 kB / 1.434 GB, free: 179.5 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001096/1.365, allocations: 0.6024 MB / 1.435 GB, free: 179.4 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/1.365, allocations: 2.219 kB / 1.435 GB, free: 179.4 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.91e-06/1.365, allocations: 5.469 kB / 1.435 GB, free: 179.4 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/1.365, allocations: 1.922 kB / 1.435 GB, free: 179.4 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002119/1.367, allocations: 1.265 MB / 1.436 GB, free: 179 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/1.367, allocations: 2.812 kB / 1.436 GB, free: 179 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002585/1.367, allocations: 57.23 kB / 1.436 GB, free: 179 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004296/1.368, allocations: 142.4 kB / 1.436 GB, free: 179 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.863e-05/1.368, allocations: 8.078 kB / 1.436 GB, free: 179 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002739/1.37, allocations: 4.051 MB / 1.44 GB, free: 175.2 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/1.37, allocations: 2.094 kB / 1.44 GB, free: 175.2 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001188/1.372, allocations: 0.7834 MB / 1.441 GB, free: 174.9 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002549/1.372, allocations: 171.4 kB / 1.441 GB, free: 174.7 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.664e-05/1.372, allocations: 7.172 kB / 1.441 GB, free: 174.7 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002476/1.372, allocations: 25.78 kB / 1.441 GB, free: 174.7 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.435e-05/1.372, allocations: 32.44 kB / 1.441 GB, free: 174.7 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.352e-05/1.372, allocations: 10.47 kB / 1.441 GB, free: 174.7 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0004188/1.373, allocations: 330.6 kB / 1.441 GB, free: 174.7 MB / 0.9167 GB Notification: Performance of sort global known variables: time 2.41e-07/1.373, allocations: 1.156 kB / 1.441 GB, free: 174.7 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0007456/1.373, allocations: 141.3 kB / 1.442 GB, free: 174.7 MB / 0.9167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000179/1.374, allocations: 126.1 kB / 1.442 GB, free: 174.6 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.001663/1.375, allocations: 1.019 MB / 1.443 GB, free: 174 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/1.375, allocations: 2.953 kB / 1.443 GB, free: 174 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0008623/1.376, allocations: 0.7332 MB / 1.443 GB, free: 173.5 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000831/1.377, allocations: 185 kB / 1.444 GB, free: 173.5 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00179/1.379, allocations: 1.214 MB / 1.445 GB, free: 172.9 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005071/1.379, allocations: 0.9204 MB / 1.446 GB, free: 172.2 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0003916/1.38, allocations: 115.9 kB / 1.446 GB, free: 172.1 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.277e-05/1.38, allocations: 36.78 kB / 1.446 GB, free: 172.1 MB / 0.9167 GB Notification: Performance of SimCode: time 8.12e-07/1.38, allocations: 0 / 1.446 GB, free: 172.1 MB / 0.9167 GB Notification: Performance of Templates: time 0.01879/1.399, allocations: 7.046 MB / 1.453 GB, free: 171.8 MB / 0.9167 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Loads_Examples_TestImpedance.csv","../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches