Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.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.ParallelResistors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R.i.1.|R.i.2.|R1.i.1.|R1.i.2.|source.S.1.|source.S.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors") translateModel(Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R.i.1.|R.i.2.|R1.i.1.|R1.i.2.|source.S.1.|source.S.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001326/0.001326, allocations: 110.3 kB / 16.41 MB, free: 6.492 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.001329/0.001329, allocations: 185.5 kB / 17.34 MB, free: 5.766 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.454/1.454, 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 9.1.3-maint.9.1.x/package.mo): time 2.332/2.332, allocations: 390.3 MB / 0.6655 GB, free: 0.6719 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001487/0.001487, allocations: 59.91 kB / 0.9515 GB, free: 7.691 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.056/1.058, allocations: 140.4 MB / 1.089 GB, free: 5.539 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors): time 0.004061/1.062, allocations: 2.643 MB / 1.091 GB, free: 3.75 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002056/1.064, allocations: 1.315 MB / 1.092 GB, free: 2.859 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001174/1.064, allocations: 7.562 kB / 1.092 GB, free: 2.855 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.000727/1.065, allocations: 181.3 kB / 1.093 GB, free: 2.746 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0004191/1.065, allocations: 160.9 kB / 1.093 GB, free: 2.664 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004209/1.066, allocations: 165.7 kB / 1.093 GB, free: 2.586 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003506/1.066, allocations: 265.1 kB / 1.093 GB, free: 2.473 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003131/1.066, allocations: 140.9 kB / 1.093 GB, free: 2.41 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001802/1.067, allocations: 99.47 kB / 1.093 GB, free: 2.371 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002799/1.067, allocations: 127.5 kB / 1.094 GB, free: 2.32 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.67e-05/1.067, allocations: 14.5 kB / 1.094 GB, free: 2.32 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003006/1.067, allocations: 148.3 kB / 1.094 GB, free: 2.27 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 9.398e-05/1.067, allocations: 71.58 kB / 1.094 GB, free: 2.238 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001047/1.067, allocations: 88.3 kB / 1.094 GB, free: 2.188 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004519/1.068, allocations: 295.7 kB / 1.094 GB, free: 2.094 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/1.068, allocations: 0 / 1.094 GB, free: 2.094 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.683e-06/1.068, allocations: 0 / 1.094 GB, free: 2.094 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.622e-06/1.068, allocations: 0.6875 kB / 1.094 GB, free: 2.094 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: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.0007776/1.069, allocations: 0.4898 MB / 1.095 GB, free: 1.645 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/1.069, allocations: 9.094 kB / 1.095 GB, free: 1.645 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005175/1.069, allocations: 75.25 kB / 1.095 GB, free: 1.625 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002515/1.07, allocations: 239.8 kB / 1.095 GB, free: 1.398 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.803e-05/1.07, allocations: 14.44 kB / 1.095 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.103e-05/1.07, allocations: 9.25 kB / 1.095 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005548/1.07, allocations: 311.5 kB / 1.095 GB, free: 1.223 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.157e-05/1.07, allocations: 0.9375 kB / 1.095 GB, free: 1.223 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.758e-05/1.07, allocations: 10.53 kB / 1.095 GB, free: 1.215 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.613e-05/1.07, allocations: 23.39 kB / 1.095 GB, free: 1.215 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005556/1.071, allocations: 265.6 kB / 1.096 GB, free: 1.133 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001462/1.072, allocations: 1.501 MB / 1.097 GB, free: 15.81 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005667/1.073, allocations: 254.2 kB / 1.097 GB, free: 15.7 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002582/1.073, allocations: 129 kB / 1.097 GB, free: 15.65 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 1.73e-05/1.073, allocations: 1.438 kB / 1.097 GB, free: 15.65 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.887e-05/1.073, allocations: 37.19 kB / 1.097 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=15): time 1.803e-06/1.073, allocations: 0 / 1.097 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of matching and sorting (n=15): time 0.0008873/1.074, allocations: 347.1 kB / 1.098 GB, free: 15.48 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.733e-05/1.074, allocations: 79.48 kB / 1.098 GB, free: 15.39 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001892/1.074, allocations: 173.1 kB / 1.098 GB, free: 15.26 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.965e-05/1.074, allocations: 30.77 kB / 1.098 GB, free: 15.23 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 9.082e-05/1.075, allocations: 147.8 kB / 1.098 GB, free: 15.09 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 5.164e-05/1.075, allocations: 51.12 kB / 1.098 GB, free: 15.05 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000102/1.075, allocations: 44.45 kB / 1.098 GB, free: 15.03 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001318/1.075, allocations: 334.4 kB / 1.099 GB, free: 14.7 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002398/1.075, allocations: 112.1 kB / 1.099 GB, free: 14.66 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002816/1.075, allocations: 164.2 kB / 1.099 GB, free: 14.55 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005239/1.076, allocations: 286 kB / 1.099 GB, free: 14.39 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.566e-06/1.076, allocations: 4.625 kB / 1.099 GB, free: 14.39 MB / 0.8731 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006212/1.077, allocations: 301.7 kB / 1.099 GB, free: 14.27 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.993e-05/1.077, allocations: 5.594 kB / 1.099 GB, free: 14.27 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/1.077, allocations: 2.531 kB / 1.099 GB, free: 14.27 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.742e-05/1.077, allocations: 3.5 kB / 1.099 GB, free: 14.27 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002949/1.077, allocations: 59.62 kB / 1.099 GB, free: 14.26 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.066e-05/1.077, allocations: 3.734 kB / 1.099 GB, free: 14.26 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000215/1.077, allocations: 32.16 kB / 1.1 GB, free: 14.25 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.195e-05/1.077, allocations: 8.109 kB / 1.1 GB, free: 14.25 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000305/1.077, allocations: 199.7 kB / 1.1 GB, free: 14.12 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002596/1.078, allocations: 158.9 kB / 1.1 GB, free: 14.01 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004312/1.078, allocations: 255.7 kB / 1.1 GB, free: 13.86 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.124e-06/1.078, allocations: 4.688 kB / 1.1 GB, free: 13.86 MB / 0.8731 GB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0005433/1.079, allocations: 278.1 kB / 1.1 GB, free: 13.74 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.214e-05/1.079, allocations: 8.469 kB / 1.1 GB, free: 13.74 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.626e-06/1.079, allocations: 2.797 kB / 1.1 GB, free: 13.74 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.32e-06/1.079, allocations: 3.75 kB / 1.1 GB, free: 13.74 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000225/1.079, allocations: 51.05 kB / 1.1 GB, free: 13.74 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.873e-06/1.079, allocations: 3.922 kB / 1.1 GB, free: 13.74 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001873/1.079, allocations: 29.03 kB / 1.1 GB, free: 13.73 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.042e-05/1.079, allocations: 15.69 kB / 1.1 GB, free: 13.72 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (23): * Single equations (assignments): 23 * 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 prepare postOptimizeDAE: time 0.0001405/1.079, allocations: 196.2 kB / 1.101 GB, free: 13.52 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.502e-05/1.079, allocations: 17.31 kB / 1.101 GB, free: 13.52 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006161/1.08, allocations: 266.9 kB / 1.101 GB, free: 13.41 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/1.08, allocations: 1.625 kB / 1.101 GB, free: 13.41 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/1.08, allocations: 1.562 kB / 1.101 GB, free: 13.41 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/1.08, allocations: 1.359 kB / 1.101 GB, free: 13.41 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001185/1.081, allocations: 0.6813 MB / 1.102 GB, free: 12.95 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/1.081, allocations: 2.484 kB / 1.102 GB, free: 12.95 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002372/1.082, allocations: 47.2 kB / 1.102 GB, free: 12.95 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.16e-06/1.082, allocations: 2 kB / 1.102 GB, free: 12.95 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.104e-05/1.082, allocations: 15.38 kB / 1.102 GB, free: 12.93 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.599e-06/1.082, allocations: 2.766 kB / 1.102 GB, free: 12.93 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.98e-06/1.082, allocations: 2.062 kB / 1.102 GB, free: 12.93 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006417/1.082, allocations: 455.3 kB / 1.102 GB, free: 12.62 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001178/1.082, allocations: 115.3 kB / 1.102 GB, free: 12.51 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.999e-05/1.082, allocations: 9.766 kB / 1.102 GB, free: 12.5 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000215/1.083, allocations: 16.94 kB / 1.102 GB, free: 12.5 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.475e-05/1.083, allocations: 14.5 kB / 1.102 GB, free: 12.5 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.577e-05/1.083, allocations: 4.688 kB / 1.102 GB, free: 12.5 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.000136/1.083, allocations: 135 kB / 1.102 GB, free: 12.4 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.3e-07/1.083, allocations: 0 / 1.102 GB, free: 12.4 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0005214/1.083, allocations: 81.28 kB / 1.102 GB, free: 12.39 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (16): * Single equations (assignments): 16 * 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.0001251/1.084, allocations: 106.4 kB / 1.103 GB, free: 12.29 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0008973/1.084, allocations: 379.5 kB / 1.103 GB, free: 12.18 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/1.084, allocations: 0.5 kB / 1.103 GB, free: 12.18 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002749/1.085, allocations: 112 kB / 1.103 GB, free: 12.15 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004915/1.085, allocations: 48.5 kB / 1.103 GB, free: 12.13 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008741/1.086, allocations: 469.3 kB / 1.104 GB, free: 11.82 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003585/1.087, allocations: 0.7498 MB / 1.104 GB, free: 11.12 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.979e-05/1.087, allocations: 23.55 kB / 1.104 GB, free: 11.11 MB / 0.8731 GB Notification: Performance of SimCode: time 3.61e-07/1.087, allocations: 0 / 1.104 GB, free: 11.11 MB / 0.8731 GB Notification: Performance of Templates: time 0.005058/1.092, allocations: 2.594 MB / 1.107 GB, free: 10.9 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Loads_Examples_ParallelResistors.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches