Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad") translateModel(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_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.001244/0.001244, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001384/0.001384, allocations: 190.9 kB / 16.25 MB, free: 6.633 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.378/1.378, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.809/2.809, allocations: 472.6 MB / 0.7448 GB, free: 4.926 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001257, allocations: 69.69 kB / 0.9115 GB, free: 33.6 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3218/0.3231, allocations: 159.9 MB / 1.068 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad): time 0.005619/0.3287, allocations: 4.137 MB / 1.072 GB, free: 6.664 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002346/0.3311, allocations: 1.589 MB / 1.073 GB, free: 5.066 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001407/0.3313, allocations: 8 kB / 1.073 GB, free: 5.059 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001468/0.3327, allocations: 0.549 MB / 1.074 GB, free: 4.508 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0004401/0.3332, allocations: 219.1 kB / 1.074 GB, free: 4.293 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004688/0.3337, allocations: 195.7 kB / 1.074 GB, free: 4.102 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0005344/0.3342, allocations: 0.5452 MB / 1.075 GB, free: 3.555 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007534/0.335, allocations: 0.5215 MB / 1.075 GB, free: 3.027 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000231/0.3352, allocations: 219.3 kB / 1.075 GB, free: 2.812 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003897/0.3356, allocations: 267.1 kB / 1.076 GB, free: 2.551 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.067e-05/0.3357, allocations: 39.92 kB / 1.076 GB, free: 2.512 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002725/0.336, allocations: 167.7 kB / 1.076 GB, free: 2.348 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001312/0.3361, allocations: 143.7 kB / 1.076 GB, free: 2.207 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.000198/0.3363, allocations: 195.1 kB / 1.076 GB, free: 2.016 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005187/0.3368, allocations: 0.5334 MB / 1.077 GB, free: 1.48 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.3368, allocations: 4 kB / 1.077 GB, free: 1.477 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.252e-06/0.3368, allocations: 0 / 1.077 GB, free: 1.477 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.534e-06/0.3369, allocations: 0 / 1.077 GB, free: 1.477 MB / 0.8262 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.00119/0.3381, allocations: 0.6786 MB / 1.077 GB, free: 0.75 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/0.3381, allocations: 12.03 kB / 1.077 GB, free: 0.7383 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006979/0.3388, allocations: 100.5 kB / 1.078 GB, free: 0.6406 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003692/0.3392, allocations: 295.6 kB / 1.078 GB, free: 320 kB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.595e-05/0.3393, allocations: 55.27 kB / 1.078 GB, free: 260 kB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.208e-05/0.3393, allocations: 36.36 kB / 1.078 GB, free: 224 kB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000809/0.3402, allocations: 0.5009 MB / 1.078 GB, free: 15.69 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.332e-05/0.3402, allocations: 0 / 1.078 GB, free: 15.69 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.047e-05/0.3402, allocations: 19.91 kB / 1.078 GB, free: 15.67 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.459e-05/0.3403, allocations: 32.97 kB / 1.078 GB, free: 15.64 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006528/0.3409, allocations: 375.7 kB / 1.079 GB, free: 15.27 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00238/0.3433, allocations: 2.216 MB / 1.081 GB, free: 12.83 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006963/0.344, allocations: 268 kB / 1.081 GB, free: 12.56 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003633/0.3444, allocations: 152.7 kB / 1.081 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.266e-05/0.3445, allocations: 4 kB / 1.081 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.578e-05/0.3445, allocations: 38.56 kB / 1.081 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=19): time 1.503e-06/0.3445, allocations: 0 / 1.081 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of matching and sorting (n=19): time 0.00153/0.346, allocations: 0.5711 MB / 1.082 GB, free: 11.74 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.598e-05/0.3461, allocations: 51.41 kB / 1.082 GB, free: 11.68 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002434/0.3463, allocations: 229 kB / 1.082 GB, free: 11.45 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.636e-05/0.3464, allocations: 29.7 kB / 1.082 GB, free: 11.41 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001428/0.3465, allocations: 211.6 kB / 1.082 GB, free: 11.2 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 6.114e-05/0.3466, allocations: 67.08 kB / 1.083 GB, free: 11.13 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.845e-05/0.3467, allocations: 57.61 kB / 1.083 GB, free: 11.07 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001342/0.3468, allocations: 330.8 kB / 1.083 GB, free: 10.73 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002273/0.347, allocations: 96.8 kB / 1.083 GB, free: 10.64 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002734/0.3473, allocations: 188.5 kB / 1.083 GB, free: 10.41 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000455/0.3478, allocations: 263.5 kB / 1.083 GB, free: 10.12 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.048e-06/0.3478, allocations: 8 kB / 1.083 GB, free: 10.12 MB / 0.8419 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008379/0.3487, allocations: 380.3 kB / 1.084 GB, free: 9.734 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/0.3487, allocations: 8 kB / 1.084 GB, free: 9.727 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.82e-06/0.3487, allocations: 0 / 1.084 GB, free: 9.727 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004942/0.3492, allocations: 117.7 kB / 1.084 GB, free: 9.605 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002288/0.3494, allocations: 51.91 kB / 1.084 GB, free: 9.555 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003256/0.3527, allocations: 3.05 MB / 1.087 GB, free: 6.223 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002411/0.353, allocations: 31.73 kB / 1.087 GB, free: 6.191 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.186e-05/0.353, allocations: 12 kB / 1.087 GB, free: 6.18 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003252/0.3533, allocations: 224 kB / 1.087 GB, free: 5.957 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002592/0.3536, allocations: 172.2 kB / 1.087 GB, free: 5.75 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004497/0.354, allocations: 271 kB / 1.088 GB, free: 5.453 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.633e-06/0.3541, allocations: 7.875 kB / 1.088 GB, free: 5.445 MB / 0.8419 GB Notification: Performance of matching and sorting (n=30) (initialization_lambda0): time 0.0007848/0.3548, allocations: 346.1 kB / 1.088 GB, free: 5.098 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.124e-05/0.3549, allocations: 11.94 kB / 1.088 GB, free: 5.086 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/0.3549, allocations: 4 kB / 1.088 GB, free: 5.082 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000296/0.3552, allocations: 76.84 kB / 1.088 GB, free: 5.004 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002207/0.3554, allocations: 55.91 kB / 1.088 GB, free: 4.949 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002032/0.3575, allocations: 1.624 MB / 1.09 GB, free: 3.188 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002593/0.3577, allocations: 31.73 kB / 1.09 GB, free: 3.156 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.313e-05/0.3578, allocations: 15.94 kB / 1.09 GB, free: 3.141 MB / 0.8419 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.0001645/0.3579, allocations: 200.3 kB / 1.09 GB, free: 2.938 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.021e-05/0.358, allocations: 15.81 kB / 1.09 GB, free: 2.922 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.897e-05/0.3581, allocations: 30.17 kB / 1.09 GB, free: 2.891 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.3581, allocations: 0 / 1.09 GB, free: 2.891 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.3581, allocations: 0 / 1.09 GB, free: 2.891 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.3581, allocations: 3.938 kB / 1.09 GB, free: 2.887 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001391/0.3595, allocations: 0.8365 MB / 1.091 GB, free: 1.969 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.3595, allocations: 0 / 1.091 GB, free: 1.969 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001475/0.3597, allocations: 31.98 kB / 1.091 GB, free: 1.938 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003782/0.36, allocations: 109.6 kB / 1.091 GB, free: 1.824 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.84e-05/0.3601, allocations: 0 / 1.091 GB, free: 1.824 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00307/0.3631, allocations: 3.023 MB / 1.094 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.3632, allocations: 0 / 1.094 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007503/0.3639, allocations: 416.3 kB / 1.094 GB, free: 14.09 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001076/0.364, allocations: 120.8 kB / 1.094 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.147e-05/0.3641, allocations: 8 kB / 1.094 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001731/0.3643, allocations: 4 kB / 1.094 GB, free: 13.94 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.676e-05/0.3643, allocations: 23.91 kB / 1.094 GB, free: 13.92 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.915e-05/0.3644, allocations: 11.94 kB / 1.094 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001572/0.3645, allocations: 168.5 kB / 1.095 GB, free: 13.74 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.41e-07/0.3645, allocations: 0 / 1.095 GB, free: 13.74 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000638/0.3652, allocations: 171.3 kB / 1.095 GB, free: 13.57 MB / 0.8575 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.0001664/0.3654, allocations: 99.78 kB / 1.095 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.002006/0.3674, allocations: 0.7755 MB / 1.096 GB, free: 12.65 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.3674, allocations: 0 / 1.096 GB, free: 12.65 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0007942/0.3682, allocations: 375.2 kB / 1.096 GB, free: 12.26 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004526/0.3687, allocations: 59.41 kB / 1.096 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001172/0.3698, allocations: 0.7235 MB / 1.097 GB, free: 11.45 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000409/0.3703, allocations: 0.8107 MB / 1.098 GB, free: 10.61 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0002148/0.3705, allocations: 54.23 kB / 1.098 GB, free: 10.55 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.436e-05/0.3705, allocations: 19.44 kB / 1.098 GB, free: 10.53 MB / 0.8575 GB Notification: Performance of SimCode: time 5.21e-07/0.3706, allocations: 0 / 1.098 GB, free: 10.53 MB / 0.8575 GB Notification: Performance of Templates: time 0.009241/0.3798, allocations: 4.558 MB / 1.102 GB, free: 6.008 MB / 0.8575 GB make -j1 -f Buildings_3.0.0_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.makefile (rm -f Buildings_3.0.0_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; mkfifo Buildings_3.0.0_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe >> ../files/Buildings_3.0.0_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.sim & ./Buildings_3.0.0_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe 2>&1)