Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.001124/0.001124, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.009461/0.009461, allocations: 168.9 kB / 16.26 MB, free: 6.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.615/1.615, allocations: 205.4 MB / 222.5 MB, free: 5.793 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.0004538/0.0004538, allocations: 12 kB / 279.4 MB, free: 12.76 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2899/0.2904, allocations: 47.59 MB / 327 MB, free: 1.375 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.00516/0.2956, allocations: 4.295 MB / 331.3 MB, free: 13.94 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003375/0.299, allocations: 1.273 MB / 332.6 MB, free: 12.88 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004975/0.2996, allocations: 12.66 kB / 332.6 MB, free: 12.88 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002662/0.2998, allocations: 76.84 kB / 332.7 MB, free: 12.81 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005642/0.3004, allocations: 208.6 kB / 332.9 MB, free: 12.63 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008214/0.3012, allocations: 266.8 kB / 333.2 MB, free: 12.4 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001093/0.3023, allocations: 0.9866 MB / 334.1 MB, free: 11.82 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004318/0.3028, allocations: 219.7 kB / 334.4 MB, free: 11.68 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005143/0.3033, allocations: 347.8 kB / 334.7 MB, free: 11.5 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005172/0.3038, allocations: 411 kB / 335.1 MB, free: 11.22 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001108/0.304, allocations: 43.25 kB / 335.1 MB, free: 11.22 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002097/0.3042, allocations: 73.5 kB / 335.2 MB, free: 11.18 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001373/0.3043, allocations: 135.4 kB / 335.3 MB, free: 11.05 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003849/0.3047, allocations: 415.6 kB / 335.7 MB, free: 10.63 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000847/0.3056, allocations: 0.908 MB / 336.7 MB, free: 9.723 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.3056, allocations: 0 / 336.7 MB, free: 9.723 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.276e-06/0.3056, allocations: 0 / 336.7 MB, free: 9.723 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.138e-05/0.3056, allocations: 0 / 336.7 MB, free: 9.723 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.00238/0.308, allocations: 1.114 MB / 337.8 MB, free: 8.543 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.33e-05/0.3081, allocations: 12.03 kB / 337.8 MB, free: 8.531 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001654/0.3082, allocations: 87.91 kB / 337.9 MB, free: 8.445 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005869/0.3088, allocations: 461.3 kB / 338.3 MB, free: 7.953 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.155e-05/0.3089, allocations: 49.69 kB / 338.4 MB, free: 7.906 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001412/0.309, allocations: 64.36 kB / 338.4 MB, free: 7.844 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001452/0.3105, allocations: 0.6666 MB / 339.1 MB, free: 7.168 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.039e-05/0.3105, allocations: 0 / 339.1 MB, free: 7.168 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.516e-05/0.3106, allocations: 24 kB / 339.1 MB, free: 7.145 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.506e-05/0.3106, allocations: 12 kB / 339.1 MB, free: 7.133 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001696/0.3123, allocations: 0.739 MB / 339.9 MB, free: 6.395 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.004012/0.3164, allocations: 2.386 MB / 342.3 MB, free: 3.852 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001539/0.3179, allocations: 0.6374 MB / 342.9 MB, free: 3.207 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000776/0.3187, allocations: 362 kB / 343.2 MB, free: 2.852 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.398e-05/0.3188, allocations: 8.438 kB / 343.3 MB, free: 2.844 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001066/0.3199, allocations: 457.4 kB / 343.7 MB, free: 2.371 MB / 270.1 MB Notification: Performance of pre-optimization done (n=54): time 3.086e-06/0.3199, allocations: 0 / 343.7 MB, free: 2.371 MB / 270.1 MB Notification: Performance of matching and sorting (n=94): time 0.07348/0.3933, allocations: 16.73 MB / 360.4 MB, free: 1.543 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001228/0.3935, allocations: 145.5 kB / 360.6 MB, free: 1.367 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007132/0.3943, allocations: 498.8 kB / 361.1 MB, free: 0.875 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002173/0.3945, allocations: 49.7 kB / 361.1 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002878/0.3948, allocations: 364 kB / 361.5 MB, free: 468 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003171/0.3951, allocations: 311.5 kB / 361.8 MB, free: 152 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001507/0.3953, allocations: 81.67 kB / 361.8 MB, free: 64 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001948/0.3955, allocations: 382.7 kB / 362.2 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002201/0.3977, allocations: 0.7983 MB / 363 MB, free: 14.88 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002213/0.3999, allocations: 1.008 MB / 364 MB, free: 13.8 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004323/0.4042, allocations: 1.814 MB / 365.8 MB, free: 11.9 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.532e-06/0.4043, allocations: 0 / 365.8 MB, free: 11.9 MB / 302.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02486/0.4291, allocations: 5.722 MB / 371.6 MB, free: 6.148 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001014/0.4293, allocations: 59.41 kB / 371.6 MB, free: 6.078 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.886e-05/0.4293, allocations: 4 kB / 371.6 MB, free: 6.074 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03649/0.4658, allocations: 7.324 MB / 379 MB, free: 14.73 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007704/0.4666, allocations: 171.7 kB / 379.1 MB, free: 14.56 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007105/0.4738, allocations: 3.215 MB / 382.3 MB, free: 11.29 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001729/0.4755, allocations: 223.8 kB / 382.6 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001096/0.4757, allocations: 43.98 kB / 382.6 MB, free: 11.03 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 (V2.signalSource.count,$PRE.V2.signalSource.count,V2.signalSource.T_start,$PRE.V2.signalSource.T_start,V1.signalSource.count,$PRE.V1.signalSource.count,V1.signalSource.T_start,$PRE.V1.signalSource.T_start,$whenCondition1,$whenCondition2) * 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 (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 {(5,32), (5,32)} Notification: Performance of prepare postOptimizeDAE: time 0.000464/0.4761, allocations: 225.7 kB / 382.8 MB, free: 10.8 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000146/0.4763, allocations: 79.06 kB / 382.9 MB, free: 10.72 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02395/0.5002, allocations: 5.478 MB / 388.4 MB, free: 5.215 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.062e-05/0.5003, allocations: 12 kB / 388.4 MB, free: 5.203 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.485e-05/0.5004, allocations: 3.984 kB / 388.4 MB, free: 5.199 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.169e-05/0.5004, allocations: 3.984 kB / 388.4 MB, free: 5.195 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001858/0.5023, allocations: 1.086 MB / 389.5 MB, free: 4.059 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.454e-06/0.5023, allocations: 3.938 kB / 389.5 MB, free: 4.055 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005742/0.5029, allocations: 123.9 kB / 389.6 MB, free: 3.934 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03561/0.5385, allocations: 7.289 MB / 396.9 MB, free: 12.63 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002532/0.5388, allocations: 27.97 kB / 396.9 MB, free: 12.6 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00582/0.5446, allocations: 3.095 MB / 400 MB, free: 9.453 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.5447, allocations: 4 kB / 400 MB, free: 9.449 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02526/0.5699, allocations: 6.425 MB / 406.4 MB, free: 2.988 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002969/0.5703, allocations: 140.2 kB / 406.6 MB, free: 2.832 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001527/0.5704, allocations: 24.06 kB / 406.6 MB, free: 2.809 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001409/0.5719, allocations: 219.7 kB / 406.8 MB, free: 2.594 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000268/0.5721, allocations: 92.86 kB / 406.9 MB, free: 2.504 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.711e-05/0.5722, allocations: 31.98 kB / 406.9 MB, free: 2.473 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004102/0.5727, allocations: 334.9 kB / 407.3 MB, free: 2.148 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.5727, allocations: 0 / 407.3 MB, free: 2.148 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008079/0.5735, allocations: 264 kB / 407.5 MB, free: 1.891 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 (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 {(5,32), (5,36)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003134/0.5738, allocations: 123.2 kB / 407.6 MB, free: 1.762 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.007208/0.581, allocations: 2.325 MB / 410 MB, free: 15.41 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.581, allocations: 4 kB / 410 MB, free: 15.41 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003614/0.5847, allocations: 1.16 MB / 411.1 MB, free: 14.25 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001011/0.5857, allocations: 122.2 kB / 411.3 MB, free: 14.13 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003929/0.5896, allocations: 2.148 MB / 413.4 MB, free: 11.96 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005247/0.5902, allocations: 0.9427 MB / 414.3 MB, free: 10.99 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003176/0.5905, allocations: 54.08 kB / 414.4 MB, free: 10.94 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001172/0.5906, allocations: 27.44 kB / 414.4 MB, free: 10.91 MB / 350.1 MB Notification: Performance of SimCode: time 1.342e-06/0.5906, allocations: 0 / 414.4 MB, free: 10.91 MB / 350.1 MB Notification: Performance of Templates: time 0.03347/0.6241, allocations: 20.35 MB / 434.8 MB, free: 6.527 MB / 366.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1)