Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009684/0.0009684, allocations: 99.08 kB / 15.05 MB, free: 1.105 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.001051/0.001051, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.564/1.564, allocations: 205.4 MB / 222.1 MB, free: 5.652 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0007129/0.000713, allocations: 16 kB / 278.9 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3003/0.301, allocations: 47.59 MB / 326.4 MB, free: 1.617 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.005969/0.3071, allocations: 3.766 MB / 330.2 MB, free: 14.68 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.004086/0.3112, allocations: 1.273 MB / 331.5 MB, free: 13.63 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001016/0.3123, allocations: 9.25 kB / 331.5 MB, free: 13.63 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004229/0.3127, allocations: 83.39 kB / 331.6 MB, free: 13.55 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001441/0.3142, allocations: 267.9 kB / 331.8 MB, free: 13.32 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001094/0.3153, allocations: 221.1 kB / 332.1 MB, free: 13.14 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002317/0.3176, allocations: 0.662 MB / 332.7 MB, free: 12.71 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006764/0.3183, allocations: 198.8 kB / 332.9 MB, free: 12.58 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001171/0.3195, allocations: 350.4 kB / 333.3 MB, free: 12.39 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001146/0.3207, allocations: 399.5 kB / 333.6 MB, free: 12.13 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003024/0.321, allocations: 44.69 kB / 333.7 MB, free: 12.13 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005376/0.3216, allocations: 69.5 kB / 333.8 MB, free: 12.11 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002881/0.3219, allocations: 146.5 kB / 333.9 MB, free: 11.99 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005229/0.3224, allocations: 163.2 kB / 334.1 MB, free: 11.9 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001224/0.3236, allocations: 0.7097 MB / 334.8 MB, free: 11.29 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.3237, allocations: 7.938 kB / 334.8 MB, free: 11.28 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.3237, allocations: 0 / 334.8 MB, free: 11.28 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.119e-05/0.3237, allocations: 0 / 334.8 MB, free: 11.28 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 152 * Number of variables: 152 Notification: Performance of Generate backend data structure: time 0.003283/0.327, allocations: 1.122 MB / 335.9 MB, free: 10.09 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.207e-05/0.3271, allocations: 8.031 kB / 335.9 MB, free: 10.09 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002956/0.3274, allocations: 86.97 kB / 336 MB, free: 10 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009168/0.3283, allocations: 440.6 kB / 336.4 MB, free: 9.531 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.577e-05/0.3284, allocations: 49.27 kB / 336.5 MB, free: 9.484 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001674/0.3286, allocations: 63.91 kB / 336.5 MB, free: 9.422 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001939/0.3305, allocations: 0.6584 MB / 337.2 MB, free: 8.754 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.321e-05/0.3305, allocations: 0 / 337.2 MB, free: 8.754 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.841e-05/0.3306, allocations: 27.98 kB / 337.2 MB, free: 8.727 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.617e-05/0.3307, allocations: 12 kB / 337.2 MB, free: 8.715 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002392/0.3331, allocations: 0.7351 MB / 338 MB, free: 7.98 MB / 270.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005279/0.3384, allocations: 2.371 MB / 340.3 MB, free: 5.453 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002058/0.3404, allocations: 0.6374 MB / 341 MB, free: 4.809 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.518e-05/0.3405, allocations: 8.422 kB / 341 MB, free: 4.801 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001348/0.3419, allocations: 453.4 kB / 341.4 MB, free: 4.332 MB / 270.1 MB Notification: Performance of pre-optimization done (n=54): time 3.587e-06/0.3419, allocations: 0 / 341.4 MB, free: 4.332 MB / 270.1 MB Notification: Performance of matching and sorting (n=94): time 0.09181/0.4337, allocations: 16.7 MB / 358.1 MB, free: 3.527 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001049/0.4339, allocations: 153.5 kB / 358.3 MB, free: 3.348 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006761/0.4345, allocations: 486.9 kB / 358.7 MB, free: 2.867 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001887/0.4348, allocations: 41.7 kB / 358.8 MB, free: 2.82 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002984/0.4351, allocations: 363.9 kB / 359.1 MB, free: 2.457 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003425/0.4354, allocations: 311.5 kB / 359.4 MB, free: 2.148 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.831e-05/0.4355, allocations: 24 kB / 359.5 MB, free: 2.125 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001761/0.4357, allocations: 382.8 kB / 359.8 MB, free: 1.742 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00204/0.4377, allocations: 0.7943 MB / 360.6 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002193/0.44, allocations: 0.9968 MB / 361.6 MB, free: 15.87 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0021/0.4421, allocations: 0.873 MB / 362.5 MB, free: 14.99 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.483e-06/0.4421, allocations: 7.938 kB / 362.5 MB, free: 14.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02232/0.4644, allocations: 5.62 MB / 368.1 MB, free: 9.332 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.602e-05/0.4645, allocations: 63.41 kB / 368.2 MB, free: 9.258 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.869e-05/0.4646, allocations: 8 kB / 368.2 MB, free: 9.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03416/0.4987, allocations: 7.324 MB / 375.5 MB, free: 1.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007416/0.4995, allocations: 167.8 kB / 375.7 MB, free: 1.746 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006688/0.5062, allocations: 3.208 MB / 378.9 MB, free: 14.48 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001679/0.508, allocations: 219.8 kB / 379.1 MB, free: 14.27 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001033/0.5081, allocations: 43.98 kB / 379.2 MB, free: 14.22 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.V1.signalSource.T_start,V1.signalSource.T_start,$PRE.V1.signalSource.count,V1.signalSource.count,$PRE.V2.signalSource.T_start,V2.signalSource.T_start,$PRE.V2.signalSource.count,V2.signalSource.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 2 * 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 {5 32,5 32} Notification: Performance of prepare postOptimizeDAE: time 0.0004151/0.5085, allocations: 229.7 kB / 379.4 MB, free: 13.99 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001329/0.5086, allocations: 79.06 kB / 379.5 MB, free: 13.91 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02307/0.5317, allocations: 5.454 MB / 384.9 MB, free: 8.426 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.039e-05/0.5318, allocations: 12 kB / 384.9 MB, free: 8.414 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.151e-05/0.5318, allocations: 7.938 kB / 384.9 MB, free: 8.406 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.215e-05/0.5318, allocations: 3.984 kB / 384.9 MB, free: 8.402 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001502/0.5333, allocations: 1.086 MB / 386 MB, free: 7.27 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.5333, allocations: 0 / 386 MB, free: 7.27 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005538/0.5339, allocations: 123.9 kB / 386.1 MB, free: 7.148 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0324/0.5663, allocations: 7.289 MB / 393.4 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002054/0.5666, allocations: 31.97 kB / 393.5 MB, free: 15.81 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00527/0.5718, allocations: 3.087 MB / 396.6 MB, free: 12.67 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.5719, allocations: 3.938 kB / 396.6 MB, free: 12.66 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02348/0.5954, allocations: 6.417 MB / 403 MB, free: 6.215 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002851/0.5957, allocations: 144.2 kB / 403.1 MB, free: 6.055 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001691/0.5959, allocations: 20 kB / 403.1 MB, free: 6.035 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001314/0.5972, allocations: 211.8 kB / 403.3 MB, free: 5.828 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002385/0.5974, allocations: 96.84 kB / 403.4 MB, free: 5.734 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001069/0.5975, allocations: 35.97 kB / 403.5 MB, free: 5.699 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003693/0.5979, allocations: 334.9 kB / 403.8 MB, free: 5.375 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5979, allocations: 0 / 403.8 MB, free: 5.375 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007753/0.5987, allocations: 252 kB / 404 MB, free: 5.129 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (HeatCapacitor1.T) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,V1.signalSource.T_start,V1.signalSource.count,V2.signalSource.T_start,V2.signalSource.count) * Number of discrete states: 2 (V2.signalSource.count,V1.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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 {5 32,5 36} Notification: Performance of Backend phase and start with SimCode phase: time 0.000268/0.599, allocations: 127.2 kB / 404.2 MB, free: 4.996 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.006731/0.6057, allocations: 2.317 MB / 406.5 MB, free: 2.656 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.621e-06/0.6058, allocations: 0 / 406.5 MB, free: 2.656 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003295/0.6091, allocations: 1.161 MB / 407.6 MB, free: 1.5 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000685/0.6098, allocations: 122 kB / 407.8 MB, free: 1.383 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003626/0.6134, allocations: 2.051 MB / 409.8 MB, free: 15.3 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005121/0.6139, allocations: 0.9621 MB / 410.8 MB, free: 14.31 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002694/0.6142, allocations: 62 kB / 410.8 MB, free: 14.25 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001034/0.6143, allocations: 35.44 kB / 410.9 MB, free: 14.21 MB / 350.1 MB Notification: Performance of SimCode: time 1.323e-06/0.6143, allocations: 0 / 410.9 MB, free: 14.21 MB / 350.1 MB Notification: Performance of Templates: time 0.02942/0.6438, allocations: 19.7 MB / 430.6 MB, free: 10.48 MB / 366.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.makefile Environment - environmentSimulation: (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) Environment - environmentSimulation: