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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001088/0.001088, allocations: 102.2 kB / 16.35 MB, free: 5.875 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.001193/0.001193, allocations: 194.3 kB / 17.3 MB, free: 5.516 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.381/1.381, allocations: 222.9 MB / 241 MB, free: 14.99 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.461/2.461, allocations: 437.1 MB / 0.7112 GB, free: 4.398 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001822/0.001822, allocations: 65 kB / 0.8707 GB, free: 1.473 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3202/0.322, allocations: 151.6 MB / 1.019 GB, free: 9.883 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad): time 0.005461/0.3275, allocations: 4.102 MB / 1.023 GB, free: 5.758 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.002513/0.3301, allocations: 1.589 MB / 1.024 GB, free: 4.16 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001834/0.3303, allocations: 15.88 kB / 1.024 GB, free: 4.145 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.001562/0.3318, allocations: 0.5891 MB / 1.025 GB, free: 3.555 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0005693/0.3324, allocations: 238.8 kB / 1.025 GB, free: 3.32 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005612/0.333, allocations: 207.2 kB / 1.025 GB, free: 3.121 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0005648/0.3336, allocations: 0.5452 MB / 1.026 GB, free: 2.574 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006441/0.3342, allocations: 481.8 kB / 1.026 GB, free: 2.102 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002321/0.3345, allocations: 223.3 kB / 1.027 GB, free: 1.883 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003512/0.3348, allocations: 259 kB / 1.027 GB, free: 1.629 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 5.225e-05/0.3349, allocations: 36 kB / 1.027 GB, free: 1.594 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002737/0.3352, allocations: 159.7 kB / 1.027 GB, free: 1.438 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001293/0.3353, allocations: 147.7 kB / 1.027 GB, free: 1.293 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001755/0.3355, allocations: 191.1 kB / 1.027 GB, free: 1.105 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0005136/0.336, allocations: 0.5257 MB / 1.028 GB, free: 0.5781 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.336, allocations: 4 kB / 1.028 GB, free: 0.5742 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.263e-06/0.336, allocations: 0 / 1.028 GB, free: 0.5742 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.441e-06/0.336, allocations: 0 / 1.028 GB, free: 0.5742 MB / 0.795 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.001028/0.3371, allocations: 0.6787 MB / 1.028 GB, free: 15.84 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 2.666e-05/0.3371, allocations: 12.03 kB / 1.028 GB, free: 15.83 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006753/0.3378, allocations: 108.4 kB / 1.029 GB, free: 15.73 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004133/0.3382, allocations: 303.6 kB / 1.029 GB, free: 15.39 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.611e-05/0.3383, allocations: 63.19 kB / 1.029 GB, free: 15.32 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.856e-05/0.3383, allocations: 36.38 kB / 1.029 GB, free: 15.29 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007382/0.3391, allocations: 0.497 MB / 1.029 GB, free: 14.77 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.313e-05/0.3391, allocations: 3.938 kB / 1.029 GB, free: 14.76 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.623e-05/0.3392, allocations: 19.98 kB / 1.029 GB, free: 14.74 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-05/0.3392, allocations: 28.98 kB / 1.03 GB, free: 14.71 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009063/0.3401, allocations: 383.7 kB / 1.03 GB, free: 14.34 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002738/0.3429, allocations: 2.185 MB / 1.032 GB, free: 11.93 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006666/0.3435, allocations: 266.7 kB / 1.032 GB, free: 11.66 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003499/0.3439, allocations: 148.8 kB / 1.032 GB, free: 11.51 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.95e-05/0.344, allocations: 7.953 kB / 1.032 GB, free: 11.5 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.602e-05/0.344, allocations: 46.5 kB / 1.032 GB, free: 11.45 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=19): time 1.673e-06/0.344, allocations: 0 / 1.032 GB, free: 11.45 MB / 0.8106 GB Notification: Performance of matching and sorting (n=19): time 0.001561/0.3456, allocations: 0.5654 MB / 1.033 GB, free: 10.83 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.145e-05/0.3456, allocations: 55.41 kB / 1.033 GB, free: 10.77 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002231/0.3458, allocations: 228.9 kB / 1.033 GB, free: 10.54 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.572e-05/0.3459, allocations: 33.69 kB / 1.033 GB, free: 10.5 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001207/0.346, allocations: 211.7 kB / 1.034 GB, free: 10.29 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.436e-05/0.3461, allocations: 63.02 kB / 1.034 GB, free: 10.23 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.325e-05/0.3461, allocations: 49.7 kB / 1.034 GB, free: 10.17 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001421/0.3463, allocations: 330.8 kB / 1.034 GB, free: 9.84 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002134/0.3465, allocations: 104.7 kB / 1.034 GB, free: 9.734 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003586/0.3469, allocations: 184.1 kB / 1.034 GB, free: 9.516 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004668/0.3474, allocations: 275.4 kB / 1.034 GB, free: 9.215 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.3474, allocations: 0 / 1.034 GB, free: 9.215 MB / 0.8106 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008389/0.3482, allocations: 382.8 kB / 1.035 GB, free: 8.828 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.76e-05/0.3482, allocations: 4 kB / 1.035 GB, free: 8.824 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.887e-06/0.3483, allocations: 4 kB / 1.035 GB, free: 8.82 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005022/0.3488, allocations: 105.8 kB / 1.035 GB, free: 8.711 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002077/0.349, allocations: 51.89 kB / 1.035 GB, free: 8.66 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003127/0.3521, allocations: 3.059 MB / 1.038 GB, free: 5.316 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002385/0.3524, allocations: 31.95 kB / 1.038 GB, free: 5.285 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.967e-05/0.3524, allocations: 8 kB / 1.038 GB, free: 5.277 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000304/0.3527, allocations: 220 kB / 1.038 GB, free: 5.059 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002413/0.353, allocations: 187 kB / 1.038 GB, free: 4.836 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004092/0.3534, allocations: 271.2 kB / 1.039 GB, free: 4.539 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.603e-06/0.3534, allocations: 4 kB / 1.039 GB, free: 4.535 MB / 0.8106 GB Notification: Performance of matching and sorting (n=30) (initialization_lambda0): time 0.0008199/0.3542, allocations: 347.6 kB / 1.039 GB, free: 4.188 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.36e-05/0.3542, allocations: 11.94 kB / 1.039 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.705e-06/0.3543, allocations: 320 / 1.039 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002815/0.3545, allocations: 80.78 kB / 1.039 GB, free: 4.094 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002203/0.3548, allocations: 59.91 kB / 1.039 GB, free: 4.035 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001931/0.3567, allocations: 1.61 MB / 1.041 GB, free: 2.281 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002667/0.357, allocations: 31.89 kB / 1.041 GB, free: 2.25 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.566e-05/0.357, allocations: 19.92 kB / 1.041 GB, free: 2.23 MB / 0.8106 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.0001782/0.3572, allocations: 197.3 kB / 1.041 GB, free: 2.031 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.446e-05/0.3573, allocations: 23.72 kB / 1.041 GB, free: 2.008 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.983e-05/0.3574, allocations: 22.19 kB / 1.041 GB, free: 1.992 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.3574, allocations: 7.938 kB / 1.041 GB, free: 1.984 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.3574, allocations: 0 / 1.041 GB, free: 1.984 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/0.3574, allocations: 11.92 kB / 1.041 GB, free: 1.973 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001301/0.3587, allocations: 0.8197 MB / 1.042 GB, free: 1.074 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.3587, allocations: 12.05 kB / 1.042 GB, free: 1.062 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001405/0.3589, allocations: 31.92 kB / 1.042 GB, free: 1.031 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003635/0.3592, allocations: 101.6 kB / 1.042 GB, free: 0.9258 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.639e-05/0.3593, allocations: 7.938 kB / 1.042 GB, free: 0.918 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003043/0.3623, allocations: 3.024 MB / 1.045 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.3623, allocations: 0 / 1.045 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000753/0.3631, allocations: 411.1 kB / 1.045 GB, free: 13.18 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001286/0.3632, allocations: 124.7 kB / 1.045 GB, free: 13.04 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.799e-05/0.3633, allocations: 4 kB / 1.045 GB, free: 13.04 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001666/0.3634, allocations: 7.984 kB / 1.045 GB, free: 13.03 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.628e-05/0.3635, allocations: 23.97 kB / 1.045 GB, free: 13 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.739e-05/0.3635, allocations: 8 kB / 1.045 GB, free: 13 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001541/0.3637, allocations: 168.5 kB / 1.046 GB, free: 12.83 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3637, allocations: 0 / 1.046 GB, free: 12.83 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0006436/0.3644, allocations: 167.4 kB / 1.046 GB, free: 12.67 MB / 0.8262 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.0001177/0.3645, allocations: 99.19 kB / 1.046 GB, free: 12.56 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001788/0.3663, allocations: 0.7604 MB / 1.047 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/0.3663, allocations: 4 kB / 1.047 GB, free: 11.76 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0007472/0.3671, allocations: 373.7 kB / 1.047 GB, free: 11.37 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004151/0.3675, allocations: 56.08 kB / 1.047 GB, free: 11.31 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009951/0.3685, allocations: 0.5753 MB / 1.048 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003895/0.3689, allocations: 0.8147 MB / 1.048 GB, free: 9.863 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.000164/0.3691, allocations: 58.23 kB / 1.048 GB, free: 9.805 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.607e-05/0.3691, allocations: 19.44 kB / 1.048 GB, free: 9.789 MB / 0.8262 GB Notification: Performance of SimCode: time 2.61e-07/0.3691, allocations: 7.938 kB / 1.049 GB, free: 9.781 MB / 0.8262 GB Notification: Performance of Templates: time 0.008689/0.3778, allocations: 4.677 MB / 1.053 GB, free: 5.141 MB / 0.8262 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 -s gbode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe 2>&1)