Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_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.001373/0.001373, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001766/0.001766, allocations: 196.6 kB / 16.53 MB, free: 6.664 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.386/1.386, allocations: 222.9 MB / 240.2 MB, free: 4.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.74/2.74, allocations: 472.6 MB / 0.7451 GB, free: 4.625 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001327/0.001327, allocations: 65.7 kB / 0.912 GB, free: 33.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3503/0.3516, allocations: 159.9 MB / 1.068 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.006293/0.358, allocations: 3.747 MB / 1.072 GB, free: 6.688 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.003014/0.361, allocations: 1.793 MB / 1.074 GB, free: 4.887 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002437/0.3613, allocations: 19.88 kB / 1.074 GB, free: 4.867 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0008331/0.3622, allocations: 274 kB / 1.074 GB, free: 4.602 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0006559/0.3628, allocations: 286.5 kB / 1.074 GB, free: 4.32 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006155/0.3635, allocations: 255.5 kB / 1.074 GB, free: 4.07 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0005871/0.3641, allocations: 0.601 MB / 1.075 GB, free: 3.469 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004242/0.3645, allocations: 262.5 kB / 1.075 GB, free: 3.207 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002892/0.3648, allocations: 223.1 kB / 1.075 GB, free: 2.988 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003052/0.3651, allocations: 239 kB / 1.076 GB, free: 2.754 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.957e-05/0.3652, allocations: 28 kB / 1.076 GB, free: 2.727 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004954/0.3657, allocations: 263.4 kB / 1.076 GB, free: 2.469 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.00013/0.3658, allocations: 123.6 kB / 1.076 GB, free: 2.348 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002034/0.366, allocations: 218.8 kB / 1.076 GB, free: 2.133 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0006386/0.3667, allocations: 0.5842 MB / 1.077 GB, free: 1.547 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.3667, allocations: 4 kB / 1.077 GB, free: 1.543 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.773e-06/0.3667, allocations: 0 / 1.077 GB, free: 1.543 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.184e-06/0.3667, allocations: 0 / 1.077 GB, free: 1.543 MB / 0.8262 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.00115/0.3679, allocations: 0.7285 MB / 1.078 GB, free: 0.7656 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.472e-05/0.3679, allocations: 11.97 kB / 1.078 GB, free: 0.7539 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008762/0.3688, allocations: 140.2 kB / 1.078 GB, free: 0.6172 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000471/0.3693, allocations: 371.7 kB / 1.078 GB, free: 220 kB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.189e-05/0.3693, allocations: 21.03 kB / 1.078 GB, free: 200 kB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.812e-05/0.3694, allocations: 32.36 kB / 1.078 GB, free: 168 kB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007943/0.3702, allocations: 0.5627 MB / 1.079 GB, free: 15.53 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.035e-05/0.3702, allocations: 7.938 kB / 1.079 GB, free: 15.52 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.781e-05/0.3702, allocations: 12 kB / 1.079 GB, free: 15.51 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.093e-05/0.3703, allocations: 40.53 kB / 1.079 GB, free: 15.47 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006895/0.371, allocations: 413.7 kB / 1.079 GB, free: 15.07 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002854/0.3739, allocations: 3.33 MB / 1.082 GB, free: 11.49 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006619/0.3746, allocations: 342.4 kB / 1.083 GB, free: 11.14 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003049/0.3749, allocations: 176.8 kB / 1.083 GB, free: 10.97 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.42e-05/0.3749, allocations: 7.938 kB / 1.083 GB, free: 10.96 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.434e-05/0.3749, allocations: 34.56 kB / 1.083 GB, free: 10.92 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=26): time 2.084e-06/0.3749, allocations: 0 / 1.083 GB, free: 10.92 MB / 0.8419 GB Notification: Performance of matching and sorting (n=27): time 0.002079/0.377, allocations: 1.066 MB / 1.084 GB, free: 9.781 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.842e-05/0.3771, allocations: 55.64 kB / 1.084 GB, free: 9.715 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003644/0.3775, allocations: 341.6 kB / 1.084 GB, free: 9.375 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.513e-05/0.3775, allocations: 25.7 kB / 1.084 GB, free: 9.344 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001611/0.3777, allocations: 251.4 kB / 1.085 GB, free: 9.094 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 6.948e-05/0.3777, allocations: 94.73 kB / 1.085 GB, free: 9 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001161/0.3779, allocations: 74.05 kB / 1.085 GB, free: 8.922 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001355/0.378, allocations: 346.8 kB / 1.085 GB, free: 8.574 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002818/0.3783, allocations: 148.8 kB / 1.085 GB, free: 8.426 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003616/0.3787, allocations: 295.4 kB / 1.085 GB, free: 8.074 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006721/0.3793, allocations: 476.2 kB / 1.086 GB, free: 7.547 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.3794, allocations: 8 kB / 1.086 GB, free: 7.539 MB / 0.8419 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0009565/0.3803, allocations: 0.5627 MB / 1.086 GB, free: 6.961 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.256e-05/0.3803, allocations: 9.562 kB / 1.087 GB, free: 6.953 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/0.3804, allocations: 4 kB / 1.087 GB, free: 6.949 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003149/0.3807, allocations: 82.52 kB / 1.087 GB, free: 6.859 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003375/0.381, allocations: 91.81 kB / 1.087 GB, free: 6.77 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.349e-05/0.3811, allocations: 20.2 kB / 1.087 GB, free: 6.75 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002604/0.3813, allocations: 23.92 kB / 1.087 GB, free: 6.727 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.01e-05/0.3814, allocations: 23.98 kB / 1.087 GB, free: 6.703 MB / 0.8419 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.0001875/0.3816, allocations: 173.6 kB / 1.087 GB, free: 6.523 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.537e-05/0.3816, allocations: 39.53 kB / 1.087 GB, free: 6.484 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008679/0.3825, allocations: 468.2 kB / 1.087 GB, free: 6.008 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.3825, allocations: 4 kB / 1.087 GB, free: 6.004 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.3825, allocations: 0 / 1.087 GB, free: 6.004 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.795e-06/0.3825, allocations: 7.969 kB / 1.087 GB, free: 5.996 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001434/0.384, allocations: 0.9645 MB / 1.088 GB, free: 4.957 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.384, allocations: 0 / 1.088 GB, free: 4.957 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002336/0.3842, allocations: 47.91 kB / 1.088 GB, free: 4.91 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002374/0.3845, allocations: 82.5 kB / 1.088 GB, free: 4.82 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.231e-05/0.3845, allocations: 8 kB / 1.088 GB, free: 4.812 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.46e-06/0.3845, allocations: 12.08 kB / 1.088 GB, free: 4.801 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.519e-06/0.3845, allocations: 3.938 kB / 1.088 GB, free: 4.797 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008614/0.3854, allocations: 0.5577 MB / 1.089 GB, free: 4.207 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001436/0.3856, allocations: 132.6 kB / 1.089 GB, free: 4.059 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.164e-05/0.3856, allocations: 8 kB / 1.089 GB, free: 4.051 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002159/0.3858, allocations: 19.97 kB / 1.089 GB, free: 4.031 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.527e-05/0.3859, allocations: 27.91 kB / 1.089 GB, free: 4.004 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.498e-05/0.3859, allocations: 4 kB / 1.089 GB, free: 4 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002235/0.3862, allocations: 239.2 kB / 1.089 GB, free: 3.773 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3862, allocations: 0 / 1.089 GB, free: 3.773 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000412/0.3866, allocations: 92 kB / 1.09 GB, free: 3.684 MB / 0.8419 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.0001291/0.3867, allocations: 110.6 kB / 1.09 GB, free: 3.566 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0009159/0.3876, allocations: 0.6508 MB / 1.09 GB, free: 2.852 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3877, allocations: 0 / 1.09 GB, free: 2.852 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004455/0.3881, allocations: 437.6 kB / 1.091 GB, free: 2.359 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006996/0.3888, allocations: 122.9 kB / 1.091 GB, free: 2.238 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001122/0.39, allocations: 0.7386 MB / 1.092 GB, free: 1.461 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003924/0.3904, allocations: 0.8273 MB / 1.092 GB, free: 0.6094 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002326/0.3906, allocations: 83.33 kB / 1.092 GB, free: 0.5273 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.415e-05/0.3907, allocations: 27.44 kB / 1.092 GB, free: 0.5 MB / 0.8419 GB Notification: Performance of SimCode: time 2.9e-07/0.3907, allocations: 4 kB / 1.092 GB, free: 0.4961 MB / 0.8419 GB Notification: Performance of Templates: time 0.008758/0.3994, allocations: 4.677 MB / 1.097 GB, free: 11.88 MB / 0.8575 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches