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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.0009887/0.0009889, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.009626/0.009626, allocations: 170.6 kB / 16.27 MB, free: 6.652 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.491/1.491, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.471/2.471, allocations: 390.9 MB / 0.6663 GB, free: 2.344 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003966/0.0003967, allocations: 12 kB / 0.816 GB, free: 13.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8117/0.8121, allocations: 142.4 MB / 0.955 GB, free: 7.684 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad): time 0.004864/0.8171, allocations: 3.753 MB / 0.9587 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002726/0.8198, allocations: 1.565 MB / 0.9602 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003853/0.8202, allocations: 10.47 kB / 0.9602 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.000392/0.8207, allocations: 64.45 kB / 0.9603 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.001018/0.8217, allocations: 214.9 kB / 0.9605 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009597/0.8227, allocations: 199.5 kB / 0.9607 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.001163/0.8239, allocations: 0.7691 MB / 0.9614 GB, free: 2.793 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006782/0.8245, allocations: 445.2 kB / 0.9619 GB, free: 2.461 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004961/0.825, allocations: 180.2 kB / 0.962 GB, free: 2.371 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006499/0.8257, allocations: 244.6 kB / 0.9623 GB, free: 2.23 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 8.77e-05/0.8258, allocations: 18.5 kB / 0.9623 GB, free: 2.23 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000525/0.8263, allocations: 187.2 kB / 0.9625 GB, free: 2.137 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0002108/0.8266, allocations: 124.6 kB / 0.9626 GB, free: 2.062 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0003571/0.8269, allocations: 206.6 kB / 0.9628 GB, free: 1.914 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0007849/0.8277, allocations: 0.5018 MB / 0.9633 GB, free: 1.582 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.8277, allocations: 4 kB / 0.9633 GB, free: 1.578 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.434e-06/0.8277, allocations: 0 / 0.9633 GB, free: 1.578 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.82e-05/0.8278, allocations: 0 / 0.9633 GB, free: 1.578 MB / 0.7169 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.001532/0.8293, allocations: 0.6237 MB / 0.9639 GB, free: 1.035 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.812e-05/0.8294, allocations: 10.19 kB / 0.9639 GB, free: 1.035 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009662/0.8303, allocations: 109.5 kB / 0.964 GB, free: 0.9883 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00066/0.831, allocations: 296.1 kB / 0.9643 GB, free: 0.707 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00012/0.8312, allocations: 63.19 kB / 0.9643 GB, free: 0.6523 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001237/0.8313, allocations: 34.47 kB / 0.9644 GB, free: 0.6406 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001094/0.8324, allocations: 0.507 MB / 0.9649 GB, free: 332 kB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.344e-05/0.8324, allocations: 7.984 kB / 0.9649 GB, free: 324 kB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.167e-05/0.8325, allocations: 11.91 kB / 0.9649 GB, free: 316 kB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.7e-05/0.8326, allocations: 32.61 kB / 0.9649 GB, free: 304 kB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009417/0.8335, allocations: 390.3 kB / 0.9653 GB, free: 120 kB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003721/0.8373, allocations: 2.218 MB / 0.9675 GB, free: 14.04 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008455/0.8381, allocations: 277.9 kB / 0.9677 GB, free: 13.89 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004942/0.8386, allocations: 161.6 kB / 0.9679 GB, free: 13.82 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 5.381e-05/0.8387, allocations: 2.031 kB / 0.9679 GB, free: 13.82 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.838e-05/0.8388, allocations: 36.5 kB / 0.9679 GB, free: 13.77 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=19): time 2.805e-06/0.8388, allocations: 0 / 0.9679 GB, free: 13.77 MB / 0.7325 GB Notification: Performance of matching and sorting (n=19): time 0.001967/0.8407, allocations: 0.5912 MB / 0.9685 GB, free: 13.35 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.162e-05/0.8408, allocations: 54.41 kB / 0.9685 GB, free: 13.29 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003472/0.8412, allocations: 227.6 kB / 0.9688 GB, free: 13.12 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.461e-05/0.8412, allocations: 27.02 kB / 0.9688 GB, free: 13.09 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002036/0.8414, allocations: 214.4 kB / 0.969 GB, free: 12.89 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 8.709e-05/0.8415, allocations: 64.12 kB / 0.9691 GB, free: 12.84 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.545e-05/0.8416, allocations: 32.98 kB / 0.9691 GB, free: 12.8 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001723/0.8418, allocations: 327.9 kB / 0.9694 GB, free: 12.48 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002697/0.8421, allocations: 96.11 kB / 0.9695 GB, free: 12.44 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003586/0.8424, allocations: 190.4 kB / 0.9697 GB, free: 12.27 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006358/0.8431, allocations: 285.6 kB / 0.9699 GB, free: 12.08 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.234e-06/0.8431, allocations: 0.9062 kB / 0.9699 GB, free: 12.08 MB / 0.7325 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001117/0.8442, allocations: 392.7 kB / 0.9703 GB, free: 11.86 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.000166/0.8444, allocations: 174.8 kB / 0.9705 GB, free: 11.66 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.519e-05/0.8444, allocations: 2.938 kB / 0.9705 GB, free: 11.66 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006067/0.8451, allocations: 108.3 kB / 0.9706 GB, free: 11.61 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002412/0.8453, allocations: 52.44 kB / 0.9706 GB, free: 11.59 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00395/0.8493, allocations: 2.821 MB / 0.9734 GB, free: 8.785 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003658/0.8496, allocations: 41.89 kB / 0.9734 GB, free: 8.758 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.038e-05/0.8497, allocations: 12.72 kB / 0.9734 GB, free: 8.754 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.133e-05/0.8497, allocations: 3.406 kB / 0.9735 GB, free: 8.754 MB / 0.7325 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000847/0.8506, allocations: 319.8 kB / 0.9738 GB, free: 8.598 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.838e-06/0.8506, allocations: 2.219 kB / 0.9738 GB, free: 8.598 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003277/0.8509, allocations: 83.19 kB / 0.9738 GB, free: 8.555 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002361/0.8512, allocations: 55.66 kB / 0.9739 GB, free: 8.543 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002158/0.8533, allocations: 1.5 MB / 0.9754 GB, free: 7.094 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003027/0.8537, allocations: 33.3 kB / 0.9754 GB, free: 7.074 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.718e-05/0.8537, allocations: 11.56 kB / 0.9754 GB, free: 7.07 MB / 0.7325 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.0003541/0.8541, allocations: 244.1 kB / 0.9756 GB, free: 6.848 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.348e-05/0.8542, allocations: 23.44 kB / 0.9757 GB, free: 6.836 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.715e-05/0.8542, allocations: 31.2 kB / 0.9757 GB, free: 6.812 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.8543, allocations: 10.44 kB / 0.9757 GB, free: 6.805 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.8543, allocations: 0 / 0.9757 GB, free: 6.805 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.8543, allocations: 0 / 0.9757 GB, free: 6.805 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001743/0.856, allocations: 0.8477 MB / 0.9765 GB, free: 6.125 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.511e-06/0.856, allocations: 0 / 0.9765 GB, free: 6.125 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001663/0.8562, allocations: 33.86 kB / 0.9766 GB, free: 6.117 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004363/0.8567, allocations: 104.4 kB / 0.9767 GB, free: 6.059 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.527e-05/0.8567, allocations: 6.094 kB / 0.9767 GB, free: 6.055 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003556/0.8603, allocations: 2.798 MB / 0.9794 GB, free: 3.258 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.8603, allocations: 1.031 kB / 0.9794 GB, free: 3.258 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001011/0.8613, allocations: 433.1 kB / 0.9798 GB, free: 2.953 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002015/0.8615, allocations: 126.8 kB / 0.9799 GB, free: 2.824 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.906e-05/0.8616, allocations: 5.312 kB / 0.9799 GB, free: 2.82 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001948/0.8618, allocations: 15.86 kB / 0.9799 GB, free: 2.812 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001053/0.8619, allocations: 20.42 kB / 0.98 GB, free: 2.801 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.827e-05/0.8619, allocations: 8.984 kB / 0.98 GB, free: 2.797 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001998/0.8621, allocations: 162.8 kB / 0.9801 GB, free: 2.68 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8621, allocations: 5.281 kB / 0.9801 GB, free: 2.676 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0008101/0.863, allocations: 167.4 kB / 0.9803 GB, free: 2.633 MB / 0.7325 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.0001532/0.8631, allocations: 113.5 kB / 0.9804 GB, free: 2.531 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.002151/0.8653, allocations: 0.7671 MB / 0.9812 GB, free: 2.004 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 7.835e-06/0.8653, allocations: 1 kB / 0.9812 GB, free: 2.004 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0009344/0.8662, allocations: 378.9 kB / 0.9815 GB, free: 1.707 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005536/0.8668, allocations: 48.14 kB / 0.9816 GB, free: 1.684 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001401/0.8682, allocations: 0.7435 MB / 0.9823 GB, free: 1.121 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004851/0.8687, allocations: 0.8143 MB / 0.9831 GB, free: 364 kB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0002533/0.869, allocations: 54.78 kB / 0.9831 GB, free: 336 kB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.672e-05/0.869, allocations: 19.41 kB / 0.9832 GB, free: 328 kB / 0.7325 GB Notification: Performance of SimCode: time 7.21e-07/0.869, allocations: 0 / 0.9832 GB, free: 328 kB / 0.7325 GB Notification: Performance of Templates: time 0.009965/0.879, allocations: 4.245 MB / 0.9873 GB, free: 12.75 MB / 0.7481 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)