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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001292/0.001292, allocations: 109.3 kB / 15.7 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001359/0.001359, allocations: 196.8 kB / 16.63 MB, free: 6.609 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.466/1.466, allocations: 222.9 MB / 240.3 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.502/2.502, allocations: 390.3 MB / 0.6648 GB, free: 128 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 65.75 kB / 0.9509 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3278/0.329, allocations: 140.4 MB / 1.088 GB, free: 1.422 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad): time 0.006926/0.336, allocations: 4.093 MB / 1.092 GB, free: 13.31 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002919/0.3389, allocations: 1.601 MB / 1.094 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002854/0.3392, allocations: 11.94 kB / 1.094 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001812/0.3411, allocations: 0.583 MB / 1.094 GB, free: 11.11 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0005587/0.3416, allocations: 230.9 kB / 1.094 GB, free: 10.88 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005726/0.3422, allocations: 219.5 kB / 1.095 GB, free: 10.66 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0008322/0.3431, allocations: 0.5413 MB / 1.095 GB, free: 10.12 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008191/0.3439, allocations: 477.8 kB / 1.096 GB, free: 9.652 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000376/0.3443, allocations: 223.3 kB / 1.096 GB, free: 9.434 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005707/0.3449, allocations: 259.1 kB / 1.096 GB, free: 9.18 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 8.553e-05/0.345, allocations: 36 kB / 1.096 GB, free: 9.145 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003986/0.3454, allocations: 167.6 kB / 1.096 GB, free: 8.98 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001911/0.3456, allocations: 147.6 kB / 1.096 GB, free: 8.836 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002492/0.3458, allocations: 195.1 kB / 1.096 GB, free: 8.645 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0006207/0.3465, allocations: 0.5257 MB / 1.097 GB, free: 8.117 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.3465, allocations: 0 / 1.097 GB, free: 8.117 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.724e-06/0.3465, allocations: 0 / 1.097 GB, free: 8.117 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.857e-05/0.3465, allocations: 0 / 1.097 GB, free: 8.117 MB / 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.001384/0.3479, allocations: 0.6749 MB / 1.098 GB, free: 7.391 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.987e-05/0.3479, allocations: 12.03 kB / 1.098 GB, free: 7.379 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007236/0.3487, allocations: 112.4 kB / 1.098 GB, free: 7.27 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004163/0.3491, allocations: 308 kB / 1.098 GB, free: 6.93 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.213e-05/0.3492, allocations: 59.25 kB / 1.098 GB, free: 6.867 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.498e-05/0.3493, allocations: 28.38 kB / 1.098 GB, free: 6.84 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008549/0.3501, allocations: 0.5048 MB / 1.099 GB, free: 6.312 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.66e-05/0.3501, allocations: 7.938 kB / 1.099 GB, free: 6.305 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.187e-05/0.3502, allocations: 19.98 kB / 1.099 GB, free: 6.285 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.584e-05/0.3503, allocations: 24.98 kB / 1.099 GB, free: 6.262 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007535/0.351, allocations: 379.7 kB / 1.099 GB, free: 5.887 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002547/0.3536, allocations: 2.2 MB / 1.101 GB, free: 3.457 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007351/0.3543, allocations: 266.7 kB / 1.101 GB, free: 3.188 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000374/0.3547, allocations: 148.7 kB / 1.102 GB, free: 3.039 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 6.868e-05/0.3548, allocations: 4 kB / 1.102 GB, free: 3.035 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.012e-05/0.3548, allocations: 38.5 kB / 1.102 GB, free: 2.988 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=19): time 3.817e-06/0.3548, allocations: 4 kB / 1.102 GB, free: 2.984 MB / 0.8575 GB Notification: Performance of matching and sorting (n=19): time 0.001516/0.3564, allocations: 0.5725 MB / 1.102 GB, free: 2.363 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.123e-05/0.3564, allocations: 51.41 kB / 1.102 GB, free: 2.301 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002343/0.3567, allocations: 225 kB / 1.102 GB, free: 2.074 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.78e-05/0.3567, allocations: 33.7 kB / 1.103 GB, free: 2.035 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001416/0.3568, allocations: 203.7 kB / 1.103 GB, free: 1.832 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.447e-05/0.3569, allocations: 70.98 kB / 1.103 GB, free: 1.762 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001012/0.357, allocations: 53.7 kB / 1.103 GB, free: 1.703 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001197/0.3571, allocations: 334.8 kB / 1.103 GB, free: 1.367 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002206/0.3574, allocations: 96.8 kB / 1.103 GB, free: 1.27 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002684/0.3576, allocations: 188.1 kB / 1.103 GB, free: 1.047 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004637/0.3581, allocations: 275.3 kB / 1.104 GB, free: 0.7461 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.3581, allocations: 0 / 1.104 GB, free: 0.7461 MB / 0.8575 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008807/0.359, allocations: 382.9 kB / 1.104 GB, free: 368 kB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.332e-05/0.3591, allocations: 12 kB / 1.104 GB, free: 356 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.132e-05/0.3591, allocations: 4 kB / 1.104 GB, free: 352 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005582/0.3596, allocations: 101.6 kB / 1.104 GB, free: 244 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002108/0.3599, allocations: 55.84 kB / 1.104 GB, free: 188 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00399/0.3639, allocations: 3.046 MB / 1.107 GB, free: 12.85 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002784/0.3642, allocations: 35.67 kB / 1.107 GB, free: 12.81 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.178e-05/0.3642, allocations: 12 kB / 1.107 GB, free: 12.8 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003985/0.3646, allocations: 224.1 kB / 1.107 GB, free: 12.58 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004168/0.365, allocations: 171 kB / 1.108 GB, free: 12.37 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007115/0.3658, allocations: 275.3 kB / 1.108 GB, free: 12.07 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.118e-06/0.3658, allocations: 0 / 1.108 GB, free: 12.07 MB / 0.8731 GB Notification: Performance of matching and sorting (n=30) (initialization_lambda0): time 0.001234/0.367, allocations: 348 kB / 1.108 GB, free: 11.72 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.746e-05/0.3671, allocations: 11.92 kB / 1.108 GB, free: 11.71 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.3671, allocations: 4 kB / 1.108 GB, free: 11.71 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004295/0.3675, allocations: 72.95 kB / 1.108 GB, free: 11.63 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003309/0.3679, allocations: 59.91 kB / 1.108 GB, free: 11.57 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003047/0.3709, allocations: 1.613 MB / 1.11 GB, free: 9.824 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003902/0.3713, allocations: 27.83 kB / 1.11 GB, free: 9.797 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.118e-05/0.3714, allocations: 15.94 kB / 1.11 GB, free: 9.781 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.0002897/0.3717, allocations: 204.2 kB / 1.11 GB, free: 9.574 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.838e-05/0.3718, allocations: 19.72 kB / 1.11 GB, free: 9.555 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.442e-05/0.3719, allocations: 30.17 kB / 1.11 GB, free: 9.527 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.3719, allocations: 0 / 1.11 GB, free: 9.527 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.3719, allocations: 0 / 1.11 GB, free: 9.527 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.718e-06/0.3719, allocations: 7.938 kB / 1.11 GB, free: 9.52 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002148/0.3741, allocations: 0.8272 MB / 1.111 GB, free: 8.613 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.3741, allocations: 0 / 1.111 GB, free: 8.613 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002383/0.3743, allocations: 39.91 kB / 1.111 GB, free: 8.574 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005667/0.3749, allocations: 105.7 kB / 1.111 GB, free: 8.465 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.409e-05/0.3749, allocations: 0 / 1.111 GB, free: 8.465 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004416/0.3794, allocations: 3.027 MB / 1.114 GB, free: 5.156 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/0.3794, allocations: 3.984 kB / 1.114 GB, free: 5.152 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00114/0.3805, allocations: 415.2 kB / 1.115 GB, free: 4.719 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001845/0.3807, allocations: 124.7 kB / 1.115 GB, free: 4.578 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.506e-05/0.3808, allocations: 8 kB / 1.115 GB, free: 4.57 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003064/0.3811, allocations: 7.984 kB / 1.115 GB, free: 4.562 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001217/0.3813, allocations: 19.98 kB / 1.115 GB, free: 4.543 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.155e-05/0.3813, allocations: 4 kB / 1.115 GB, free: 4.539 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0003377/0.3816, allocations: 164.5 kB / 1.115 GB, free: 4.379 MB / 0.8731 GB Notification: Performance of sort global known variables: time 4.31e-07/0.3817, allocations: 0 / 1.115 GB, free: 4.379 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.001156/0.3828, allocations: 171.4 kB / 1.115 GB, free: 4.211 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.0001776/0.383, allocations: 111.2 kB / 1.115 GB, free: 4.094 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.002812/0.3858, allocations: 0.7523 MB / 1.116 GB, free: 3.305 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.3859, allocations: 4.062 kB / 1.116 GB, free: 3.301 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.001146/0.387, allocations: 369.2 kB / 1.116 GB, free: 2.914 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007006/0.3877, allocations: 70.91 kB / 1.116 GB, free: 2.84 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001627/0.3894, allocations: 0.5732 MB / 1.117 GB, free: 2.234 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007138/0.3901, allocations: 0.8106 MB / 1.118 GB, free: 1.398 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0003564/0.3905, allocations: 58.23 kB / 1.118 GB, free: 1.336 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.171e-05/0.3906, allocations: 19.44 kB / 1.118 GB, free: 1.32 MB / 0.8731 GB Notification: Performance of SimCode: time 1.313e-06/0.3906, allocations: 0 / 1.118 GB, free: 1.32 MB / 0.8731 GB Notification: Performance of Templates: time 0.01806/0.4087, allocations: 4.671 MB / 1.122 GB, free: 12.68 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)