Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.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_latest_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_latest_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.001517/0.001517, allocations: 107.3 kB / 16.41 MB, free: 6.406 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.001724/0.001724, allocations: 188.9 kB / 17.34 MB, free: 5.695 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.42/1.42, allocations: 222.9 MB / 241 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.733/2.733, allocations: 461.9 MB / 0.7354 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001447/0.001447, allocations: 59.91 kB / 1.055 GB, free: 7.742 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7725/0.774, allocations: 157.4 MB / 1.208 GB, free: 13.66 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad): time 0.006157/0.7802, allocations: 4.106 MB / 1.212 GB, free: 9.543 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002759/0.783, allocations: 1.589 MB / 1.214 GB, free: 7.945 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000299/0.7833, allocations: 15.88 kB / 1.214 GB, free: 7.93 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.001746/0.785, allocations: 0.5798 MB / 1.215 GB, free: 7.348 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0006034/0.7857, allocations: 238.8 kB / 1.215 GB, free: 7.113 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005822/0.7862, allocations: 211.6 kB / 1.215 GB, free: 6.906 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0007189/0.787, allocations: 0.5413 MB / 1.215 GB, free: 6.363 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007519/0.7877, allocations: 465.6 kB / 1.216 GB, free: 5.902 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003508/0.7881, allocations: 235.3 kB / 1.216 GB, free: 5.672 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005189/0.7886, allocations: 247.1 kB / 1.216 GB, free: 5.43 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 8.284e-05/0.7887, allocations: 36 kB / 1.216 GB, free: 5.395 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000353/0.7891, allocations: 167.7 kB / 1.217 GB, free: 5.23 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001586/0.7893, allocations: 155.6 kB / 1.217 GB, free: 5.078 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0002178/0.7895, allocations: 191.1 kB / 1.217 GB, free: 4.891 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.000635/0.7901, allocations: 0.5313 MB / 1.217 GB, free: 4.359 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.7901, allocations: 0 / 1.217 GB, free: 4.359 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.813e-06/0.7901, allocations: 0 / 1.217 GB, free: 4.359 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.533e-05/0.7902, allocations: 0 / 1.217 GB, free: 4.359 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.00136/0.7915, allocations: 0.6787 MB / 1.218 GB, free: 3.633 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.858e-05/0.7916, allocations: 8.031 kB / 1.218 GB, free: 3.625 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001042/0.7926, allocations: 104.5 kB / 1.218 GB, free: 3.523 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004285/0.7931, allocations: 315.5 kB / 1.219 GB, free: 3.176 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.474e-05/0.7931, allocations: 51.27 kB / 1.219 GB, free: 3.121 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.331e-05/0.7932, allocations: 32.38 kB / 1.219 GB, free: 3.09 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008463/0.7941, allocations: 0.5009 MB / 1.219 GB, free: 2.566 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.59e-05/0.7941, allocations: 7.938 kB / 1.219 GB, free: 2.559 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.018e-05/0.7941, allocations: 15.98 kB / 1.219 GB, free: 2.543 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.036e-05/0.7942, allocations: 28.98 kB / 1.219 GB, free: 2.516 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007133/0.7949, allocations: 387.6 kB / 1.22 GB, free: 2.137 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002427/0.7973, allocations: 2.192 MB / 1.222 GB, free: 15.71 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006932/0.7981, allocations: 258.7 kB / 1.222 GB, free: 15.45 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003548/0.7984, allocations: 148.8 kB / 1.222 GB, free: 15.3 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.747e-05/0.7985, allocations: 8 kB / 1.222 GB, free: 15.3 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.764e-05/0.7985, allocations: 38.5 kB / 1.222 GB, free: 15.25 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=19): time 1.392e-06/0.7985, allocations: 0 / 1.222 GB, free: 15.25 MB / 0.9512 GB Notification: Performance of matching and sorting (n=19): time 0.001558/0.8001, allocations: 0.5683 MB / 1.223 GB, free: 14.63 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.533e-05/0.8001, allocations: 55.41 kB / 1.223 GB, free: 14.57 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002265/0.8004, allocations: 221 kB / 1.223 GB, free: 14.35 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.093e-05/0.8004, allocations: 33.7 kB / 1.223 GB, free: 14.31 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001525/0.8006, allocations: 215.6 kB / 1.223 GB, free: 14.09 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 5.56e-05/0.8006, allocations: 67.09 kB / 1.223 GB, free: 14.02 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001011/0.8007, allocations: 53.61 kB / 1.223 GB, free: 13.96 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001196/0.8009, allocations: 334.8 kB / 1.224 GB, free: 13.63 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002227/0.8011, allocations: 96.8 kB / 1.224 GB, free: 13.53 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002703/0.8014, allocations: 180 kB / 1.224 GB, free: 13.32 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004775/0.8018, allocations: 279.2 kB / 1.224 GB, free: 13.02 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.8019, allocations: 0 / 1.224 GB, free: 13.02 MB / 0.9512 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008713/0.8027, allocations: 377.5 kB / 1.224 GB, free: 12.64 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.713e-05/0.8028, allocations: 8 kB / 1.224 GB, free: 12.63 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.8028, allocations: 4 kB / 1.224 GB, free: 12.62 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005243/0.8033, allocations: 105.8 kB / 1.225 GB, free: 12.52 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002066/0.8035, allocations: 51.91 kB / 1.225 GB, free: 12.46 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00326/0.8068, allocations: 3.054 MB / 1.228 GB, free: 9.125 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002613/0.8071, allocations: 39.8 kB / 1.228 GB, free: 9.086 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.036e-05/0.8071, allocations: 11.94 kB / 1.228 GB, free: 9.074 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003392/0.8075, allocations: 224 kB / 1.228 GB, free: 8.852 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002651/0.8077, allocations: 184 kB / 1.228 GB, free: 8.633 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000465/0.8082, allocations: 269.2 kB / 1.228 GB, free: 8.336 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.244e-06/0.8082, allocations: 0 / 1.228 GB, free: 8.336 MB / 0.9512 GB Notification: Performance of matching and sorting (n=30) (initialization_lambda0): time 0.0008049/0.809, allocations: 351.6 kB / 1.229 GB, free: 7.984 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.46e-05/0.8091, allocations: 9.969 kB / 1.229 GB, free: 7.977 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.8091, allocations: 4 kB / 1.229 GB, free: 7.973 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002987/0.8094, allocations: 77.09 kB / 1.229 GB, free: 7.895 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002326/0.8096, allocations: 63.91 kB / 1.229 GB, free: 7.832 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001968/0.8116, allocations: 1.604 MB / 1.23 GB, free: 6.09 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000277/0.8119, allocations: 35.8 kB / 1.23 GB, free: 6.055 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.355e-05/0.8119, allocations: 15.94 kB / 1.23 GB, free: 6.039 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 (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.0001546/0.8121, allocations: 196.1 kB / 1.231 GB, free: 5.84 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.135e-05/0.8121, allocations: 23.81 kB / 1.231 GB, free: 5.816 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.655e-05/0.8122, allocations: 30.11 kB / 1.231 GB, free: 5.789 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.8122, allocations: 0 / 1.231 GB, free: 5.789 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.8122, allocations: 4 kB / 1.231 GB, free: 5.785 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.702e-06/0.8122, allocations: 3.938 kB / 1.231 GB, free: 5.781 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001411/0.8137, allocations: 0.8329 MB / 1.231 GB, free: 4.867 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.8137, allocations: 4.062 kB / 1.231 GB, free: 4.863 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001478/0.8138, allocations: 35.91 kB / 1.231 GB, free: 4.828 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003908/0.8142, allocations: 105.6 kB / 1.232 GB, free: 4.719 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.74e-05/0.8143, allocations: 0 / 1.232 GB, free: 4.719 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002943/0.8172, allocations: 3.023 MB / 1.235 GB, free: 1.418 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.8172, allocations: 0 / 1.235 GB, free: 1.418 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007989/0.818, allocations: 409.1 kB / 1.235 GB, free: 0.9922 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001248/0.8182, allocations: 120.8 kB / 1.235 GB, free: 0.8555 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.634e-05/0.8182, allocations: 8 kB / 1.235 GB, free: 0.8477 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001754/0.8184, allocations: 7.984 kB / 1.235 GB, free: 0.8398 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.294e-05/0.8185, allocations: 15.98 kB / 1.235 GB, free: 0.8242 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.765e-05/0.8185, allocations: 11.98 kB / 1.235 GB, free: 0.8125 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001606/0.8187, allocations: 164.5 kB / 1.235 GB, free: 0.6484 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.893e-06/0.8187, allocations: 0 / 1.235 GB, free: 0.6484 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0007017/0.8194, allocations: 179.2 kB / 1.235 GB, free: 484 kB / 0.9512 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.000133/0.8195, allocations: 103.2 kB / 1.236 GB, free: 372 kB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001982/0.8215, allocations: 0.7621 MB / 1.236 GB, free: 15.56 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.8215, allocations: 0 / 1.236 GB, free: 15.56 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0007934/0.8223, allocations: 371.5 kB / 1.237 GB, free: 15.18 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004766/0.8228, allocations: 63.19 kB / 1.237 GB, free: 15.11 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001101/0.8239, allocations: 0.6236 MB / 1.237 GB, free: 14.45 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003906/0.8243, allocations: 0.8146 MB / 1.238 GB, free: 13.61 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.923e-05/0.8244, allocations: 23.44 kB / 1.238 GB, free: 13.59 MB / 0.9669 GB Notification: Performance of SimCode: time 3e-07/0.8244, allocations: 3.938 kB / 1.238 GB, free: 13.58 MB / 0.9669 GB Notification: Performance of Templates: time 0.009006/0.8334, allocations: 6.178 MB / 1.244 GB, free: 7.414 MB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.sim & ./Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Loads_Examples_LinearizedLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches