Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.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.DynamicLoads,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dynRC.i.1.|dynRC.i.2.|dynRL.i.1.|dynRL.i.2.|dynRC.v.1.|dynRC.v.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads") translateModel(Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dynRC.i.1.|dynRC.i.2.|dynRL.i.1.|dynRL.i.2.|dynRC.v.1.|dynRC.v.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007712/0.007712, allocations: 96.62 kB / 15.73 MB, free: 6.043 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.001663/0.001663, allocations: 193.2 kB / 16.67 MB, free: 5.969 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.628/1.628, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.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.697/2.697, allocations: 390.2 MB / 0.6648 GB, free: 176 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 58.62 kB / 0.9508 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3588/0.3601, allocations: 140.4 MB / 1.088 GB, free: 1.484 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads): time 0.005313/0.3655, allocations: 3.252 MB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003581/0.3691, allocations: 2.023 MB / 1.093 GB, free: 12.18 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002239/0.3693, allocations: 7.938 kB / 1.093 GB, free: 12.17 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001068/0.3705, allocations: 286.8 kB / 1.093 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0006474/0.3711, allocations: 242.9 kB / 1.094 GB, free: 11.65 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000785/0.3719, allocations: 287.3 kB / 1.094 GB, free: 11.37 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0005017/0.3724, allocations: 410.7 kB / 1.094 GB, free: 10.97 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004013/0.3728, allocations: 200 kB / 1.094 GB, free: 10.77 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002419/0.3731, allocations: 167.4 kB / 1.095 GB, free: 10.61 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004176/0.3735, allocations: 199.3 kB / 1.095 GB, free: 10.41 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.11e-05/0.3736, allocations: 24 kB / 1.095 GB, free: 10.39 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004858/0.3741, allocations: 267.5 kB / 1.095 GB, free: 10.12 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001335/0.3742, allocations: 123.6 kB / 1.095 GB, free: 10 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001662/0.3744, allocations: 143.3 kB / 1.095 GB, free: 9.863 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0006672/0.3751, allocations: 0.4982 MB / 1.096 GB, free: 9.363 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.3751, allocations: 0 / 1.096 GB, free: 9.363 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.633e-06/0.3751, allocations: 0 / 1.096 GB, free: 9.363 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.056e-06/0.3751, allocations: 0 / 1.096 GB, free: 9.363 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.001193/0.3763, allocations: 0.5998 MB / 1.096 GB, free: 8.715 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/0.3763, allocations: 12.03 kB / 1.096 GB, free: 8.703 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001018/0.3774, allocations: 116.6 kB / 1.097 GB, free: 8.59 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004817/0.3779, allocations: 288.5 kB / 1.097 GB, free: 8.266 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.135e-05/0.3779, allocations: 16.94 kB / 1.097 GB, free: 8.25 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001287/0.378, allocations: 32.73 kB / 1.097 GB, free: 8.219 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007051/0.3787, allocations: 457 kB / 1.097 GB, free: 7.734 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.66e-05/0.3788, allocations: 4 kB / 1.097 GB, free: 7.73 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.031e-05/0.3788, allocations: 11.98 kB / 1.097 GB, free: 7.719 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001431/0.379, allocations: 40.53 kB / 1.097 GB, free: 7.68 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006292/0.3796, allocations: 369.9 kB / 1.098 GB, free: 7.316 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002846/0.3824, allocations: 2.211 MB / 1.1 GB, free: 4.91 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004328/0.3829, allocations: 270.4 kB / 1.1 GB, free: 4.637 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000228/0.3831, allocations: 168.8 kB / 1.1 GB, free: 4.469 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.223e-05/0.3832, allocations: 4 kB / 1.1 GB, free: 4.465 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.822e-05/0.3832, allocations: 30.56 kB / 1.1 GB, free: 4.426 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=22): time 2.665e-06/0.3832, allocations: 4 kB / 1.1 GB, free: 4.422 MB / 0.8575 GB Notification: Performance of matching and sorting (n=23): time 0.001937/0.3851, allocations: 1.055 MB / 1.101 GB, free: 3.301 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.436e-05/0.3852, allocations: 55.41 kB / 1.101 GB, free: 3.234 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003187/0.3855, allocations: 256.9 kB / 1.102 GB, free: 2.977 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.794e-05/0.3856, allocations: 33.64 kB / 1.102 GB, free: 2.938 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001225/0.3857, allocations: 188.4 kB / 1.102 GB, free: 2.75 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 6.836e-05/0.3858, allocations: 99.2 kB / 1.102 GB, free: 2.652 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000128/0.3859, allocations: 77.62 kB / 1.102 GB, free: 2.57 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0002024/0.3861, allocations: 334.8 kB / 1.102 GB, free: 2.234 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002843/0.3864, allocations: 159.9 kB / 1.102 GB, free: 2.078 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003413/0.3868, allocations: 249.5 kB / 1.103 GB, free: 1.801 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006284/0.3874, allocations: 398.9 kB / 1.103 GB, free: 1.379 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.3874, allocations: 4 kB / 1.103 GB, free: 1.375 MB / 0.8575 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001196/0.3886, allocations: 0.6002 MB / 1.104 GB, free: 0.7656 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.042e-05/0.3886, allocations: 8.312 kB / 1.104 GB, free: 0.7578 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.3887, allocations: 4 kB / 1.104 GB, free: 0.7539 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006903/0.3894, allocations: 196.6 kB / 1.104 GB, free: 0.5586 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003296/0.3897, allocations: 67.83 kB / 1.104 GB, free: 0.4922 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003449/0.3932, allocations: 2.495 MB / 1.106 GB, free: 13.86 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005114/0.3937, allocations: 24.16 kB / 1.106 GB, free: 13.83 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.754e-05/0.3938, allocations: 23.92 kB / 1.106 GB, free: 13.81 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (32): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004299/0.3942, allocations: 157.8 kB / 1.107 GB, free: 13.64 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001005/0.3943, allocations: 27.8 kB / 1.107 GB, free: 13.62 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007678/0.3951, allocations: 357.9 kB / 1.107 GB, free: 13.27 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.906e-06/0.3951, allocations: 0 / 1.107 GB, free: 13.27 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.3951, allocations: 8 kB / 1.107 GB, free: 13.26 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.3951, allocations: 0 / 1.107 GB, free: 13.26 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001307/0.3964, allocations: 0.8122 MB / 1.108 GB, free: 12.39 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.027e-06/0.3964, allocations: 0 / 1.108 GB, free: 12.39 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004377/0.3969, allocations: 79.88 kB / 1.108 GB, free: 12.31 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.273e-06/0.3969, allocations: 4 kB / 1.108 GB, free: 12.3 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.083e-05/0.3969, allocations: 8 kB / 1.108 GB, free: 12.3 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.397, allocations: 0 / 1.108 GB, free: 12.3 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.397, allocations: 8.062 kB / 1.108 GB, free: 12.29 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008499/0.3978, allocations: 0.6105 MB / 1.108 GB, free: 11.66 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001974/0.398, allocations: 132.8 kB / 1.109 GB, free: 11.51 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.987e-05/0.3981, allocations: 8 kB / 1.109 GB, free: 11.5 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002441/0.3983, allocations: 11.98 kB / 1.109 GB, free: 11.49 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.248e-05/0.3984, allocations: 23.91 kB / 1.109 GB, free: 11.46 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.754e-05/0.3984, allocations: 8 kB / 1.109 GB, free: 11.46 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0002512/0.3987, allocations: 188.5 kB / 1.109 GB, free: 11.28 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3987, allocations: 0 / 1.109 GB, free: 11.28 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0004753/0.3992, allocations: 88 kB / 1.109 GB, free: 11.19 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dynRC.q[1],dynRC.q[2],dynRL.psi[1],dynRL.psi[2]) * 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 (24): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002261/0.3994, allocations: 107.2 kB / 1.109 GB, free: 11.07 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001087/0.4005, allocations: 0.5373 MB / 1.11 GB, free: 10.52 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.4005, allocations: 0 / 1.11 GB, free: 10.52 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0003128/0.4008, allocations: 155 kB / 1.11 GB, free: 10.38 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004993/0.4013, allocations: 64.44 kB / 1.11 GB, free: 10.31 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001626/0.403, allocations: 0.8355 MB / 1.111 GB, free: 9.441 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000574/0.4036, allocations: 0.7951 MB / 1.111 GB, free: 8.621 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0002531/0.4038, allocations: 82.91 kB / 1.111 GB, free: 8.543 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.136e-05/0.4039, allocations: 19.44 kB / 1.111 GB, free: 8.523 MB / 0.8731 GB Notification: Performance of SimCode: time 4.31e-07/0.4039, allocations: 0 / 1.111 GB, free: 8.523 MB / 0.8731 GB Notification: Performance of Templates: time 0.008687/0.4126, allocations: 4.194 MB / 1.116 GB, free: 4.355 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches