Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Electrical.DC.Loads.Examples.VariableLoad.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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.VariableLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|loa1.i.1.|loa2.i.1.|loa3.i.1.",fileNamePrefix="Buildings_11_Buildings.Electrical.DC.Loads.Examples.VariableLoad") translateModel(Buildings.Electrical.DC.Loads.Examples.VariableLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|loa1.i.1.|loa2.i.1.|loa3.i.1.",fileNamePrefix="Buildings_11_Buildings.Electrical.DC.Loads.Examples.VariableLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006834/0.006834, allocations: 99.41 kB / 15.73 MB, free: 6.039 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.001272/0.001272, allocations: 196 kB / 16.67 MB, free: 5.961 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.403/1.403, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.829/2.829, allocations: 469.8 MB / 0.7425 GB, free: 7.363 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001373/0.001373, allocations: 64.03 kB / 1.065 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3836/0.385, allocations: 159.1 MB / 1.221 GB, free: 13.82 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.VariableLoad): time 0.005728/0.3907, allocations: 3.879 MB / 1.224 GB, free: 9.922 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002885/0.3936, allocations: 1.776 MB / 1.226 GB, free: 8.137 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001672/0.3938, allocations: 7.938 kB / 1.226 GB, free: 8.129 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.001406/0.3952, allocations: 454 kB / 1.227 GB, free: 7.688 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0005371/0.3957, allocations: 246.8 kB / 1.227 GB, free: 7.445 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.000582/0.3963, allocations: 255.5 kB / 1.227 GB, free: 7.195 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.000546/0.3968, allocations: 0.4983 MB / 1.228 GB, free: 6.695 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005051/0.3974, allocations: 277 kB / 1.228 GB, free: 6.422 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000227/0.3976, allocations: 199.3 kB / 1.228 GB, free: 6.227 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003787/0.398, allocations: 231.2 kB / 1.228 GB, free: 6 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.817e-05/0.398, allocations: 28 kB / 1.228 GB, free: 5.973 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003187/0.3983, allocations: 191.5 kB / 1.228 GB, free: 5.785 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001534/0.3985, allocations: 139.6 kB / 1.229 GB, free: 5.648 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001628/0.3986, allocations: 179.1 kB / 1.229 GB, free: 5.473 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0005789/0.3992, allocations: 0.4903 MB / 1.229 GB, free: 4.98 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.3992, allocations: 0 / 1.229 GB, free: 4.98 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.373e-06/0.3992, allocations: 0 / 1.229 GB, free: 4.98 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.104e-06/0.3992, allocations: 0 / 1.229 GB, free: 4.98 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.001092/0.4003, allocations: 0.6699 MB / 1.23 GB, free: 4.262 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.515e-05/0.4004, allocations: 12.02 kB / 1.23 GB, free: 4.25 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005362/0.4009, allocations: 84.64 kB / 1.23 GB, free: 4.168 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003668/0.4013, allocations: 299.7 kB / 1.23 GB, free: 3.836 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.082e-05/0.4013, allocations: 25.03 kB / 1.23 GB, free: 3.812 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.754e-05/0.4013, allocations: 32.36 kB / 1.23 GB, free: 3.781 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007469/0.4021, allocations: 489.9 kB / 1.231 GB, free: 3.27 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.34e-05/0.4021, allocations: 4 kB / 1.231 GB, free: 3.266 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.36e-05/0.4021, allocations: 15.94 kB / 1.231 GB, free: 3.25 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.097e-05/0.4022, allocations: 40.62 kB / 1.231 GB, free: 3.211 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007073/0.4029, allocations: 362.2 kB / 1.231 GB, free: 2.855 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002019/0.4049, allocations: 2.033 MB / 1.233 GB, free: 0.6211 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005548/0.4055, allocations: 202.7 kB / 1.233 GB, free: 424 kB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003642/0.4058, allocations: 144.8 kB / 1.233 GB, free: 276 kB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.776e-05/0.4059, allocations: 0 / 1.233 GB, free: 276 kB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.526e-05/0.4059, allocations: 38.56 kB / 1.233 GB, free: 228 kB / 0.9825 GB Notification: Performance of pre-optimization done (n=18): time 1.192e-06/0.4059, allocations: 0 / 1.233 GB, free: 228 kB / 0.9825 GB Notification: Performance of matching and sorting (n=18): time 0.001117/0.407, allocations: 428.6 kB / 1.234 GB, free: 15.78 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.711e-05/0.4071, allocations: 55.34 kB / 1.234 GB, free: 15.71 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002514/0.4073, allocations: 266.7 kB / 1.234 GB, free: 15.45 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.331e-05/0.4073, allocations: 29.7 kB / 1.234 GB, free: 15.41 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001514/0.4075, allocations: 216.2 kB / 1.234 GB, free: 15.2 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 7.252e-05/0.4076, allocations: 67.45 kB / 1.235 GB, free: 15.13 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.739e-05/0.4076, allocations: 57.94 kB / 1.235 GB, free: 15.06 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001544/0.4078, allocations: 342.8 kB / 1.235 GB, free: 14.72 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002489/0.408, allocations: 97.91 kB / 1.235 GB, free: 14.62 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003005/0.4083, allocations: 203.6 kB / 1.235 GB, free: 14.37 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005454/0.4089, allocations: 315.4 kB / 1.235 GB, free: 14.02 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.4089, allocations: 0 / 1.235 GB, free: 14.02 MB / 0.9981 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007205/0.4096, allocations: 357.8 kB / 1.236 GB, free: 13.66 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/0.4096, allocations: 6.344 kB / 1.236 GB, free: 13.65 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.4096, allocations: 4.469 kB / 1.236 GB, free: 13.65 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002053/0.4098, allocations: 36.78 kB / 1.236 GB, free: 13.61 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002801/0.4101, allocations: 67.89 kB / 1.236 GB, free: 13.54 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0012/0.4113, allocations: 1.434 MB / 1.237 GB, free: 11.97 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002415/0.4116, allocations: 47.81 kB / 1.237 GB, free: 11.93 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.053e-05/0.4116, allocations: 19.94 kB / 1.237 GB, free: 11.91 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003313/0.4119, allocations: 216.6 kB / 1.238 GB, free: 11.69 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003026/0.4122, allocations: 213 kB / 1.238 GB, free: 11.43 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005002/0.4127, allocations: 318.9 kB / 1.238 GB, free: 11.06 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.764e-06/0.4127, allocations: 3.938 kB / 1.238 GB, free: 11.06 MB / 0.9981 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0006454/0.4134, allocations: 345.2 kB / 1.238 GB, free: 10.71 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 8.456e-06/0.4134, allocations: 4 kB / 1.238 GB, free: 10.71 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.4134, allocations: 4 kB / 1.238 GB, free: 10.71 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.31e-06/0.4134, allocations: 8 kB / 1.238 GB, free: 10.7 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002592/0.4136, allocations: 71.89 kB / 1.239 GB, free: 10.63 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.626e-06/0.4137, allocations: 8 kB / 1.239 GB, free: 10.62 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002232/0.4139, allocations: 36.11 kB / 1.239 GB, free: 10.59 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.995e-05/0.4139, allocations: 12 kB / 1.239 GB, free: 10.57 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001644/0.4141, allocations: 208 kB / 1.239 GB, free: 10.36 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.294e-05/0.4141, allocations: 31.84 kB / 1.239 GB, free: 10.33 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.075e-05/0.4142, allocations: 26.19 kB / 1.239 GB, free: 10.3 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.4142, allocations: 4 kB / 1.239 GB, free: 10.3 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.4142, allocations: 3.984 kB / 1.239 GB, free: 10.3 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.4142, allocations: 3.938 kB / 1.239 GB, free: 10.29 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001103/0.4153, allocations: 0.7461 MB / 1.24 GB, free: 9.469 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.4153, allocations: 0 / 1.24 GB, free: 9.469 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00019/0.4155, allocations: 51.97 kB / 1.24 GB, free: 9.418 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.514e-05/0.4156, allocations: 20.84 kB / 1.24 GB, free: 9.395 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.395e-05/0.4156, allocations: 4 kB / 1.24 GB, free: 9.391 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009954/0.4166, allocations: 1.433 MB / 1.241 GB, free: 7.82 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.4166, allocations: 0 / 1.241 GB, free: 7.82 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005979/0.4172, allocations: 365.8 kB / 1.241 GB, free: 7.438 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 9.944e-05/0.4173, allocations: 116.9 kB / 1.242 GB, free: 7.305 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.178e-05/0.4173, allocations: 8 kB / 1.242 GB, free: 7.297 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001826/0.4175, allocations: 19.98 kB / 1.242 GB, free: 7.277 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.244e-05/0.4176, allocations: 11.98 kB / 1.242 GB, free: 7.266 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.596e-05/0.4176, allocations: 15.92 kB / 1.242 GB, free: 7.25 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001646/0.4177, allocations: 178 kB / 1.242 GB, free: 7.074 MB / 0.9981 GB Notification: Performance of sort global known variables: time 7e-08/0.4177, allocations: 0 / 1.242 GB, free: 7.074 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.000572/0.4183, allocations: 147.7 kB / 1.242 GB, free: 6.93 MB / 0.9981 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 (18): * Single equations (assignments): 17 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001312/0.4184, allocations: 115.2 kB / 1.242 GB, free: 6.805 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0009943/0.4194, allocations: 477.5 kB / 1.242 GB, free: 6.328 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.4194, allocations: 0 / 1.242 GB, free: 6.328 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003306/0.4198, allocations: 214.5 kB / 1.243 GB, free: 6.105 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004872/0.4203, allocations: 80.03 kB / 1.243 GB, free: 6.031 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000894/0.4212, allocations: 0.5522 MB / 1.243 GB, free: 5.449 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003975/0.4216, allocations: 0.8035 MB / 1.244 GB, free: 4.613 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.000207/0.4218, allocations: 70.22 kB / 1.244 GB, free: 4.543 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.77e-05/0.4218, allocations: 23.44 kB / 1.244 GB, free: 4.52 MB / 0.9981 GB Notification: Performance of SimCode: time 3.01e-07/0.4218, allocations: 0 / 1.244 GB, free: 4.52 MB / 0.9981 GB Notification: Performance of Templates: time 0.007122/0.4289, allocations: 3.591 MB / 1.248 GB, free: 0.9648 MB / 0.9981 GB make -j1 -f Buildings_11_Buildings.Electrical.DC.Loads.Examples.VariableLoad.makefile (rm -f Buildings_11_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; mkfifo Buildings_11_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; head -c 1048576 < Buildings_11_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe >> ../files/Buildings_11_Buildings.Electrical.DC.Loads.Examples.VariableLoad.sim & ./Buildings_11_Buildings.Electrical.DC.Loads.Examples.VariableLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Electrical.DC.Loads.Examples.VariableLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Electrical_DC_Loads_Examples_VariableLoad.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Electrical.DC.Loads.Examples.VariableLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches