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.008229/0.00823, allocations: 99.98 kB / 15.73 MB, free: 6.039 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.001788/0.001788, allocations: 202.1 kB / 16.68 MB, free: 5.965 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.435/1.435, allocations: 222.9 MB / 240.4 MB, free: 4.328 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.449/2.449, allocations: 390.2 MB / 0.6648 GB, free: 244 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 57.53 kB / 0.9508 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3736/0.3749, allocations: 140.4 MB / 1.088 GB, free: 1.574 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad): time 0.006227/0.3812, allocations: 4.097 MB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003348/0.3845, allocations: 1.593 MB / 1.093 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001949/0.3848, allocations: 11.94 kB / 1.093 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001719/0.3865, allocations: 0.5759 MB / 1.094 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0005663/0.3871, allocations: 234.8 kB / 1.094 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005359/0.3876, allocations: 214.8 kB / 1.094 GB, free: 10.83 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0005495/0.3882, allocations: 0.5452 MB / 1.095 GB, free: 10.28 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007181/0.3889, allocations: 485.8 kB / 1.095 GB, free: 9.805 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000255/0.3892, allocations: 223.3 kB / 1.096 GB, free: 9.586 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005307/0.3897, allocations: 251.1 kB / 1.096 GB, free: 9.34 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 6.218e-05/0.3898, allocations: 36 kB / 1.096 GB, free: 9.305 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003278/0.3901, allocations: 171.6 kB / 1.096 GB, free: 9.137 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001683/0.3903, allocations: 143.7 kB / 1.096 GB, free: 8.996 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0003289/0.3907, allocations: 203.1 kB / 1.096 GB, free: 8.797 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0007104/0.3914, allocations: 0.5253 MB / 1.097 GB, free: 8.27 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 7.895e-06/0.3914, allocations: 0 / 1.097 GB, free: 8.27 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.305e-06/0.3914, allocations: 3.938 kB / 1.097 GB, free: 8.266 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.748e-06/0.3914, allocations: 0 / 1.097 GB, free: 8.266 MB / 0.8575 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.001573/0.393, allocations: 0.686 MB / 1.098 GB, free: 7.527 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.749e-05/0.3931, allocations: 12.03 kB / 1.098 GB, free: 7.516 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000816/0.3939, allocations: 112.5 kB / 1.098 GB, free: 7.406 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005494/0.3944, allocations: 300.2 kB / 1.098 GB, free: 7.074 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001058/0.3946, allocations: 67.23 kB / 1.098 GB, free: 7.004 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.455e-05/0.3946, allocations: 32.38 kB / 1.098 GB, free: 6.973 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009907/0.3956, allocations: 0.5009 MB / 1.099 GB, free: 6.445 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.949e-05/0.3957, allocations: 3.938 kB / 1.099 GB, free: 6.441 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.709e-05/0.3957, allocations: 16 kB / 1.099 GB, free: 6.426 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.663e-05/0.3958, allocations: 32.98 kB / 1.099 GB, free: 6.395 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007393/0.3965, allocations: 375.7 kB / 1.099 GB, free: 6.027 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002999/0.3995, allocations: 2.2 MB / 1.101 GB, free: 3.598 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008245/0.4004, allocations: 262.6 kB / 1.101 GB, free: 3.332 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004191/0.4008, allocations: 148.8 kB / 1.102 GB, free: 3.184 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.238e-05/0.4009, allocations: 3.938 kB / 1.102 GB, free: 3.18 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.61e-05/0.4009, allocations: 42.56 kB / 1.102 GB, free: 3.129 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=19): time 1.432e-06/0.4009, allocations: 0 / 1.102 GB, free: 3.129 MB / 0.8575 GB Notification: Performance of matching and sorting (n=19): time 0.001677/0.4026, allocations: 0.5804 MB / 1.102 GB, free: 2.5 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.989e-05/0.4026, allocations: 51.41 kB / 1.102 GB, free: 2.438 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002727/0.4029, allocations: 225 kB / 1.102 GB, free: 2.211 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.004e-05/0.403, allocations: 29.7 kB / 1.102 GB, free: 2.176 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001557/0.4031, allocations: 216.2 kB / 1.103 GB, free: 1.961 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.694e-05/0.4032, allocations: 71.38 kB / 1.103 GB, free: 1.891 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001039/0.4033, allocations: 49.7 kB / 1.103 GB, free: 1.836 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001575/0.4035, allocations: 330.8 kB / 1.103 GB, free: 1.504 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002241/0.4037, allocations: 96.8 kB / 1.103 GB, free: 1.406 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003294/0.404, allocations: 188.6 kB / 1.103 GB, free: 1.184 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005654/0.4046, allocations: 283.4 kB / 1.104 GB, free: 0.875 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.4046, allocations: 3.938 kB / 1.104 GB, free: 0.8711 MB / 0.8575 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009389/0.4056, allocations: 375 kB / 1.104 GB, free: 0.4922 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3e-05/0.4056, allocations: 9.719 kB / 1.104 GB, free: 496 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.4056, allocations: 0 / 1.104 GB, free: 496 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006386/0.4063, allocations: 109.7 kB / 1.104 GB, free: 380 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002132/0.4065, allocations: 47.92 kB / 1.104 GB, free: 332 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00393/0.4104, allocations: 3.043 MB / 1.107 GB, free: 12.99 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002735/0.4107, allocations: 35.86 kB / 1.107 GB, free: 12.95 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.195e-05/0.4108, allocations: 16 kB / 1.107 GB, free: 12.94 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003817/0.4112, allocations: 224 kB / 1.107 GB, free: 12.71 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003037/0.4115, allocations: 187.5 kB / 1.108 GB, free: 12.49 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005079/0.412, allocations: 263.3 kB / 1.108 GB, free: 12.2 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.413e-06/0.412, allocations: 0 / 1.108 GB, free: 12.2 MB / 0.8731 GB Notification: Performance of matching and sorting (n=30) (initialization_lambda0): time 0.000785/0.4128, allocations: 351.8 kB / 1.108 GB, free: 11.85 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.275e-05/0.4128, allocations: 11.94 kB / 1.108 GB, free: 11.84 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.597e-06/0.4128, allocations: 0 / 1.108 GB, free: 11.84 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003067/0.4131, allocations: 89.08 kB / 1.108 GB, free: 11.75 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002144/0.4134, allocations: 51.91 kB / 1.108 GB, free: 11.7 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002055/0.4154, allocations: 1.614 MB / 1.11 GB, free: 9.949 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000254/0.4157, allocations: 27.88 kB / 1.11 GB, free: 9.922 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.029e-05/0.4157, allocations: 20 kB / 1.11 GB, free: 9.902 MB / 0.8731 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.0001512/0.4159, allocations: 200.2 kB / 1.11 GB, free: 9.699 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.459e-05/0.4159, allocations: 23.86 kB / 1.11 GB, free: 9.676 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.709e-05/0.416, allocations: 26.19 kB / 1.11 GB, free: 9.652 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-06/0.416, allocations: 4 kB / 1.11 GB, free: 9.648 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.416, allocations: 0 / 1.11 GB, free: 9.648 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.079e-05/0.416, allocations: 7.922 kB / 1.11 GB, free: 9.641 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00142/0.4175, allocations: 0.831 MB / 1.111 GB, free: 8.73 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.4175, allocations: 0 / 1.111 GB, free: 8.73 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001739/0.4177, allocations: 39.98 kB / 1.111 GB, free: 8.691 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003753/0.4181, allocations: 97.62 kB / 1.111 GB, free: 8.59 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.071e-05/0.4181, allocations: 8 kB / 1.111 GB, free: 8.582 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003132/0.4212, allocations: 3.027 MB / 1.114 GB, free: 5.273 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.4212, allocations: 4.031 kB / 1.114 GB, free: 5.27 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008223/0.4221, allocations: 419.1 kB / 1.115 GB, free: 4.832 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001125/0.4222, allocations: 112.9 kB / 1.115 GB, free: 4.703 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.974e-05/0.4222, allocations: 4 kB / 1.115 GB, free: 4.699 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001806/0.4224, allocations: 15.98 kB / 1.115 GB, free: 4.684 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.472e-05/0.4225, allocations: 19.97 kB / 1.115 GB, free: 4.664 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.341e-05/0.4225, allocations: 4 kB / 1.115 GB, free: 4.66 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001554/0.4227, allocations: 164.5 kB / 1.115 GB, free: 4.504 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4227, allocations: 4 kB / 1.115 GB, free: 4.5 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0006654/0.4234, allocations: 171.5 kB / 1.115 GB, free: 4.332 MB / 0.8731 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.000169/0.4235, allocations: 107.2 kB / 1.115 GB, free: 4.219 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.002111/0.4257, allocations: 0.7604 MB / 1.116 GB, free: 3.422 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.4257, allocations: 0 / 1.116 GB, free: 3.422 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0008335/0.4265, allocations: 373.7 kB / 1.116 GB, free: 3.031 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004732/0.427, allocations: 57.36 kB / 1.116 GB, free: 2.977 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001203/0.4282, allocations: 0.592 MB / 1.117 GB, free: 2.352 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005118/0.4288, allocations: 0.8145 MB / 1.118 GB, free: 1.512 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0002075/0.429, allocations: 62.22 kB / 1.118 GB, free: 1.445 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.685e-05/0.429, allocations: 19.44 kB / 1.118 GB, free: 1.426 MB / 0.8731 GB Notification: Performance of SimCode: time 7.01e-07/0.429, allocations: 0 / 1.118 GB, free: 1.426 MB / 0.8731 GB Notification: Performance of Templates: time 0.01075/0.4398, allocations: 4.717 MB / 1.122 GB, free: 12.74 MB / 0.8887 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)