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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001179/0.00118, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.001707/0.001707, allocations: 168.7 kB / 15.95 MB, free: 204 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.498/1.498, allocations: 223.3 MB / 240 MB, free: 5.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.949/2.949, allocations: 462.6 MB / 0.736 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003604/0.0003604, allocations: 7.656 kB / 0.9021 GB, free: 36.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3741/0.3745, allocations: 159.6 MB / 1.058 GB, free: 5.352 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad): time 0.004969/0.3795, allocations: 3.606 MB / 1.062 GB, free: 1.73 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002665/0.3822, allocations: 1.497 MB / 1.063 GB, free: 232 kB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003197/0.3826, allocations: 4 kB / 1.063 GB, free: 228 kB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0003038/0.3829, allocations: 63.5 kB / 1.063 GB, free: 164 kB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0006202/0.3835, allocations: 191.1 kB / 1.063 GB, free: 15.97 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005923/0.3841, allocations: 161.1 kB / 1.063 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0008142/0.385, allocations: 0.627 MB / 1.064 GB, free: 15.19 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006894/0.3857, allocations: 389.7 kB / 1.064 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000412/0.3861, allocations: 175.3 kB / 1.065 GB, free: 14.6 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005417/0.3866, allocations: 243.2 kB / 1.065 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 7.366e-05/0.3867, allocations: 16 kB / 1.065 GB, free: 14.35 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003199/0.387, allocations: 83.89 kB / 1.065 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001711/0.3872, allocations: 119.7 kB / 1.065 GB, free: 14.15 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001358/0.3874, allocations: 93.52 kB / 1.065 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005263/0.3879, allocations: 395.2 kB / 1.065 GB, free: 13.66 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.112e-06/0.3879, allocations: 0 / 1.065 GB, free: 13.66 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.755e-06/0.3879, allocations: 0 / 1.065 GB, free: 13.66 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.677e-05/0.388, allocations: 0 / 1.065 GB, free: 13.66 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.001354/0.3893, allocations: 0.624 MB / 1.066 GB, free: 12.99 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.585e-05/0.3894, allocations: 12.03 kB / 1.066 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007671/0.3901, allocations: 111.5 kB / 1.066 GB, free: 12.87 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004328/0.3906, allocations: 302.3 kB / 1.066 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.41e-05/0.3907, allocations: 50.7 kB / 1.067 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.816e-05/0.3908, allocations: 39.98 kB / 1.067 GB, free: 12.44 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008605/0.3916, allocations: 0.493 MB / 1.067 GB, free: 11.92 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.427e-05/0.3916, allocations: 7.938 kB / 1.067 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.261e-05/0.3917, allocations: 15.98 kB / 1.067 GB, free: 11.9 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.443e-05/0.3918, allocations: 36.91 kB / 1.067 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007337/0.3925, allocations: 383.7 kB / 1.067 GB, free: 11.49 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002597/0.3951, allocations: 2.22 MB / 1.07 GB, free: 9.039 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007394/0.3959, allocations: 250.7 kB / 1.07 GB, free: 8.785 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003755/0.3962, allocations: 172.6 kB / 1.07 GB, free: 8.613 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.008e-05/0.3963, allocations: 4 kB / 1.07 GB, free: 8.609 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.799e-05/0.3963, allocations: 38.56 kB / 1.07 GB, free: 8.562 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=19): time 1.753e-06/0.3963, allocations: 0 / 1.07 GB, free: 8.562 MB / 0.8262 GB Notification: Performance of matching and sorting (n=19): time 0.001474/0.3978, allocations: 0.5806 MB / 1.071 GB, free: 7.934 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.836e-05/0.3979, allocations: 55.41 kB / 1.071 GB, free: 7.867 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002466/0.3981, allocations: 229 kB / 1.071 GB, free: 7.641 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.596e-05/0.3981, allocations: 29.7 kB / 1.071 GB, free: 7.605 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001493/0.3983, allocations: 219.6 kB / 1.071 GB, free: 7.387 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.953e-05/0.3984, allocations: 67.03 kB / 1.071 GB, free: 7.32 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.535e-05/0.3984, allocations: 8 kB / 1.071 GB, free: 7.312 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001352/0.3985, allocations: 326.8 kB / 1.072 GB, free: 6.984 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002086/0.3988, allocations: 95.94 kB / 1.072 GB, free: 6.891 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002768/0.399, allocations: 183.1 kB / 1.072 GB, free: 6.672 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002433/0.3993, allocations: 125.3 kB / 1.072 GB, free: 6.551 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.3993, allocations: 0 / 1.072 GB, free: 6.551 MB / 0.8262 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008226/0.4001, allocations: 384.2 kB / 1.072 GB, free: 6.164 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001177/0.4003, allocations: 167.8 kB / 1.072 GB, free: 5.965 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.4003, allocations: 4 kB / 1.072 GB, free: 5.961 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005046/0.4008, allocations: 113.6 kB / 1.073 GB, free: 5.844 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002099/0.401, allocations: 51.91 kB / 1.073 GB, free: 5.793 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003147/0.4042, allocations: 2.815 MB / 1.075 GB, free: 2.699 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002683/0.4044, allocations: 43.56 kB / 1.075 GB, free: 2.656 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.042e-05/0.4045, allocations: 8 kB / 1.075 GB, free: 2.648 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 7.674e-06/0.4045, allocations: 4 kB / 1.075 GB, free: 2.645 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007015/0.4052, allocations: 313.7 kB / 1.076 GB, free: 2.336 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.86e-06/0.4052, allocations: 4.312 kB / 1.076 GB, free: 2.332 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002595/0.4055, allocations: 80.78 kB / 1.076 GB, free: 2.25 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002206/0.4057, allocations: 63.84 kB / 1.076 GB, free: 2.188 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001731/0.4075, allocations: 1.491 MB / 1.077 GB, free: 0.5625 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002167/0.4077, allocations: 31.88 kB / 1.077 GB, free: 0.5312 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.828e-05/0.4077, allocations: 16 kB / 1.077 GB, free: 0.5156 MB / 0.8262 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 (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.0002475/0.408, allocations: 256.9 kB / 1.078 GB, free: 260 kB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.042e-05/0.408, allocations: 23.72 kB / 1.078 GB, free: 236 kB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.916e-05/0.4081, allocations: 30.17 kB / 1.078 GB, free: 212 kB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.4081, allocations: 0 / 1.078 GB, free: 212 kB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.454e-06/0.4081, allocations: 0 / 1.078 GB, free: 212 kB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.4081, allocations: 7.984 kB / 1.078 GB, free: 204 kB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001355/0.4095, allocations: 0.8311 MB / 1.078 GB, free: 15.29 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.4095, allocations: 7.953 kB / 1.078 GB, free: 15.28 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001449/0.4096, allocations: 39.91 kB / 1.079 GB, free: 15.24 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003575/0.41, allocations: 101.7 kB / 1.079 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.61e-05/0.41, allocations: 4 kB / 1.079 GB, free: 15.13 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002924/0.413, allocations: 2.814 MB / 1.081 GB, free: 12.05 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.413, allocations: 0 / 1.081 GB, free: 12.05 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007265/0.4137, allocations: 426.5 kB / 1.082 GB, free: 11.6 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001016/0.4138, allocations: 112.8 kB / 1.082 GB, free: 11.47 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.01e-05/0.4139, allocations: 8 kB / 1.082 GB, free: 11.46 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001643/0.414, allocations: 19.98 kB / 1.082 GB, free: 11.45 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.256e-05/0.4141, allocations: 15.97 kB / 1.082 GB, free: 11.43 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.599e-05/0.4141, allocations: 11.95 kB / 1.082 GB, free: 11.42 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001483/0.4143, allocations: 160.5 kB / 1.082 GB, free: 11.26 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.71e-07/0.4143, allocations: 0 / 1.082 GB, free: 11.26 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0006435/0.4149, allocations: 167.4 kB / 1.082 GB, free: 11.09 MB / 0.8419 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 (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.0001161/0.4151, allocations: 103.2 kB / 1.082 GB, free: 10.98 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001722/0.4168, allocations: 0.7675 MB / 1.083 GB, free: 10.18 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.4168, allocations: 0 / 1.083 GB, free: 10.18 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0007206/0.4175, allocations: 377.7 kB / 1.083 GB, free: 9.785 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004543/0.418, allocations: 60.06 kB / 1.084 GB, free: 9.727 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001082/0.4191, allocations: 0.6962 MB / 1.084 GB, free: 9.004 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004266/0.4195, allocations: 0.8107 MB / 1.085 GB, free: 8.168 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002089/0.4198, allocations: 54.25 kB / 1.085 GB, free: 8.113 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.838e-05/0.4198, allocations: 15.44 kB / 1.085 GB, free: 8.098 MB / 0.8419 GB Notification: Performance of SimCode: time 6.21e-07/0.4198, allocations: 0 / 1.085 GB, free: 8.098 MB / 0.8419 GB Notification: Performance of Templates: time 0.008233/0.4281, allocations: 4.147 MB / 1.089 GB, free: 3.984 MB / 0.8419 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)