Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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="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_latest_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_latest_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.001499/0.001499, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001729/0.001729, allocations: 195.5 kB / 16.53 MB, free: 6.391 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.402/1.402, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.829/2.829, allocations: 472.6 MB / 0.7451 GB, free: 4.633 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 65.19 kB / 0.9121 GB, free: 33.36 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3087/0.3099, allocations: 159.9 MB / 1.068 GB, free: 10.37 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad): time 0.006414/0.3164, allocations: 4.09 MB / 1.072 GB, free: 6.262 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002814/0.3192, allocations: 1.601 MB / 1.074 GB, free: 4.652 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003115/0.3196, allocations: 8 kB / 1.074 GB, free: 4.645 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001701/0.3213, allocations: 0.5759 MB / 1.074 GB, free: 4.066 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0005833/0.3219, allocations: 238.8 kB / 1.075 GB, free: 3.832 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000564/0.3224, allocations: 211.6 kB / 1.075 GB, free: 3.625 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0006462/0.3231, allocations: 0.5531 MB / 1.075 GB, free: 3.07 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007267/0.3238, allocations: 478 kB / 1.076 GB, free: 2.598 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003123/0.3242, allocations: 227.2 kB / 1.076 GB, free: 2.375 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004962/0.3247, allocations: 255.1 kB / 1.076 GB, free: 2.125 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0001005/0.3248, allocations: 36 kB / 1.076 GB, free: 2.09 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000349/0.3251, allocations: 171.6 kB / 1.076 GB, free: 1.922 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001684/0.3253, allocations: 139.7 kB / 1.077 GB, free: 1.785 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002414/0.3256, allocations: 203 kB / 1.077 GB, free: 1.586 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.00061/0.3262, allocations: 0.5179 MB / 1.077 GB, free: 1.066 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.3262, allocations: 0 / 1.077 GB, free: 1.066 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.373e-06/0.3262, allocations: 0 / 1.077 GB, free: 1.066 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.346e-05/0.3262, allocations: 0 / 1.077 GB, free: 1.066 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.001292/0.3275, allocations: 0.6787 MB / 1.078 GB, free: 348 kB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.424e-05/0.3276, allocations: 12.03 kB / 1.078 GB, free: 336 kB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007257/0.3283, allocations: 96.48 kB / 1.078 GB, free: 240 kB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004072/0.3287, allocations: 308.3 kB / 1.078 GB, free: 15.89 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.819e-05/0.3288, allocations: 55.25 kB / 1.078 GB, free: 15.83 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.509e-05/0.3289, allocations: 36.38 kB / 1.078 GB, free: 15.8 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008159/0.3297, allocations: 0.497 MB / 1.079 GB, free: 15.27 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.357e-05/0.3297, allocations: 7.938 kB / 1.079 GB, free: 15.27 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.973e-05/0.3297, allocations: 12 kB / 1.079 GB, free: 15.25 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.579e-05/0.3298, allocations: 40.91 kB / 1.079 GB, free: 15.21 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007081/0.3305, allocations: 375.7 kB / 1.079 GB, free: 14.85 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002419/0.3329, allocations: 2.208 MB / 1.081 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006799/0.3336, allocations: 250.7 kB / 1.082 GB, free: 12.16 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003676/0.334, allocations: 160.5 kB / 1.082 GB, free: 12 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.84e-05/0.3341, allocations: 11.98 kB / 1.082 GB, free: 11.99 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.495e-05/0.3341, allocations: 30.56 kB / 1.082 GB, free: 11.95 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=19): time 1.523e-06/0.3341, allocations: 0 / 1.082 GB, free: 11.95 MB / 0.8419 GB Notification: Performance of matching and sorting (n=19): time 0.001504/0.3356, allocations: 0.5696 MB / 1.082 GB, free: 11.33 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.552e-05/0.3357, allocations: 59.41 kB / 1.083 GB, free: 11.26 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002148/0.3359, allocations: 225 kB / 1.083 GB, free: 11.04 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.554e-05/0.3359, allocations: 33.7 kB / 1.083 GB, free: 11 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001285/0.336, allocations: 211.6 kB / 1.083 GB, free: 10.78 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 6.085e-05/0.3361, allocations: 67.09 kB / 1.083 GB, free: 10.71 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.885e-05/0.3362, allocations: 53.61 kB / 1.083 GB, free: 10.66 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001243/0.3363, allocations: 330.8 kB / 1.083 GB, free: 10.32 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002317/0.3366, allocations: 96.8 kB / 1.083 GB, free: 10.23 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002973/0.3369, allocations: 188 kB / 1.084 GB, free: 10 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000482/0.3374, allocations: 269.3 kB / 1.084 GB, free: 9.707 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.3374, allocations: 0 / 1.084 GB, free: 9.707 MB / 0.8419 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008858/0.3383, allocations: 376.3 kB / 1.084 GB, free: 9.328 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/0.3383, allocations: 4 kB / 1.084 GB, free: 9.324 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.388e-06/0.3383, allocations: 7.984 kB / 1.084 GB, free: 9.316 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000499/0.3388, allocations: 105.8 kB / 1.084 GB, free: 9.207 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002122/0.339, allocations: 55.91 kB / 1.084 GB, free: 9.152 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003178/0.3422, allocations: 3.058 MB / 1.087 GB, free: 5.812 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002588/0.3425, allocations: 35.67 kB / 1.087 GB, free: 5.777 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.228e-05/0.3425, allocations: 12 kB / 1.087 GB, free: 5.766 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003272/0.3429, allocations: 220.1 kB / 1.088 GB, free: 5.547 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002674/0.3431, allocations: 183.5 kB / 1.088 GB, free: 5.328 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004597/0.3436, allocations: 263 kB / 1.088 GB, free: 5.039 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.753e-06/0.3436, allocations: 0 / 1.088 GB, free: 5.039 MB / 0.8419 GB Notification: Performance of matching and sorting (n=30) (initialization_lambda0): time 0.0007906/0.3444, allocations: 355.9 kB / 1.088 GB, free: 4.684 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 9.969e-06/0.3444, allocations: 7.938 kB / 1.088 GB, free: 4.676 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.3445, allocations: 4 kB / 1.088 GB, free: 4.672 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003206/0.3448, allocations: 81.06 kB / 1.089 GB, free: 4.59 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002235/0.345, allocations: 55.91 kB / 1.089 GB, free: 4.535 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002078/0.3471, allocations: 1.615 MB / 1.09 GB, free: 2.781 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000322/0.3474, allocations: 39.8 kB / 1.09 GB, free: 2.742 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.896e-05/0.3475, allocations: 11.94 kB / 1.09 GB, free: 2.73 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.000204/0.3477, allocations: 197.7 kB / 1.09 GB, free: 2.531 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.19e-05/0.3478, allocations: 15.81 kB / 1.09 GB, free: 2.516 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.597e-05/0.3479, allocations: 34.17 kB / 1.09 GB, free: 2.48 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/0.3479, allocations: 0 / 1.09 GB, free: 2.48 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/0.3479, allocations: 4 kB / 1.09 GB, free: 2.477 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.905e-06/0.3479, allocations: 7.938 kB / 1.09 GB, free: 2.469 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001745/0.3497, allocations: 0.8287 MB / 1.091 GB, free: 1.559 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.3497, allocations: 4.031 kB / 1.091 GB, free: 1.555 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000152/0.3498, allocations: 31.92 kB / 1.091 GB, free: 1.523 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004152/0.3503, allocations: 101.6 kB / 1.091 GB, free: 1.418 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.68e-05/0.3503, allocations: 7.984 kB / 1.091 GB, free: 1.41 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003358/0.3537, allocations: 3.015 MB / 1.094 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.3537, allocations: 0 / 1.094 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009121/0.3546, allocations: 418.5 kB / 1.095 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001659/0.3548, allocations: 116.8 kB / 1.095 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.49e-05/0.3548, allocations: 8 kB / 1.095 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000186/0.355, allocations: 12 kB / 1.095 GB, free: 13.53 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001017/0.3552, allocations: 19.97 kB / 1.095 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.722e-05/0.3552, allocations: 4 kB / 1.095 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001942/0.3554, allocations: 164.5 kB / 1.095 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.7e-07/0.3554, allocations: 3.938 kB / 1.095 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0007218/0.3561, allocations: 175.3 kB / 1.095 GB, free: 13.17 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.0001492/0.3563, allocations: 115.1 kB / 1.095 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.002087/0.3584, allocations: 0.772 MB / 1.096 GB, free: 12.24 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.3584, allocations: 0 / 1.096 GB, free: 12.24 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000807/0.3592, allocations: 370.5 kB / 1.096 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004479/0.3597, allocations: 67.52 kB / 1.097 GB, free: 11.79 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001069/0.3607, allocations: 0.5843 MB / 1.097 GB, free: 11.17 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003875/0.3611, allocations: 0.8107 MB / 1.098 GB, free: 10.34 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0002158/0.3614, allocations: 58.23 kB / 1.098 GB, free: 10.28 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.005e-05/0.3614, allocations: 23.44 kB / 1.098 GB, free: 10.25 MB / 0.8575 GB Notification: Performance of SimCode: time 3.71e-07/0.3614, allocations: 0 / 1.098 GB, free: 10.25 MB / 0.8575 GB Notification: Performance of Templates: time 0.009092/0.3705, allocations: 4.647 MB / 1.103 GB, free: 5.641 MB / 0.8575 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.sim & ./Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe 2>&1)