Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Z_L.i.1.|Z_L.i.2.|Z_C.i.1.|Z_C.i.2.|Z_R.i.1.|Z_R.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance") translateModel(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Z_L.i.1.|Z_L.i.2.|Z_C.i.1.|Z_C.i.2.|Z_R.i.1.|Z_R.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001565/0.001566, allocations: 106.1 kB / 16.41 MB, free: 6.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001774/0.001774, allocations: 185.5 kB / 17.34 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.461/1.461, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.324/2.324, allocations: 390.3 MB / 0.6655 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00135/0.00135, allocations: 55.91 kB / 0.9515 GB, free: 7.66 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8469/0.8482, allocations: 140.4 MB / 1.089 GB, free: 5.527 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.004913/0.8532, allocations: 3.745 MB / 1.092 GB, free: 2.941 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002886/0.8561, allocations: 1.793 MB / 1.094 GB, free: 1.711 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003055/0.8564, allocations: 21.88 kB / 1.094 GB, free: 1.699 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0008954/0.8574, allocations: 271.8 kB / 1.094 GB, free: 1.535 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0007539/0.8582, allocations: 307.6 kB / 1.095 GB, free: 1.359 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006521/0.8588, allocations: 250.2 kB / 1.095 GB, free: 1.238 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0007918/0.8596, allocations: 0.6051 MB / 1.095 GB, free: 0.957 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000452/0.8601, allocations: 258.8 kB / 1.096 GB, free: 0.8398 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004408/0.8605, allocations: 240.9 kB / 1.096 GB, free: 0.7383 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003767/0.8609, allocations: 228.2 kB / 1.096 GB, free: 0.6406 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 7.058e-05/0.861, allocations: 26.62 kB / 1.096 GB, free: 0.6406 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006005/0.8616, allocations: 282.7 kB / 1.096 GB, free: 0.5391 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001746/0.8618, allocations: 126.5 kB / 1.097 GB, free: 492 kB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.000227/0.862, allocations: 214.7 kB / 1.097 GB, free: 360 kB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0008686/0.8629, allocations: 0.5857 MB / 1.097 GB, free: 152 kB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.74e-06/0.8629, allocations: 0.5625 kB / 1.097 GB, free: 152 kB / 0.8575 GB Notification: Performance of FrontEnd: time 1.883e-06/0.8629, allocations: 0 / 1.097 GB, free: 152 kB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.064e-05/0.8629, allocations: 0.5312 kB / 1.097 GB, free: 152 kB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001307/0.8643, allocations: 0.7302 MB / 1.098 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 5.749e-05/0.8643, allocations: 9.156 kB / 1.098 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009954/0.8653, allocations: 137.5 kB / 1.098 GB, free: 15.54 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006357/0.866, allocations: 414.7 kB / 1.099 GB, free: 15.23 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.749e-05/0.866, allocations: 28.17 kB / 1.099 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.424e-05/0.8661, allocations: 27.97 kB / 1.099 GB, free: 15.2 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009537/0.867, allocations: 0.5471 MB / 1.099 GB, free: 14.86 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.196e-05/0.8671, allocations: 9.625 kB / 1.099 GB, free: 14.85 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.29e-05/0.8671, allocations: 16.27 kB / 1.099 GB, free: 14.84 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.652e-05/0.8672, allocations: 46.06 kB / 1.099 GB, free: 14.83 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007788/0.868, allocations: 400 kB / 1.1 GB, free: 14.71 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003097/0.8711, allocations: 3.331 MB / 1.103 GB, free: 11.73 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007261/0.8718, allocations: 337.5 kB / 1.103 GB, free: 11.6 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003522/0.8722, allocations: 180.8 kB / 1.103 GB, free: 11.54 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 2.965e-05/0.8723, allocations: 7.641 kB / 1.103 GB, free: 11.53 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.306e-05/0.8723, allocations: 32.28 kB / 1.103 GB, free: 11.49 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=26): time 1.843e-06/0.8723, allocations: 0 / 1.103 GB, free: 11.49 MB / 0.8731 GB Notification: Performance of matching and sorting (n=27): time 0.002324/0.8746, allocations: 1.069 MB / 1.104 GB, free: 10.87 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.128e-05/0.8747, allocations: 55.36 kB / 1.104 GB, free: 10.8 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000483/0.8752, allocations: 339.2 kB / 1.105 GB, free: 10.63 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 3.171e-05/0.8752, allocations: 31.38 kB / 1.105 GB, free: 10.59 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001916/0.8754, allocations: 244.6 kB / 1.105 GB, free: 10.39 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 9.994e-05/0.8755, allocations: 99.78 kB / 1.105 GB, free: 10.31 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001208/0.8756, allocations: 79.59 kB / 1.105 GB, free: 10.26 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001368/0.8758, allocations: 346 kB / 1.106 GB, free: 9.934 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002902/0.8761, allocations: 147 kB / 1.106 GB, free: 9.891 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000398/0.8765, allocations: 293.2 kB / 1.106 GB, free: 9.656 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000679/0.8772, allocations: 483.8 kB / 1.106 GB, free: 9.332 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.8772, allocations: 1.094 kB / 1.106 GB, free: 9.332 MB / 0.8731 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001042/0.8782, allocations: 0.5618 MB / 1.107 GB, free: 9.086 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.979e-05/0.8783, allocations: 7.438 kB / 1.107 GB, free: 9.086 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-06/0.8783, allocations: 5.344 kB / 1.107 GB, free: 9.086 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003177/0.8786, allocations: 91.69 kB / 1.107 GB, free: 9.043 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003545/0.879, allocations: 91.98 kB / 1.107 GB, free: 9.031 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.439e-05/0.879, allocations: 7.828 kB / 1.107 GB, free: 9.031 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000299/0.8793, allocations: 32.39 kB / 1.107 GB, free: 9.02 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.255e-05/0.8793, allocations: 19.75 kB / 1.107 GB, free: 9.016 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (45): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002089/0.8795, allocations: 174.3 kB / 1.107 GB, free: 8.867 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.035e-05/0.8796, allocations: 38.88 kB / 1.107 GB, free: 8.848 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001009/0.8806, allocations: 472 kB / 1.108 GB, free: 8.637 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.043e-06/0.8807, allocations: 3.719 kB / 1.108 GB, free: 8.637 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.628e-06/0.8807, allocations: 5.156 kB / 1.108 GB, free: 8.633 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.8807, allocations: 2.281 kB / 1.108 GB, free: 8.633 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001693/0.8824, allocations: 0.9602 MB / 1.109 GB, free: 8.066 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.568e-06/0.8824, allocations: 1.797 kB / 1.109 GB, free: 8.066 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002429/0.8826, allocations: 58.34 kB / 1.109 GB, free: 8.055 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002454/0.8829, allocations: 79.06 kB / 1.109 GB, free: 8.02 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.513e-05/0.8829, allocations: 6.062 kB / 1.109 GB, free: 8.016 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.4e-06/0.8829, allocations: 2.703 kB / 1.109 GB, free: 8.016 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.883, allocations: 0.9375 kB / 1.109 GB, free: 8.016 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009309/0.8839, allocations: 0.5473 MB / 1.11 GB, free: 7.695 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001736/0.8841, allocations: 131.2 kB / 1.11 GB, free: 7.578 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.787e-05/0.8841, allocations: 11.61 kB / 1.11 GB, free: 7.57 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002302/0.8844, allocations: 25.02 kB / 1.11 GB, free: 7.562 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.132e-05/0.8845, allocations: 28.41 kB / 1.11 GB, free: 7.555 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.992e-05/0.8845, allocations: 5.25 kB / 1.11 GB, free: 7.555 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.000281/0.8848, allocations: 234.4 kB / 1.11 GB, free: 7.43 MB / 0.8731 GB Notification: Performance of sort global known variables: time 4.6e-07/0.8848, allocations: 0 / 1.11 GB, free: 7.43 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0004633/0.8853, allocations: 89.06 kB / 1.11 GB, free: 7.418 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001581/0.8854, allocations: 111.3 kB / 1.11 GB, free: 7.316 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0009632/0.8864, allocations: 0.6306 MB / 1.111 GB, free: 6.891 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.898e-06/0.8864, allocations: 0 / 1.111 GB, free: 6.891 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0004728/0.8869, allocations: 442.6 kB / 1.111 GB, free: 6.523 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007321/0.8876, allocations: 127.5 kB / 1.111 GB, free: 6.48 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001356/0.889, allocations: 0.7472 MB / 1.112 GB, free: 6.043 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005019/0.8895, allocations: 0.8257 MB / 1.113 GB, free: 5.328 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001137/0.8896, allocations: 32.83 kB / 1.113 GB, free: 5.324 MB / 0.8731 GB Notification: Performance of SimCode: time 4.21e-07/0.8896, allocations: 0 / 1.113 GB, free: 5.324 MB / 0.8731 GB Notification: Performance of Templates: time 0.01785/0.9075, allocations: 9.48 MB / 1.122 GB, free: 4.602 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches