Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Electrical.DC.Loads.Examples.Resistor.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.Resistor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Electrical.DC.Loads.Examples.Resistor") translateModel(Buildings.Electrical.DC.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Electrical.DC.Loads.Examples.Resistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00107/0.00107, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001161/0.001161, allocations: 197.5 kB / 16.14 MB, free: 6.66 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.354/1.354, allocations: 222.9 MB / 239.8 MB, free: 4.582 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.79/2.79, allocations: 472.6 MB / 0.7447 GB, free: 4.973 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 66.55 kB / 0.9113 GB, free: 33.67 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3799/0.3813, allocations: 159.9 MB / 1.068 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.006148/0.3875, allocations: 3.882 MB / 1.071 GB, free: 7.047 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002936/0.3904, allocations: 1.73 MB / 1.073 GB, free: 5.309 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001851/0.3907, allocations: 15.94 kB / 1.073 GB, free: 5.293 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.00141/0.3921, allocations: 468.5 kB / 1.073 GB, free: 4.836 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0005442/0.3926, allocations: 211.1 kB / 1.074 GB, free: 4.629 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005592/0.3932, allocations: 195.6 kB / 1.074 GB, free: 4.438 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0006741/0.3939, allocations: 0.6583 MB / 1.074 GB, free: 3.777 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004408/0.3943, allocations: 233.2 kB / 1.075 GB, free: 3.547 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002154/0.3945, allocations: 171.3 kB / 1.075 GB, free: 3.379 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004336/0.395, allocations: 223.2 kB / 1.075 GB, free: 3.16 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.88e-05/0.395, allocations: 20 kB / 1.075 GB, free: 3.141 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005321/0.3956, allocations: 311.3 kB / 1.075 GB, free: 2.836 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001372/0.3957, allocations: 115.7 kB / 1.076 GB, free: 2.723 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001835/0.3959, allocations: 163.1 kB / 1.076 GB, free: 2.562 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000611/0.3965, allocations: 0.5103 MB / 1.076 GB, free: 2.051 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.173e-06/0.3966, allocations: 0 / 1.076 GB, free: 2.051 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.082e-06/0.3966, allocations: 0 / 1.076 GB, free: 2.051 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.032e-06/0.3966, allocations: 0 / 1.076 GB, free: 2.051 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.001094/0.3977, allocations: 0.6316 MB / 1.077 GB, free: 1.371 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/0.3977, allocations: 8.031 kB / 1.077 GB, free: 1.363 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008718/0.3986, allocations: 132.4 kB / 1.077 GB, free: 1.234 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003861/0.399, allocations: 287.7 kB / 1.077 GB, free: 0.9141 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.252e-05/0.399, allocations: 21.03 kB / 1.077 GB, free: 0.8945 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.417e-05/0.3991, allocations: 28.36 kB / 1.077 GB, free: 0.8672 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006588/0.3997, allocations: 471.8 kB / 1.078 GB, free: 376 kB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.292e-05/0.3998, allocations: 0 / 1.078 GB, free: 376 kB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.993e-05/0.3998, allocations: 15.98 kB / 1.078 GB, free: 360 kB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.714e-05/0.3999, allocations: 32.55 kB / 1.078 GB, free: 328 kB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000494/0.4004, allocations: 321.9 kB / 1.078 GB, free: 4 kB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002264/0.4026, allocations: 2.185 MB / 1.08 GB, free: 13.61 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003709/0.403, allocations: 243.8 kB / 1.08 GB, free: 13.34 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002422/0.4033, allocations: 112.8 kB / 1.081 GB, free: 13.23 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.426e-05/0.4033, allocations: 4 kB / 1.081 GB, free: 13.23 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.655e-05/0.4033, allocations: 34.56 kB / 1.081 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=14): time 1.432e-06/0.4033, allocations: 0 / 1.081 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of matching and sorting (n=14): time 0.000597/0.4039, allocations: 306.9 kB / 1.081 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.521e-05/0.404, allocations: 51.41 kB / 1.081 GB, free: 12.8 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002753/0.4043, allocations: 274.5 kB / 1.081 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.206e-05/0.4043, allocations: 33.7 kB / 1.081 GB, free: 12.48 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001487/0.4045, allocations: 203.9 kB / 1.081 GB, free: 12.27 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.99e-05/0.4045, allocations: 51.2 kB / 1.081 GB, free: 12.22 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.318e-05/0.4046, allocations: 41.95 kB / 1.081 GB, free: 12.17 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.000133/0.4047, allocations: 346.8 kB / 1.082 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001041/0.4049, allocations: 52.44 kB / 1.082 GB, free: 11.77 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001457/0.405, allocations: 148 kB / 1.082 GB, free: 11.59 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000267/0.4053, allocations: 218.9 kB / 1.082 GB, free: 11.34 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.02e-06/0.4053, allocations: 4 kB / 1.082 GB, free: 11.33 MB / 0.8419 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004029/0.4057, allocations: 268 kB / 1.082 GB, free: 11.06 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/0.4057, allocations: 8 kB / 1.082 GB, free: 11.05 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.4057, allocations: 0 / 1.082 GB, free: 11.05 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001745/0.4059, allocations: 28.84 kB / 1.082 GB, free: 11.02 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001783/0.4061, allocations: 43.92 kB / 1.083 GB, free: 10.98 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001082/0.4072, allocations: 1.327 MB / 1.084 GB, free: 9.523 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001548/0.4074, allocations: 27.62 kB / 1.084 GB, free: 9.496 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.88e-05/0.4074, allocations: 16.16 kB / 1.084 GB, free: 9.48 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001642/0.4076, allocations: 162.3 kB / 1.084 GB, free: 9.312 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.093e-05/0.4076, allocations: 27.66 kB / 1.084 GB, free: 9.285 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.6e-05/0.4077, allocations: 33.83 kB / 1.084 GB, free: 9.254 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.4077, allocations: 0 / 1.084 GB, free: 9.254 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.4077, allocations: 0 / 1.084 GB, free: 9.254 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.4077, allocations: 0 / 1.084 GB, free: 9.254 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008974/0.4086, allocations: 0.7064 MB / 1.085 GB, free: 8.457 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.848e-06/0.4086, allocations: 4 kB / 1.085 GB, free: 8.453 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.572e-05/0.4087, allocations: 23.92 kB / 1.085 GB, free: 8.43 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.831e-05/0.4088, allocations: 29.03 kB / 1.085 GB, free: 8.398 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.214e-05/0.4088, allocations: 4 kB / 1.085 GB, free: 8.395 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009636/0.4098, allocations: 1.323 MB / 1.086 GB, free: 6.941 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.4098, allocations: 4.031 kB / 1.086 GB, free: 6.938 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003573/0.4101, allocations: 325.1 kB / 1.086 GB, free: 6.582 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 9.818e-05/0.4103, allocations: 112.8 kB / 1.087 GB, free: 6.453 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.692e-05/0.4103, allocations: 0 / 1.087 GB, free: 6.453 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001598/0.4105, allocations: 15.98 kB / 1.087 GB, free: 6.438 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.291e-05/0.4105, allocations: 19.92 kB / 1.087 GB, free: 6.418 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.054e-05/0.4105, allocations: 4 kB / 1.087 GB, free: 6.414 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001821/0.4107, allocations: 190 kB / 1.087 GB, free: 6.227 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.8e-07/0.4107, allocations: 0 / 1.087 GB, free: 6.227 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003965/0.4111, allocations: 87.72 kB / 1.087 GB, free: 6.141 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001208/0.4112, allocations: 99.78 kB / 1.087 GB, free: 6.031 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004461/0.4117, allocations: 266.3 kB / 1.087 GB, free: 5.758 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.4117, allocations: 4 kB / 1.087 GB, free: 5.754 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002177/0.4119, allocations: 182.5 kB / 1.087 GB, free: 5.562 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004969/0.4124, allocations: 58.58 kB / 1.087 GB, free: 5.508 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009173/0.4134, allocations: 0.6614 MB / 1.088 GB, free: 4.801 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003913/0.4138, allocations: 0.7912 MB / 1.089 GB, free: 3.984 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001469/0.4139, allocations: 42.27 kB / 1.089 GB, free: 3.941 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.757e-05/0.414, allocations: 19.44 kB / 1.089 GB, free: 3.922 MB / 0.8419 GB Notification: Performance of SimCode: time 2.2e-07/0.414, allocations: 0 / 1.089 GB, free: 3.922 MB / 0.8419 GB Notification: Performance of Templates: time 0.005907/0.4199, allocations: 2.59 MB / 1.091 GB, free: 1.363 MB / 0.8419 GB make -j1 -f Buildings_1.6_Buildings.Electrical.DC.Loads.Examples.Resistor.makefile (rm -f Buildings_1.6_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_1.6_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_1.6_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & ./Buildings_1.6_Buildings.Electrical.DC.Loads.Examples.Resistor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1)