Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.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_latest_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_latest_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.001589/0.001589, allocations: 108.7 kB / 16.41 MB, free: 6.027 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.001649/0.00165, allocations: 186.2 kB / 17.34 MB, free: 5.633 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.422/1.422, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.696/2.696, allocations: 461.9 MB / 0.7355 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001578/0.001578, allocations: 67.88 kB / 1.055 GB, free: 7.75 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9068/0.9084, allocations: 157.4 MB / 1.208 GB, free: 13.7 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads): time 0.00541/0.9138, allocations: 3.271 MB / 1.212 GB, free: 10.42 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.003703/0.9176, allocations: 2.01 MB / 1.214 GB, free: 8.398 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000326/0.9179, allocations: 7.938 kB / 1.214 GB, free: 8.391 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.001139/0.9191, allocations: 293.6 kB / 1.214 GB, free: 8.105 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0007582/0.9199, allocations: 238.9 kB / 1.214 GB, free: 7.871 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008657/0.9208, allocations: 291.3 kB / 1.214 GB, free: 7.586 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0006132/0.9214, allocations: 406.7 kB / 1.215 GB, free: 7.188 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004338/0.9219, allocations: 204.2 kB / 1.215 GB, free: 6.984 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003178/0.9222, allocations: 163.4 kB / 1.215 GB, free: 6.824 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004837/0.9227, allocations: 195.3 kB / 1.215 GB, free: 6.633 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 7.234e-05/0.9228, allocations: 24 kB / 1.215 GB, free: 6.609 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005665/0.9233, allocations: 267.5 kB / 1.216 GB, free: 6.348 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001551/0.9235, allocations: 123.7 kB / 1.216 GB, free: 6.227 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001915/0.9237, allocations: 151.2 kB / 1.216 GB, free: 6.078 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0007521/0.9245, allocations: 496.2 kB / 1.216 GB, free: 5.598 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.9245, allocations: 0 / 1.216 GB, free: 5.598 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.634e-06/0.9245, allocations: 0 / 1.216 GB, free: 5.598 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.642e-05/0.9245, allocations: 0 / 1.216 GB, free: 5.598 MB / 0.9356 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.001293/0.9258, allocations: 0.5926 MB / 1.217 GB, free: 4.953 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.9259, allocations: 12.03 kB / 1.217 GB, free: 4.941 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001071/0.927, allocations: 116.4 kB / 1.217 GB, free: 4.828 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003967/0.9274, allocations: 284.4 kB / 1.217 GB, free: 4.508 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.29e-05/0.9274, allocations: 16.94 kB / 1.217 GB, free: 4.492 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001368/0.9275, allocations: 36.73 kB / 1.217 GB, free: 4.457 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007705/0.9283, allocations: 457 kB / 1.218 GB, free: 3.977 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.043e-05/0.9283, allocations: 3.938 kB / 1.218 GB, free: 3.973 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.394e-05/0.9284, allocations: 15.98 kB / 1.218 GB, free: 3.957 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001551/0.9286, allocations: 36.53 kB / 1.218 GB, free: 3.922 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000663/0.9292, allocations: 365.9 kB / 1.218 GB, free: 3.566 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002635/0.9319, allocations: 2.218 MB / 1.22 GB, free: 1.148 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004567/0.9324, allocations: 266.3 kB / 1.221 GB, free: 0.8789 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002236/0.9326, allocations: 160.8 kB / 1.221 GB, free: 0.7188 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.352e-05/0.9326, allocations: 4 kB / 1.221 GB, free: 0.7148 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.239e-05/0.9327, allocations: 38.56 kB / 1.221 GB, free: 0.668 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=22): time 2.455e-06/0.9327, allocations: 0 / 1.221 GB, free: 0.668 MB / 0.9356 GB Notification: Performance of matching and sorting (n=23): time 0.001889/0.9346, allocations: 1.049 MB / 1.222 GB, free: 15.55 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.09e-05/0.9346, allocations: 59.41 kB / 1.222 GB, free: 15.48 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003249/0.935, allocations: 256.8 kB / 1.222 GB, free: 15.22 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.879e-05/0.935, allocations: 29.7 kB / 1.222 GB, free: 15.19 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001195/0.9351, allocations: 187.9 kB / 1.222 GB, free: 15 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 7.907e-05/0.9352, allocations: 86.73 kB / 1.222 GB, free: 14.91 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001313/0.9353, allocations: 77.67 kB / 1.222 GB, free: 14.83 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001227/0.9355, allocations: 338.8 kB / 1.223 GB, free: 14.49 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002881/0.9358, allocations: 155.9 kB / 1.223 GB, free: 14.34 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003437/0.9361, allocations: 245.5 kB / 1.223 GB, free: 14.06 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005755/0.9367, allocations: 414.8 kB / 1.224 GB, free: 13.62 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.029e-06/0.9367, allocations: 0 / 1.224 GB, free: 13.62 MB / 0.9512 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.00123/0.938, allocations: 0.6049 MB / 1.224 GB, free: 13.01 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/0.938, allocations: 4 kB / 1.224 GB, free: 13.01 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.114e-05/0.938, allocations: 4 kB / 1.224 GB, free: 13 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007118/0.9387, allocations: 192.8 kB / 1.224 GB, free: 12.81 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003373/0.9391, allocations: 63.89 kB / 1.224 GB, free: 12.75 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00302/0.9421, allocations: 2.489 MB / 1.227 GB, free: 10.12 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004285/0.9426, allocations: 27.97 kB / 1.227 GB, free: 10.09 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.545e-05/0.9426, allocations: 8 kB / 1.227 GB, free: 10.09 MB / 0.9512 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.0002203/0.9428, allocations: 173.8 kB / 1.227 GB, free: 9.906 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.184e-05/0.9429, allocations: 27.66 kB / 1.227 GB, free: 9.879 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005822/0.9435, allocations: 351.5 kB / 1.227 GB, free: 9.535 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.9435, allocations: 4 kB / 1.227 GB, free: 9.531 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.104e-06/0.9435, allocations: 0 / 1.227 GB, free: 9.531 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.9435, allocations: 4.094 kB / 1.227 GB, free: 9.527 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001102/0.9446, allocations: 0.8199 MB / 1.228 GB, free: 8.645 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.9447, allocations: 4.062 kB / 1.228 GB, free: 8.641 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004102/0.9451, allocations: 71.88 kB / 1.228 GB, free: 8.57 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.107e-06/0.9451, allocations: 7.984 kB / 1.228 GB, free: 8.562 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.097e-05/0.9451, allocations: 8 kB / 1.228 GB, free: 8.555 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.9451, allocations: 0 / 1.228 GB, free: 8.555 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.9451, allocations: 0 / 1.228 GB, free: 8.555 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007767/0.9459, allocations: 0.6229 MB / 1.229 GB, free: 7.914 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001384/0.9461, allocations: 124.8 kB / 1.229 GB, free: 7.773 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.298e-05/0.9461, allocations: 12 kB / 1.229 GB, free: 7.762 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002582/0.9464, allocations: 15.97 kB / 1.229 GB, free: 7.746 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.439e-05/0.9464, allocations: 19.92 kB / 1.229 GB, free: 7.727 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.579e-05/0.9465, allocations: 4 kB / 1.229 GB, free: 7.723 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.00024/0.9467, allocations: 188.5 kB / 1.229 GB, free: 7.535 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.9e-07/0.9467, allocations: 4 kB / 1.229 GB, free: 7.531 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0004586/0.9472, allocations: 88 kB / 1.229 GB, free: 7.445 MB / 0.9512 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.0001771/0.9474, allocations: 111.2 kB / 1.229 GB, free: 7.324 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001054/0.9484, allocations: 0.5377 MB / 1.23 GB, free: 6.773 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.9484, allocations: 0 / 1.23 GB, free: 6.773 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0002087/0.9487, allocations: 147.8 kB / 1.23 GB, free: 6.629 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004965/0.9492, allocations: 73.69 kB / 1.23 GB, free: 6.562 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001561/0.9507, allocations: 0.8542 MB / 1.231 GB, free: 5.664 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003761/0.9511, allocations: 0.7989 MB / 1.232 GB, free: 4.84 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001126/0.9512, allocations: 27.44 kB / 1.232 GB, free: 4.812 MB / 0.9512 GB Notification: Performance of SimCode: time 4.81e-07/0.9513, allocations: 0 / 1.232 GB, free: 4.812 MB / 0.9512 GB Notification: Performance of Templates: time 0.007877/0.9591, allocations: 4.568 MB / 1.236 GB, free: 260 kB / 0.9512 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches