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.001019/0.001018, allocations: 99.62 kB / 15.05 MB, free: 1.105 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.001015/0.001015, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.378/1.378, allocations: 223.2 MB / 239.9 MB, free: 5.434 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.501/2.501, allocations: 390.3 MB / 0.6653 GB, free: 3 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003724/0.0003724, allocations: 8 kB / 0.8145 GB, free: 14.3 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8115/0.8119, allocations: 142.3 MB / 0.9535 GB, free: 8.074 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad): time 0.004488/0.8165, allocations: 3.496 MB / 0.9569 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002962/0.8195, allocations: 1.477 MB / 0.9584 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002282/0.8197, allocations: 5.062 kB / 0.9584 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002489/0.82, allocations: 69.59 kB / 0.9584 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0005177/0.8205, allocations: 158.3 kB / 0.9586 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005142/0.8211, allocations: 165.9 kB / 0.9587 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004664/0.8215, allocations: 299.9 kB / 0.959 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005654/0.8221, allocations: 389 kB / 0.9594 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002407/0.8224, allocations: 157.6 kB / 0.9596 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003869/0.8227, allocations: 166.7 kB / 0.9597 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.323e-05/0.8228, allocations: 19.25 kB / 0.9597 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002491/0.8231, allocations: 77.2 kB / 0.9598 GB, free: 3.25 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001536/0.8232, allocations: 118.8 kB / 0.9599 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001067/0.8233, allocations: 91.17 kB / 0.96 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004901/0.8238, allocations: 395.9 kB / 0.9604 GB, free: 2.855 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.8239, allocations: 0 / 0.9604 GB, free: 2.855 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.843e-06/0.8239, allocations: 1.156 kB / 0.9604 GB, free: 2.855 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.379e-05/0.8239, allocations: 0 / 0.9604 GB, free: 2.855 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.001267/0.8252, allocations: 0.6261 MB / 0.961 GB, free: 2.309 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.99e-05/0.8252, allocations: 10.25 kB / 0.961 GB, free: 2.309 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008355/0.8261, allocations: 121.1 kB / 0.9611 GB, free: 2.254 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004304/0.8265, allocations: 292 kB / 0.9614 GB, free: 1.977 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.486e-05/0.8266, allocations: 57.3 kB / 0.9615 GB, free: 1.93 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.461e-05/0.8267, allocations: 30.19 kB / 0.9615 GB, free: 1.922 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000893/0.8276, allocations: 0.4977 MB / 0.962 GB, free: 1.602 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.586e-05/0.8276, allocations: 4.938 kB / 0.962 GB, free: 1.598 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.952e-05/0.8276, allocations: 24.25 kB / 0.962 GB, free: 1.578 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-05/0.8277, allocations: 35.34 kB / 0.962 GB, free: 1.566 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007407/0.8285, allocations: 387.7 kB / 0.9624 GB, free: 1.383 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002535/0.831, allocations: 2.223 MB / 0.9646 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000768/0.8318, allocations: 279.2 kB / 0.9648 GB, free: 15.16 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.036e-05/0.8318, allocations: 2.375 kB / 0.9648 GB, free: 15.16 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.497e-05/0.8319, allocations: 31.97 kB / 0.9649 GB, free: 15.12 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=19): time 2.254e-06/0.8319, allocations: 3.938 kB / 0.9649 GB, free: 15.12 MB / 0.7325 GB Notification: Performance of matching and sorting (n=19): time 0.001557/0.8334, allocations: 0.6022 MB / 0.9655 GB, free: 14.68 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.352e-05/0.8335, allocations: 53.44 kB / 0.9655 GB, free: 14.62 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002545/0.8338, allocations: 229.7 kB / 0.9657 GB, free: 14.45 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.769e-05/0.8338, allocations: 25.7 kB / 0.9658 GB, free: 14.42 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001679/0.834, allocations: 213.7 kB / 0.966 GB, free: 14.23 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 6.05e-05/0.834, allocations: 67.28 kB / 0.966 GB, free: 14.17 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.488e-05/0.8341, allocations: 4.969 kB / 0.966 GB, free: 14.16 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000154/0.8342, allocations: 335.7 kB / 0.9663 GB, free: 13.83 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002332/0.8345, allocations: 93.66 kB / 0.9664 GB, free: 13.79 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00031/0.8348, allocations: 182 kB / 0.9666 GB, free: 13.64 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002715/0.8351, allocations: 127.9 kB / 0.9667 GB, free: 13.58 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.8351, allocations: 1.031 kB / 0.9667 GB, free: 13.58 MB / 0.7325 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009061/0.836, allocations: 392.4 kB / 0.9671 GB, free: 13.37 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003612/0.8364, allocations: 0.8754 MB / 0.968 GB, free: 12.43 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.857e-06/0.8364, allocations: 6.5 kB / 0.968 GB, free: 12.43 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005378/0.8369, allocations: 108.3 kB / 0.9681 GB, free: 12.37 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000236/0.8372, allocations: 52.94 kB / 0.9681 GB, free: 12.36 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003252/0.8404, allocations: 2.857 MB / 0.9709 GB, free: 9.523 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002951/0.8407, allocations: 34.73 kB / 0.9709 GB, free: 9.504 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.487e-05/0.8408, allocations: 11.38 kB / 0.971 GB, free: 9.5 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 9.848e-06/0.8408, allocations: 4.844 kB / 0.971 GB, free: 9.5 MB / 0.7325 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008008/0.8416, allocations: 314.8 kB / 0.9713 GB, free: 9.348 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.418e-06/0.8416, allocations: 6.219 kB / 0.9713 GB, free: 9.344 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002965/0.8419, allocations: 82.56 kB / 0.9713 GB, free: 9.301 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002453/0.8422, allocations: 59.28 kB / 0.9714 GB, free: 9.285 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001923/0.8441, allocations: 1.521 MB / 0.9729 GB, free: 7.824 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002571/0.8444, allocations: 32.67 kB / 0.9729 GB, free: 7.805 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.338e-05/0.8444, allocations: 12.69 kB / 0.9729 GB, free: 7.801 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.000301/0.8447, allocations: 252.2 kB / 0.9732 GB, free: 7.57 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.731e-05/0.8448, allocations: 25.83 kB / 0.9732 GB, free: 7.555 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.672e-05/0.8449, allocations: 27.28 kB / 0.9732 GB, free: 7.531 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.8449, allocations: 2.688 kB / 0.9732 GB, free: 7.531 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.8449, allocations: 0 / 0.9732 GB, free: 7.531 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/0.8449, allocations: 5.109 kB / 0.9732 GB, free: 7.527 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004839/0.8454, allocations: 374 kB / 0.9736 GB, free: 7.207 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.8454, allocations: 0 / 0.9736 GB, free: 7.207 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001665/0.8456, allocations: 36.89 kB / 0.9736 GB, free: 7.195 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003805/0.846, allocations: 103.6 kB / 0.9737 GB, free: 7.137 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.485e-05/0.846, allocations: 1.281 kB / 0.9737 GB, free: 7.137 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002896/0.8489, allocations: 2.834 MB / 0.9765 GB, free: 4.32 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.8489, allocations: 0 / 0.9765 GB, free: 4.32 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008241/0.8498, allocations: 419.3 kB / 0.9769 GB, free: 4.035 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001432/0.8499, allocations: 113.9 kB / 0.977 GB, free: 3.914 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.102e-05/0.8499, allocations: 4.812 kB / 0.977 GB, free: 3.91 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001772/0.8501, allocations: 15.52 kB / 0.977 GB, free: 3.902 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.128e-05/0.8502, allocations: 19.45 kB / 0.977 GB, free: 3.891 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.595e-05/0.8502, allocations: 7.562 kB / 0.977 GB, free: 3.887 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.000158/0.8504, allocations: 162.7 kB / 0.9772 GB, free: 3.773 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.31e-07/0.8504, allocations: 3.938 kB / 0.9772 GB, free: 3.77 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0007198/0.8511, allocations: 174.1 kB / 0.9774 GB, free: 3.723 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001538/0.8513, allocations: 99.69 kB / 0.9775 GB, free: 3.633 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001993/0.8533, allocations: 0.7733 MB / 0.9782 GB, free: 3.102 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 6.132e-06/0.8533, allocations: 1.219 kB / 0.9782 GB, free: 3.102 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0007683/0.8541, allocations: 369.3 kB / 0.9786 GB, free: 2.812 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003477/0.8544, allocations: 58.91 kB / 0.9786 GB, free: 2.773 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001193/0.8556, allocations: 0.6916 MB / 0.9793 GB, free: 2.262 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004532/0.8561, allocations: 0.8163 MB / 0.9801 GB, free: 1.5 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0002191/0.8563, allocations: 60.84 kB / 0.9802 GB, free: 1.473 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.702e-05/0.8564, allocations: 18.84 kB / 0.9802 GB, free: 1.465 MB / 0.7325 GB Notification: Performance of SimCode: time 8.21e-07/0.8564, allocations: 0 / 0.9802 GB, free: 1.465 MB / 0.7325 GB Notification: Performance of Templates: time 0.009242/0.8657, allocations: 4.09 MB / 0.9842 GB, free: 15.27 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)