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.001493/0.001493, allocations: 112.5 kB / 15.73 MB, free: 76 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.001779/0.001779, allocations: 188.9 kB / 16.66 MB, free: 6.582 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.388/1.388, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.758/2.758, allocations: 472.6 MB / 0.7452 GB, free: 4.609 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001405/0.001405, allocations: 71.89 kB / 1.069 GB, free: 9.211 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3328/0.3342, allocations: 159.9 MB / 1.226 GB, free: 9.203 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.005352/0.3396, allocations: 3.763 MB / 1.229 GB, free: 5.422 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.00299/0.3426, allocations: 1.789 MB / 1.231 GB, free: 3.625 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002265/0.3428, allocations: 19.88 kB / 1.231 GB, free: 3.605 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0008702/0.3437, allocations: 266.6 kB / 1.231 GB, free: 3.344 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0006701/0.3444, allocations: 294.5 kB / 1.232 GB, free: 3.055 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005742/0.345, allocations: 251.4 kB / 1.232 GB, free: 2.809 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0006995/0.3457, allocations: 0.601 MB / 1.232 GB, free: 2.207 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004698/0.3462, allocations: 266.5 kB / 1.233 GB, free: 1.941 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003843/0.3466, allocations: 231.1 kB / 1.233 GB, free: 1.715 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003176/0.3469, allocations: 235 kB / 1.233 GB, free: 1.484 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.908e-05/0.347, allocations: 24 kB / 1.233 GB, free: 1.461 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004625/0.3474, allocations: 283.4 kB / 1.233 GB, free: 1.184 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001238/0.3476, allocations: 111.7 kB / 1.233 GB, free: 1.074 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001953/0.3478, allocations: 214.8 kB / 1.234 GB, free: 0.8633 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0006371/0.3484, allocations: 0.5913 MB / 1.234 GB, free: 276 kB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.3484, allocations: 0 / 1.234 GB, free: 276 kB / 0.9825 GB Notification: Performance of FrontEnd: time 1.292e-06/0.3484, allocations: 0 / 1.234 GB, free: 276 kB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.143e-06/0.3485, allocations: 0 / 1.234 GB, free: 276 kB / 0.9825 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.001055/0.3495, allocations: 0.7457 MB / 1.235 GB, free: 15.47 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.634e-05/0.3496, allocations: 16.02 kB / 1.235 GB, free: 15.46 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008485/0.3504, allocations: 132.4 kB / 1.235 GB, free: 15.33 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004932/0.3509, allocations: 412 kB / 1.236 GB, free: 14.88 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.931e-05/0.3509, allocations: 21.03 kB / 1.236 GB, free: 14.86 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.281e-05/0.351, allocations: 36.3 kB / 1.236 GB, free: 14.83 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007483/0.3518, allocations: 0.5549 MB / 1.236 GB, free: 14.2 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.598e-05/0.3518, allocations: 0 / 1.236 GB, free: 14.2 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.722e-05/0.3518, allocations: 15.98 kB / 1.236 GB, free: 14.19 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.705e-05/0.3519, allocations: 44.53 kB / 1.236 GB, free: 14.14 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006628/0.3526, allocations: 417.6 kB / 1.237 GB, free: 13.74 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00253/0.3551, allocations: 3.33 MB / 1.24 GB, free: 10.16 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006287/0.3557, allocations: 326.5 kB / 1.24 GB, free: 9.828 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002885/0.356, allocations: 186.4 kB / 1.24 GB, free: 9.645 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.405e-05/0.3561, allocations: 0 / 1.24 GB, free: 9.645 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.368e-05/0.3561, allocations: 38.56 kB / 1.24 GB, free: 9.598 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=26): time 1.222e-06/0.3561, allocations: 0 / 1.24 GB, free: 9.598 MB / 0.9981 GB Notification: Performance of matching and sorting (n=27): time 0.001932/0.3581, allocations: 1.063 MB / 1.241 GB, free: 8.465 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.29e-05/0.3581, allocations: 55.64 kB / 1.241 GB, free: 8.398 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002997/0.3584, allocations: 341.6 kB / 1.242 GB, free: 8.055 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.244e-05/0.3584, allocations: 29.7 kB / 1.242 GB, free: 8.02 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001473/0.3586, allocations: 256.1 kB / 1.242 GB, free: 7.766 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 7.054e-05/0.3587, allocations: 99.16 kB / 1.242 GB, free: 7.668 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001108/0.3588, allocations: 82.08 kB / 1.242 GB, free: 7.578 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001151/0.3589, allocations: 342.8 kB / 1.243 GB, free: 7.234 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002713/0.3592, allocations: 156.7 kB / 1.243 GB, free: 7.082 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003369/0.3595, allocations: 282.5 kB / 1.243 GB, free: 6.742 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000635/0.3602, allocations: 491.2 kB / 1.243 GB, free: 6.199 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.3602, allocations: 0 / 1.243 GB, free: 6.199 MB / 0.9981 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0009458/0.3611, allocations: 0.5662 MB / 1.244 GB, free: 5.617 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.744e-05/0.3612, allocations: 12.09 kB / 1.244 GB, free: 5.605 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.3612, allocations: 4 kB / 1.244 GB, free: 5.602 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003154/0.3615, allocations: 90.44 kB / 1.244 GB, free: 5.504 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003243/0.3618, allocations: 87.83 kB / 1.244 GB, free: 5.418 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.903e-05/0.3619, allocations: 15.92 kB / 1.244 GB, free: 5.402 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000246/0.3621, allocations: 27.97 kB / 1.244 GB, free: 5.375 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.764e-05/0.3621, allocations: 20 kB / 1.244 GB, free: 5.355 MB / 0.9981 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.0001616/0.3623, allocations: 173.1 kB / 1.244 GB, free: 5.18 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.931e-05/0.3624, allocations: 47.66 kB / 1.244 GB, free: 5.133 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008572/0.3633, allocations: 472 kB / 1.245 GB, free: 4.652 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.159e-06/0.3633, allocations: 8 kB / 1.245 GB, free: 4.645 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/0.3633, allocations: 3.938 kB / 1.245 GB, free: 4.641 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.3633, allocations: 0 / 1.245 GB, free: 4.641 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001325/0.3646, allocations: 0.9521 MB / 1.246 GB, free: 3.613 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.3646, allocations: 4.094 kB / 1.246 GB, free: 3.609 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002319/0.3649, allocations: 51.89 kB / 1.246 GB, free: 3.559 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000233/0.3651, allocations: 82.52 kB / 1.246 GB, free: 3.469 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.942e-05/0.3651, allocations: 4 kB / 1.246 GB, free: 3.465 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.798e-06/0.3652, allocations: 7.938 kB / 1.246 GB, free: 3.457 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.3652, allocations: 3.938 kB / 1.246 GB, free: 3.453 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008036/0.366, allocations: 0.5512 MB / 1.247 GB, free: 2.867 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001291/0.3661, allocations: 140.8 kB / 1.247 GB, free: 2.711 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.831e-05/0.3662, allocations: 11.98 kB / 1.247 GB, free: 2.699 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002193/0.3664, allocations: 23.97 kB / 1.247 GB, free: 2.676 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.324e-05/0.3665, allocations: 23.91 kB / 1.247 GB, free: 2.652 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.224e-05/0.3665, allocations: 11.98 kB / 1.247 GB, free: 2.641 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001976/0.3667, allocations: 235.2 kB / 1.247 GB, free: 2.418 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3667, allocations: 0 / 1.247 GB, free: 2.418 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003975/0.3671, allocations: 84 kB / 1.247 GB, free: 2.336 MB / 0.9981 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.0001201/0.3672, allocations: 107.2 kB / 1.247 GB, free: 2.219 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0008526/0.3681, allocations: 0.6328 MB / 1.248 GB, free: 1.523 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/0.3681, allocations: 4.188 kB / 1.248 GB, free: 1.52 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004365/0.3685, allocations: 433.6 kB / 1.248 GB, free: 1.031 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006768/0.3692, allocations: 131.7 kB / 1.248 GB, free: 0.9062 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001025/0.3703, allocations: 0.737 MB / 1.249 GB, free: 140 kB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.6245/0.9948, allocations: 0.8223 MB / 1.25 GB, free: 26.61 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0003694/0.9952, allocations: 76.25 kB / 1.25 GB, free: 26.61 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.85e-05/0.9953, allocations: 30.45 kB / 1.25 GB, free: 26.6 MB / 0.9981 GB Notification: Performance of SimCode: time 1.203e-06/0.9953, allocations: 1.75 kB / 1.25 GB, free: 26.6 MB / 0.9981 GB Notification: Performance of Templates: time 0.0119/1.007, allocations: 4.744 MB / 1.255 GB, free: 26.43 MB / 0.9981 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