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.00151/0.001509, allocations: 107.4 kB / 15.34 MB, free: 0.5 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.001913/0.001913, allocations: 194.2 kB / 16.26 MB, free: 6.637 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.436/1.436, allocations: 222.9 MB / 239.9 MB, free: 4.445 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.482/2.482, allocations: 390.2 MB / 0.6643 GB, free: 0.5859 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001475/0.001475, allocations: 63.91 kB / 0.812 GB, free: 14.82 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8384/0.8399, allocations: 140.4 MB / 0.9491 GB, free: 9.098 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad): time 0.005664/0.8456, allocations: 4.134 MB / 0.9531 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002484/0.8482, allocations: 1.573 MB / 0.9547 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001988/0.8484, allocations: 5.438 kB / 0.9547 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001464/0.8499, allocations: 0.5524 MB / 0.9552 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0005158/0.8504, allocations: 217.9 kB / 0.9554 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005887/0.851, allocations: 193.7 kB / 0.9556 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0007546/0.8518, allocations: 0.5471 MB / 0.9561 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008659/0.8527, allocations: 0.52 MB / 0.9566 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000426/0.8531, allocations: 224.3 kB / 0.9569 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005805/0.8537, allocations: 267.5 kB / 0.9571 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0001059/0.8538, allocations: 35.75 kB / 0.9571 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004256/0.8542, allocations: 170.5 kB / 0.9573 GB, free: 3.012 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001962/0.8545, allocations: 150.3 kB / 0.9575 GB, free: 2.914 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0003082/0.8548, allocations: 200.9 kB / 0.9576 GB, free: 2.781 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0007751/0.8555, allocations: 0.5231 MB / 0.9582 GB, free: 2.43 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.8556, allocations: 0 / 0.9582 GB, free: 2.43 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.322e-06/0.8556, allocations: 0 / 0.9582 GB, free: 2.43 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.96e-05/0.8556, allocations: 0 / 0.9582 GB, free: 2.43 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.00132/0.8569, allocations: 0.6878 MB / 0.9588 GB, free: 1.84 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.857, allocations: 13.94 kB / 0.9588 GB, free: 1.836 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007321/0.8577, allocations: 107 kB / 0.9589 GB, free: 1.789 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003372/0.8581, allocations: 292.3 kB / 0.9592 GB, free: 1.512 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.331e-05/0.8581, allocations: 62.75 kB / 0.9593 GB, free: 1.457 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.96e-05/0.8582, allocations: 30.88 kB / 0.9593 GB, free: 1.449 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008409/0.8591, allocations: 0.5027 MB / 0.9598 GB, free: 1.133 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.691e-05/0.8591, allocations: 0 / 0.9598 GB, free: 1.133 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.521e-05/0.8591, allocations: 24.14 kB / 0.9598 GB, free: 1.113 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.35e-05/0.8592, allocations: 28.05 kB / 0.9599 GB, free: 1.105 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007173/0.8599, allocations: 381.5 kB / 0.9602 GB, free: 0.9258 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002414/0.8624, allocations: 2.217 MB / 0.9624 GB, free: 14.84 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007509/0.8631, allocations: 256.9 kB / 0.9626 GB, free: 14.7 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003737/0.8635, allocations: 150.7 kB / 0.9628 GB, free: 14.63 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.343e-05/0.8635, allocations: 2.625 kB / 0.9628 GB, free: 14.63 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.855e-05/0.8636, allocations: 40.03 kB / 0.9628 GB, free: 14.59 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=19): time 2.044e-06/0.8636, allocations: 0 / 0.9628 GB, free: 14.59 MB / 0.7325 GB Notification: Performance of matching and sorting (n=19): time 0.001487/0.8651, allocations: 0.5683 MB / 0.9634 GB, free: 14.17 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.148e-05/0.8651, allocations: 57.59 kB / 0.9634 GB, free: 14.1 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002375/0.8654, allocations: 228.2 kB / 0.9636 GB, free: 13.94 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.799e-05/0.8654, allocations: 30.98 kB / 0.9637 GB, free: 13.9 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001398/0.8656, allocations: 205.9 kB / 0.9639 GB, free: 13.71 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 6.343e-05/0.8656, allocations: 71.47 kB / 0.9639 GB, free: 13.65 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.706e-05/0.8657, allocations: 54.48 kB / 0.964 GB, free: 13.61 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001194/0.8659, allocations: 332 kB / 0.9643 GB, free: 13.29 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002304/0.8661, allocations: 100.2 kB / 0.9644 GB, free: 13.23 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002848/0.8664, allocations: 182.7 kB / 0.9646 GB, free: 13.07 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004856/0.8669, allocations: 271 kB / 0.9648 GB, free: 12.88 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.8669, allocations: 0 / 0.9648 GB, free: 12.88 MB / 0.7325 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008576/0.8678, allocations: 387.4 kB / 0.9652 GB, free: 12.66 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.8678, allocations: 5.312 kB / 0.9652 GB, free: 12.66 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.265e-06/0.8678, allocations: 2.719 kB / 0.9652 GB, free: 12.66 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005088/0.8683, allocations: 116.7 kB / 0.9653 GB, free: 12.59 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002044/0.8685, allocations: 45.45 kB / 0.9654 GB, free: 12.59 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003032/0.8716, allocations: 3.041 MB / 0.9683 GB, free: 9.555 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002757/0.8719, allocations: 36.48 kB / 0.9684 GB, free: 9.531 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.065e-05/0.8719, allocations: 7.562 kB / 0.9684 GB, free: 9.531 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003528/0.8723, allocations: 225.5 kB / 0.9686 GB, free: 9.375 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002529/0.8725, allocations: 173.6 kB / 0.9688 GB, free: 9.223 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004496/0.873, allocations: 278.2 kB / 0.969 GB, free: 9.023 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.325e-06/0.873, allocations: 5.031 kB / 0.969 GB, free: 9.02 MB / 0.7325 GB Notification: Performance of matching and sorting (n=30) (initialization_lambda0): time 0.0007676/0.8738, allocations: 348.6 kB / 0.9694 GB, free: 8.832 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.281e-05/0.8738, allocations: 9.969 kB / 0.9694 GB, free: 8.828 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.997e-06/0.8738, allocations: 2.188 kB / 0.9694 GB, free: 8.828 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002923/0.8741, allocations: 79.38 kB / 0.9694 GB, free: 8.789 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002174/0.8743, allocations: 57.41 kB / 0.9695 GB, free: 8.773 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001886/0.8762, allocations: 1.608 MB / 0.9711 GB, free: 7.223 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002681/0.8765, allocations: 32.05 kB / 0.9711 GB, free: 7.203 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.285e-05/0.8765, allocations: 15.97 kB / 0.9711 GB, free: 7.195 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.0001318/0.8767, allocations: 205.5 kB / 0.9713 GB, free: 6.992 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.428e-05/0.8767, allocations: 22.56 kB / 0.9713 GB, free: 6.98 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.871e-05/0.8768, allocations: 23.53 kB / 0.9714 GB, free: 6.965 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.8768, allocations: 2.812 kB / 0.9714 GB, free: 6.965 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.8768, allocations: 0 / 0.9714 GB, free: 6.965 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.8768, allocations: 7.922 kB / 0.9714 GB, free: 6.957 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001312/0.8781, allocations: 0.8285 MB / 0.9722 GB, free: 6.285 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.8781, allocations: 9.406 kB / 0.9722 GB, free: 6.277 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001407/0.8783, allocations: 30.98 kB / 0.9722 GB, free: 6.27 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003716/0.8787, allocations: 104.5 kB / 0.9723 GB, free: 6.211 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.646e-05/0.8787, allocations: 1.5 kB / 0.9723 GB, free: 6.211 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002884/0.8816, allocations: 3.026 MB / 0.9753 GB, free: 3.188 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.706e-06/0.8816, allocations: 1.25 kB / 0.9753 GB, free: 3.188 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008189/0.8824, allocations: 412.8 kB / 0.9757 GB, free: 2.891 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001311/0.8826, allocations: 122.2 kB / 0.9758 GB, free: 2.766 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.386e-05/0.8826, allocations: 6.188 kB / 0.9758 GB, free: 2.762 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001871/0.8828, allocations: 13.14 kB / 0.9758 GB, free: 2.754 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.854e-05/0.8829, allocations: 24.25 kB / 0.9758 GB, free: 2.738 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.897e-05/0.8829, allocations: 9.219 kB / 0.9758 GB, free: 2.734 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001659/0.8831, allocations: 162.9 kB / 0.976 GB, free: 2.617 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8831, allocations: 1.125 kB / 0.976 GB, free: 2.617 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0007384/0.8839, allocations: 164 kB / 0.9761 GB, free: 2.578 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.0001403/0.884, allocations: 106.2 kB / 0.9762 GB, free: 2.48 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.002015/0.886, allocations: 0.7769 MB / 0.977 GB, free: 1.941 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.886, allocations: 0 / 0.977 GB, free: 1.941 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0008619/0.8869, allocations: 376.2 kB / 0.9774 GB, free: 1.645 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005059/0.8874, allocations: 62.66 kB / 0.9774 GB, free: 1.609 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001305/0.8887, allocations: 0.7246 MB / 0.9781 GB, free: 1.066 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004215/0.8892, allocations: 0.8136 MB / 0.9789 GB, free: 308 kB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0002109/0.8894, allocations: 60.08 kB / 0.979 GB, free: 280 kB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.737e-05/0.8895, allocations: 18.16 kB / 0.979 GB, free: 272 kB / 0.7325 GB Notification: Performance of SimCode: time 8.12e-07/0.8895, allocations: 1.312 kB / 0.979 GB, free: 272 kB / 0.7325 GB Notification: Performance of Templates: time 0.0092/0.8987, allocations: 4.562 MB / 0.9835 GB, free: 13.3 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)