Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.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.DC.Loads.Examples.LinearizedLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|error|sen_nlin.I|sen_lin.I|sen_nlin.V|sen_lin.V|sen_nlin.P|sen_lin.P",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad") translateModel(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|error|sen_nlin.I|sen_lin.I|sen_nlin.V|sen_lin.V|sen_nlin.P|sen_lin.P",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00165/0.00165, allocations: 103.5 kB / 16.4 MB, free: 6.469 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.001859/0.001859, allocations: 189.7 kB / 17.34 MB, free: 5.719 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.352/1.352, allocations: 222.9 MB / 241 MB, free: 15.17 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.227/2.227, allocations: 390.2 MB / 0.6655 GB, free: 0.6016 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001531/0.001531, allocations: 79.83 kB / 0.9515 GB, free: 7.637 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8322/0.8338, allocations: 140.4 MB / 1.089 GB, free: 5.504 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad): time 0.005275/0.8391, allocations: 4.096 MB / 1.093 GB, free: 2.75 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002546/0.8417, allocations: 1.592 MB / 1.094 GB, free: 1.66 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002241/0.8419, allocations: 11.06 kB / 1.094 GB, free: 1.656 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001627/0.8436, allocations: 0.584 MB / 1.095 GB, free: 1.305 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0006363/0.8442, allocations: 233.9 kB / 1.095 GB, free: 1.172 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006368/0.8449, allocations: 219.7 kB / 1.095 GB, free: 1.062 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0008162/0.8457, allocations: 0.5486 MB / 1.096 GB, free: 0.8242 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009071/0.8466, allocations: 472.3 kB / 1.096 GB, free: 0.625 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003522/0.847, allocations: 235.4 kB / 1.096 GB, free: 0.5234 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005623/0.8475, allocations: 257.5 kB / 1.097 GB, free: 424 kB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 8.551e-05/0.8476, allocations: 35.5 kB / 1.097 GB, free: 424 kB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004331/0.8481, allocations: 162.9 kB / 1.097 GB, free: 376 kB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001861/0.8483, allocations: 143.9 kB / 1.097 GB, free: 320 kB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002203/0.8485, allocations: 199.4 kB / 1.097 GB, free: 200 kB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0008149/0.8493, allocations: 0.5221 MB / 1.098 GB, free: 12 kB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.002e-06/0.8493, allocations: 0.9062 kB / 1.098 GB, free: 12 kB / 0.8575 GB Notification: Performance of FrontEnd: time 1.904e-06/0.8493, allocations: 3.938 kB / 1.098 GB, free: 8 kB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.685e-05/0.8494, allocations: 4 kB / 1.098 GB, free: 4 kB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001394/0.8508, allocations: 0.6737 MB / 1.098 GB, free: 15.48 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/0.8508, allocations: 9.875 kB / 1.098 GB, free: 15.48 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00074/0.8516, allocations: 109 kB / 1.098 GB, free: 15.46 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005106/0.8521, allocations: 306.5 kB / 1.099 GB, free: 15.2 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.946e-05/0.8522, allocations: 51.48 kB / 1.099 GB, free: 15.15 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.733e-05/0.8522, allocations: 34.44 kB / 1.099 GB, free: 15.14 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009404/0.8532, allocations: 0.5073 MB / 1.099 GB, free: 14.9 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.339e-05/0.8532, allocations: 0.5 kB / 1.099 GB, free: 14.9 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.334e-05/0.8533, allocations: 12.8 kB / 1.099 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.861e-05/0.8533, allocations: 32.34 kB / 1.099 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008106/0.8542, allocations: 382.9 kB / 1.1 GB, free: 14.77 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003032/0.8572, allocations: 2.2 MB / 1.102 GB, free: 12.91 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007308/0.858, allocations: 259.9 kB / 1.102 GB, free: 12.81 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004732/0.8584, allocations: 151.1 kB / 1.102 GB, free: 12.76 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 3.013e-05/0.8585, allocations: 3.062 kB / 1.102 GB, free: 12.76 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.225e-05/0.8585, allocations: 32.72 kB / 1.102 GB, free: 12.72 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=19): time 2.134e-06/0.8585, allocations: 4.469 kB / 1.102 GB, free: 12.71 MB / 0.8731 GB Notification: Performance of matching and sorting (n=19): time 0.001611/0.8602, allocations: 0.5808 MB / 1.103 GB, free: 12.36 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.889e-05/0.8602, allocations: 58.14 kB / 1.103 GB, free: 12.3 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002737/0.8605, allocations: 223.2 kB / 1.103 GB, free: 12.16 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 3.016e-05/0.8605, allocations: 31.11 kB / 1.103 GB, free: 12.12 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001362/0.8607, allocations: 207 kB / 1.103 GB, free: 11.95 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 6.668e-05/0.8607, allocations: 73.23 kB / 1.103 GB, free: 11.89 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001247/0.8609, allocations: 51.03 kB / 1.103 GB, free: 11.86 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001315/0.861, allocations: 334.8 kB / 1.104 GB, free: 11.54 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002844/0.8613, allocations: 95.81 kB / 1.104 GB, free: 11.5 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003303/0.8616, allocations: 184.1 kB / 1.104 GB, free: 11.36 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005303/0.8622, allocations: 278.7 kB / 1.104 GB, free: 11.19 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.8622, allocations: 1.219 kB / 1.104 GB, free: 11.19 MB / 0.8731 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009227/0.8631, allocations: 373.5 kB / 1.105 GB, free: 11.03 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.089e-05/0.8632, allocations: 7 kB / 1.105 GB, free: 11.03 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.096e-05/0.8632, allocations: 3.312 kB / 1.105 GB, free: 11.03 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005399/0.8637, allocations: 114.1 kB / 1.105 GB, free: 10.99 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002193/0.8639, allocations: 49.62 kB / 1.105 GB, free: 10.99 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003435/0.8674, allocations: 3.041 MB / 1.108 GB, free: 8.078 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003087/0.8677, allocations: 35.42 kB / 1.108 GB, free: 8.059 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.427e-05/0.8678, allocations: 9.562 kB / 1.108 GB, free: 8.059 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003958/0.8682, allocations: 225.6 kB / 1.108 GB, free: 7.926 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002827/0.8685, allocations: 182.5 kB / 1.108 GB, free: 7.785 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004659/0.8689, allocations: 274.3 kB / 1.109 GB, free: 7.613 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.783e-06/0.869, allocations: 1.812 kB / 1.109 GB, free: 7.613 MB / 0.8731 GB Notification: Performance of matching and sorting (n=30) (initialization_lambda0): time 0.0008894/0.8699, allocations: 350.9 kB / 1.109 GB, free: 7.469 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.564e-05/0.8699, allocations: 9.594 kB / 1.109 GB, free: 7.465 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.8699, allocations: 2.312 kB / 1.109 GB, free: 7.465 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003445/0.8702, allocations: 80.03 kB / 1.109 GB, free: 7.445 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002391/0.8705, allocations: 56.38 kB / 1.109 GB, free: 7.438 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002148/0.8727, allocations: 1.606 MB / 1.111 GB, free: 5.973 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003394/0.873, allocations: 28.23 kB / 1.111 GB, free: 5.961 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.98e-05/0.8731, allocations: 12.12 kB / 1.111 GB, free: 5.957 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 (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001741/0.8732, allocations: 207.1 kB / 1.111 GB, free: 5.754 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.781e-05/0.8733, allocations: 22.66 kB / 1.111 GB, free: 5.742 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.764e-05/0.8734, allocations: 30.95 kB / 1.111 GB, free: 5.723 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.8734, allocations: 9.625 kB / 1.111 GB, free: 5.715 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.8734, allocations: 0 / 1.111 GB, free: 5.715 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.115e-06/0.8734, allocations: 6.656 kB / 1.111 GB, free: 5.711 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001561/0.875, allocations: 0.827 MB / 1.112 GB, free: 5.152 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.117e-06/0.875, allocations: 1.812 kB / 1.112 GB, free: 5.152 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001499/0.8752, allocations: 31.83 kB / 1.112 GB, free: 5.148 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004223/0.8756, allocations: 105.2 kB / 1.112 GB, free: 5.113 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.823e-05/0.8756, allocations: 6.688 kB / 1.112 GB, free: 5.109 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003223/0.8789, allocations: 3.016 MB / 1.115 GB, free: 2.223 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.8789, allocations: 1.812 kB / 1.115 GB, free: 2.223 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008624/0.8798, allocations: 411.8 kB / 1.115 GB, free: 1.977 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000166/0.8799, allocations: 124 kB / 1.115 GB, free: 1.855 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.056e-05/0.88, allocations: 7.312 kB / 1.115 GB, free: 1.852 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001723/0.8802, allocations: 12.09 kB / 1.115 GB, free: 1.848 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.937e-05/0.8803, allocations: 20.11 kB / 1.115 GB, free: 1.844 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.826e-05/0.8803, allocations: 16.09 kB / 1.115 GB, free: 1.832 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001951/0.8805, allocations: 158 kB / 1.115 GB, free: 1.734 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8805, allocations: 0 / 1.115 GB, free: 1.734 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0007774/0.8813, allocations: 169.3 kB / 1.116 GB, free: 1.691 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (17): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001386/0.8814, allocations: 109.8 kB / 1.116 GB, free: 1.594 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.002034/0.8835, allocations: 0.7577 MB / 1.116 GB, free: 1.141 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/0.8835, allocations: 1.438 kB / 1.116 GB, free: 1.141 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0008091/0.8843, allocations: 366.2 kB / 1.117 GB, free: 0.8828 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000506/0.8848, allocations: 71.23 kB / 1.117 GB, free: 0.8516 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001508/0.8863, allocations: 0.624 MB / 1.117 GB, free: 476 kB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006265/0.887, allocations: 0.8098 MB / 1.118 GB, free: 15.75 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.032e-05/0.8871, allocations: 26.25 kB / 1.118 GB, free: 15.74 MB / 0.8887 GB Notification: Performance of SimCode: time 5.21e-07/0.8871, allocations: 0 / 1.118 GB, free: 15.74 MB / 0.8887 GB Notification: Performance of Templates: time 0.01181/0.8989, allocations: 6.189 MB / 1.124 GB, free: 15.27 MB / 0.8887 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.sim & ./Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Loads_Examples_LinearizedLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches