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.001155/0.001155, allocations: 111.9 kB / 16.42 MB, free: 6.453 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.001395/0.001395, allocations: 192.3 kB / 17.35 MB, free: 5.715 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.413/1.413, allocations: 222.9 MB / 241.1 MB, free: 15.13 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.588/2.588, allocations: 437 MB / 0.7112 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001474/0.001474, allocations: 68.09 kB / 1.019 GB, free: 9.406 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9193/0.9208, allocations: 151.6 MB / 1.167 GB, free: 3.855 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad): time 0.005938/0.9268, allocations: 4.106 MB / 1.171 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.002654/0.9294, allocations: 1.589 MB / 1.173 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001822/0.9296, allocations: 8 kB / 1.173 GB, free: 14.13 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.001556/0.9312, allocations: 0.5929 MB / 1.173 GB, free: 13.54 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.000504/0.9317, allocations: 234.8 kB / 1.174 GB, free: 13.3 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005139/0.9322, allocations: 216.7 kB / 1.174 GB, free: 13.09 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0005811/0.9328, allocations: 0.5413 MB / 1.174 GB, free: 12.55 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006923/0.9335, allocations: 469.6 kB / 1.175 GB, free: 12.09 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002733/0.9338, allocations: 235.3 kB / 1.175 GB, free: 11.86 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004361/0.9343, allocations: 259.1 kB / 1.175 GB, free: 11.61 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 6.437e-05/0.9343, allocations: 36 kB / 1.175 GB, free: 11.57 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003326/0.9347, allocations: 163.7 kB / 1.176 GB, free: 11.41 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001468/0.9348, allocations: 147.6 kB / 1.176 GB, free: 11.27 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.000194/0.935, allocations: 195.1 kB / 1.176 GB, free: 11.07 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0006258/0.9357, allocations: 0.5274 MB / 1.176 GB, free: 10.55 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.9357, allocations: 0 / 1.176 GB, free: 10.55 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.663e-06/0.9357, allocations: 4 kB / 1.176 GB, free: 10.54 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.195e-05/0.9357, allocations: 4 kB / 1.176 GB, free: 10.54 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.001253/0.937, allocations: 0.6748 MB / 1.177 GB, free: 9.816 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.183e-05/0.937, allocations: 11.97 kB / 1.177 GB, free: 9.805 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007427/0.9378, allocations: 112.5 kB / 1.177 GB, free: 9.695 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004128/0.9382, allocations: 303.6 kB / 1.177 GB, free: 9.359 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.95e-05/0.9383, allocations: 51.27 kB / 1.177 GB, free: 9.305 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.258e-05/0.9383, allocations: 36.38 kB / 1.178 GB, free: 9.27 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007962/0.9391, allocations: 0.5048 MB / 1.178 GB, free: 8.742 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.247e-05/0.9392, allocations: 0 / 1.178 GB, free: 8.742 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.83e-05/0.9392, allocations: 12 kB / 1.178 GB, free: 8.73 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.706e-05/0.9393, allocations: 36.97 kB / 1.178 GB, free: 8.695 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006841/0.94, allocations: 375.7 kB / 1.178 GB, free: 8.328 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002438/0.9424, allocations: 2.2 MB / 1.181 GB, free: 5.898 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006803/0.9431, allocations: 262.6 kB / 1.181 GB, free: 5.633 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003417/0.9435, allocations: 156.7 kB / 1.181 GB, free: 5.477 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.38e-05/0.9435, allocations: 0 / 1.181 GB, free: 5.477 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.081e-05/0.9435, allocations: 34.56 kB / 1.181 GB, free: 5.434 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=19): time 9.548e-06/0.9435, allocations: 0 / 1.181 GB, free: 5.434 MB / 0.9044 GB Notification: Performance of matching and sorting (n=19): time 0.001491/0.945, allocations: 0.5737 MB / 1.182 GB, free: 4.812 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.678e-05/0.9451, allocations: 55.41 kB / 1.182 GB, free: 4.746 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002179/0.9453, allocations: 229 kB / 1.182 GB, free: 4.52 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.392e-05/0.9453, allocations: 25.7 kB / 1.182 GB, free: 4.488 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001278/0.9455, allocations: 215.6 kB / 1.182 GB, free: 4.273 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 4.946e-05/0.9455, allocations: 67.09 kB / 1.182 GB, free: 4.207 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.85e-05/0.9456, allocations: 53.61 kB / 1.182 GB, free: 4.148 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001168/0.9457, allocations: 334.8 kB / 1.182 GB, free: 3.812 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002221/0.946, allocations: 100.8 kB / 1.183 GB, free: 3.711 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002683/0.9463, allocations: 187 kB / 1.183 GB, free: 3.488 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004551/0.9467, allocations: 265.3 kB / 1.183 GB, free: 3.195 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.9467, allocations: 0 / 1.183 GB, free: 3.195 MB / 0.9044 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008654/0.9476, allocations: 381.1 kB / 1.183 GB, free: 2.812 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/0.9476, allocations: 4 kB / 1.183 GB, free: 2.809 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/0.9476, allocations: 4.312 kB / 1.183 GB, free: 2.805 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004947/0.9481, allocations: 113.6 kB / 1.183 GB, free: 2.688 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002224/0.9484, allocations: 51.91 kB / 1.184 GB, free: 2.637 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003188/0.9516, allocations: 3.046 MB / 1.187 GB, free: 15.3 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002567/0.9518, allocations: 35.67 kB / 1.187 GB, free: 15.26 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.079e-05/0.9519, allocations: 12 kB / 1.187 GB, free: 15.25 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003329/0.9522, allocations: 220 kB / 1.187 GB, free: 15.03 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000264/0.9525, allocations: 183.1 kB / 1.187 GB, free: 14.81 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004589/0.953, allocations: 273.1 kB / 1.187 GB, free: 14.51 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.847e-06/0.953, allocations: 4 kB / 1.187 GB, free: 14.51 MB / 0.92 GB Notification: Performance of matching and sorting (n=30) (initialization_lambda0): time 0.0007905/0.9538, allocations: 344 kB / 1.188 GB, free: 14.16 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.232e-05/0.9538, allocations: 7.938 kB / 1.188 GB, free: 14.16 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.9538, allocations: 7.984 kB / 1.188 GB, free: 14.15 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003071/0.9541, allocations: 80.86 kB / 1.188 GB, free: 14.07 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002186/0.9543, allocations: 47.97 kB / 1.188 GB, free: 14.02 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002017/0.9564, allocations: 1.625 MB / 1.189 GB, free: 12.26 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002682/0.9567, allocations: 31.73 kB / 1.189 GB, free: 12.23 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.866e-05/0.9567, allocations: 8 kB / 1.189 GB, free: 12.22 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.0001416/0.9568, allocations: 205.6 kB / 1.189 GB, free: 12.01 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.175e-05/0.9569, allocations: 19.81 kB / 1.19 GB, free: 11.99 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.879e-05/0.957, allocations: 30.17 kB / 1.19 GB, free: 11.96 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.957, allocations: 0 / 1.19 GB, free: 11.96 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.957, allocations: 0 / 1.19 GB, free: 11.96 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001253/0.9571, allocations: 120.7 kB / 1.19 GB, free: 11.82 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.435e-05/0.9571, allocations: 4 kB / 1.19 GB, free: 11.82 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001749/0.9573, allocations: 11.98 kB / 1.19 GB, free: 11.8 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.803e-05/0.9574, allocations: 15.98 kB / 1.19 GB, free: 11.79 MB / 0.92 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0007744/0.9582, allocations: 370.3 kB / 1.19 GB, free: 11.41 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0007103/0.9589, allocations: 496.2 kB / 1.191 GB, free: 10.91 MB / 0.92 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001986/0.9591, allocations: 86.05 kB / 1.191 GB, free: 10.83 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0001518/0.9593, allocations: 164.5 kB / 1.191 GB, free: 10.67 MB / 0.92 GB Notification: Performance of Backend: time 5.31e-07/0.9593, allocations: 0 / 1.191 GB, free: 10.67 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.002287/0.9616, allocations: 0.8503 MB / 1.192 GB, free: 9.777 MB / 0.92 GB Notification: Performance of SimCode: time 0.001314/0.9629, allocations: 1.046 MB / 1.193 GB, free: 8.688 MB / 0.92 GB Notification: Performance of Templates: time 0.01121/0.9741, allocations: 5.657 MB / 1.198 GB, free: 3.062 MB / 0.92 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)