Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001806/0.001806, allocations: 110.7 kB / 16.41 MB, free: 6.488 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.00234/0.00234, allocations: 187 kB / 17.34 MB, free: 5.762 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.366/1.366, 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 10.1.1-maint.10.0.x/package.mo): time 2.437/2.437, allocations: 437 MB / 0.7112 GB, free: 4.387 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001403/0.001403, allocations: 63.91 kB / 1.019 GB, free: 9.457 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8413/0.8427, allocations: 151.6 MB / 1.167 GB, free: 4.016 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad): time 0.00649/0.8493, allocations: 4.1 MB / 1.171 GB, free: 15.9 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.002973/0.8523, allocations: 1.589 MB / 1.173 GB, free: 14.3 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003677/0.8527, allocations: 11.94 kB / 1.173 GB, free: 14.29 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.001906/0.8546, allocations: 0.5891 MB / 1.173 GB, free: 13.7 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0007451/0.8554, allocations: 238.8 kB / 1.174 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.000639/0.856, allocations: 223.5 kB / 1.174 GB, free: 13.25 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0007641/0.8568, allocations: 0.5452 MB / 1.174 GB, free: 12.7 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007712/0.8576, allocations: 475.5 kB / 1.175 GB, free: 12.23 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003652/0.858, allocations: 223.3 kB / 1.175 GB, free: 12.01 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000518/0.8585, allocations: 259.1 kB / 1.175 GB, free: 11.76 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 7.661e-05/0.8586, allocations: 36 kB / 1.175 GB, free: 11.72 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003288/0.8589, allocations: 163.7 kB / 1.175 GB, free: 11.56 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001693/0.8591, allocations: 151.6 kB / 1.176 GB, free: 11.41 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0002071/0.8593, allocations: 195.1 kB / 1.176 GB, free: 11.22 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0006552/0.86, allocations: 0.5217 MB / 1.176 GB, free: 10.7 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.86, allocations: 0 / 1.176 GB, free: 10.7 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.463e-06/0.86, allocations: 0 / 1.176 GB, free: 10.7 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.614e-05/0.86, allocations: 0 / 1.176 GB, free: 10.7 MB / 0.9044 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.001418/0.8614, allocations: 0.6826 MB / 1.177 GB, free: 9.969 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.8615, allocations: 12.03 kB / 1.177 GB, free: 9.957 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007871/0.8623, allocations: 100.5 kB / 1.177 GB, free: 9.859 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005302/0.8628, allocations: 311.6 kB / 1.177 GB, free: 9.516 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.043e-05/0.8629, allocations: 55.27 kB / 1.177 GB, free: 9.457 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.646e-05/0.863, allocations: 28.38 kB / 1.177 GB, free: 9.43 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009002/0.8639, allocations: 0.5048 MB / 1.178 GB, free: 8.902 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.716e-05/0.8639, allocations: 7.938 kB / 1.178 GB, free: 8.895 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.873e-05/0.864, allocations: 16 kB / 1.178 GB, free: 8.879 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.585e-05/0.8641, allocations: 28.98 kB / 1.178 GB, free: 8.852 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000752/0.8648, allocations: 379.7 kB / 1.178 GB, free: 8.48 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00278/0.8676, allocations: 2.204 MB / 1.181 GB, free: 6.047 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007063/0.8683, allocations: 254.7 kB / 1.181 GB, free: 5.789 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000361/0.8687, allocations: 152.8 kB / 1.181 GB, free: 5.637 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.814e-05/0.8687, allocations: 4 kB / 1.181 GB, free: 5.633 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.859e-05/0.8688, allocations: 38.5 kB / 1.181 GB, free: 5.586 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=19): time 1.653e-06/0.8688, allocations: 0 / 1.181 GB, free: 5.586 MB / 0.9044 GB Notification: Performance of matching and sorting (n=19): time 0.00157/0.8704, allocations: 0.5694 MB / 1.182 GB, free: 4.969 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.521e-05/0.8704, allocations: 59.39 kB / 1.182 GB, free: 4.898 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002296/0.8707, allocations: 221 kB / 1.182 GB, free: 4.68 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.671e-05/0.8707, allocations: 29.7 kB / 1.182 GB, free: 4.645 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.000134/0.8708, allocations: 219.6 kB / 1.182 GB, free: 4.426 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 5.139e-05/0.8709, allocations: 59.11 kB / 1.182 GB, free: 4.367 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.985e-05/0.871, allocations: 57.55 kB / 1.182 GB, free: 4.305 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001224/0.8711, allocations: 338.8 kB / 1.182 GB, free: 3.965 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002278/0.8714, allocations: 104.8 kB / 1.183 GB, free: 3.859 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002733/0.8716, allocations: 176.8 kB / 1.183 GB, free: 3.648 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004871/0.8721, allocations: 269.2 kB / 1.183 GB, free: 3.352 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.145e-06/0.8721, allocations: 4 kB / 1.183 GB, free: 3.348 MB / 0.9044 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009295/0.8731, allocations: 380.8 kB / 1.183 GB, free: 2.965 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.892e-05/0.8731, allocations: 10.5 kB / 1.183 GB, free: 2.957 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.8731, allocations: 0 / 1.183 GB, free: 2.957 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000535/0.8737, allocations: 109.9 kB / 1.183 GB, free: 2.844 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002328/0.8739, allocations: 51.91 kB / 1.184 GB, free: 2.793 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003447/0.8774, allocations: 3.047 MB / 1.186 GB, free: 15.45 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003217/0.8777, allocations: 35.67 kB / 1.187 GB, free: 15.41 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.998e-05/0.8778, allocations: 12.05 kB / 1.187 GB, free: 15.4 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003721/0.8781, allocations: 220 kB / 1.187 GB, free: 15.18 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002781/0.8784, allocations: 179 kB / 1.187 GB, free: 14.96 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004844/0.8789, allocations: 283.4 kB / 1.187 GB, free: 14.66 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.174e-06/0.8789, allocations: 0 / 1.187 GB, free: 14.66 MB / 0.92 GB Notification: Performance of matching and sorting (n=30) (initialization_lambda0): time 0.0008525/0.8798, allocations: 346.1 kB / 1.188 GB, free: 14.31 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/0.8798, allocations: 11.94 kB / 1.188 GB, free: 14.3 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.8798, allocations: 7.938 kB / 1.188 GB, free: 14.29 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003306/0.8802, allocations: 76.91 kB / 1.188 GB, free: 14.21 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000261/0.8804, allocations: 55.91 kB / 1.188 GB, free: 14.16 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002101/0.8826, allocations: 1.604 MB / 1.189 GB, free: 12.42 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002999/0.8829, allocations: 31.73 kB / 1.189 GB, free: 12.39 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.254e-05/0.8829, allocations: 15.94 kB / 1.189 GB, free: 12.37 MB / 0.92 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.0001536/0.8831, allocations: 201.3 kB / 1.189 GB, free: 12.17 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.079e-05/0.8831, allocations: 19.8 kB / 1.189 GB, free: 12.15 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.484e-05/0.8832, allocations: 34.25 kB / 1.19 GB, free: 12.11 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.394e-06/0.8832, allocations: 144 / 1.19 GB, free: 12.11 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.8832, allocations: 3.984 kB / 1.19 GB, free: 12.11 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.283e-06/0.8832, allocations: 7.922 kB / 1.19 GB, free: 12.1 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00145/0.8847, allocations: 0.8173 MB / 1.19 GB, free: 11.2 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.045e-06/0.8847, allocations: 0 / 1.19 GB, free: 11.2 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001606/0.8849, allocations: 39.91 kB / 1.19 GB, free: 11.16 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004063/0.8853, allocations: 101.7 kB / 1.19 GB, free: 11.06 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.837e-05/0.8853, allocations: 4 kB / 1.19 GB, free: 11.05 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003004/0.8883, allocations: 3.028 MB / 1.193 GB, free: 7.75 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.8883, allocations: 0 / 1.193 GB, free: 7.75 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007936/0.8891, allocations: 419.1 kB / 1.194 GB, free: 7.316 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001263/0.8893, allocations: 116.8 kB / 1.194 GB, free: 7.184 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.163e-05/0.8893, allocations: 8 kB / 1.194 GB, free: 7.176 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001775/0.8895, allocations: 15.98 kB / 1.194 GB, free: 7.16 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.985e-05/0.8896, allocations: 19.97 kB / 1.194 GB, free: 7.141 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.321e-05/0.8896, allocations: 4 kB / 1.194 GB, free: 7.137 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0001721/0.8898, allocations: 160.5 kB / 1.194 GB, free: 6.98 MB / 0.92 GB Notification: Performance of sort global known variables: time 2.31e-07/0.8898, allocations: 0 / 1.194 GB, free: 6.98 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0006453/0.8904, allocations: 167.3 kB / 1.194 GB, free: 6.816 MB / 0.92 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.0001205/0.8906, allocations: 115.1 kB / 1.194 GB, free: 6.695 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.001933/0.8925, allocations: 0.7602 MB / 1.195 GB, free: 5.898 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.8925, allocations: 3.938 kB / 1.195 GB, free: 5.895 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0007812/0.8933, allocations: 378 kB / 1.196 GB, free: 5.5 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004744/0.8938, allocations: 54.2 kB / 1.196 GB, free: 5.441 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001089/0.8949, allocations: 0.6238 MB / 1.196 GB, free: 4.777 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003914/0.8953, allocations: 0.8106 MB / 1.197 GB, free: 3.941 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.337e-05/0.8954, allocations: 23.44 kB / 1.197 GB, free: 3.922 MB / 0.92 GB Notification: Performance of SimCode: time 5.01e-07/0.8954, allocations: 0 / 1.197 GB, free: 3.922 MB / 0.92 GB Notification: Performance of Templates: time 0.008796/0.9042, allocations: 6.187 MB / 1.203 GB, free: 13.75 MB / 0.9356 GB make -j1 -f Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.makefile (rm -f Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.sim & ./Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_DC_Loads_Examples_LinearizedLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches