Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001349/0.001349, allocations: 114.6 kB / 17.07 MB, free: 5.988 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.001304/0.001304, allocations: 194.8 kB / 18 MB, free: 5.07 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.738/1.738, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.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.001178/0.001178, allocations: 51.94 kB / 327.9 MB, free: 3.277 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.12/0.1212, allocations: 46.62 MB / 374.5 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.2537/0.375, allocations: 4.681 MB / 379.2 MB, free: 9.742 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003093/0.3782, allocations: 1.272 MB / 380.5 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004475/0.3786, allocations: 9.906 kB / 380.5 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003245/0.379, allocations: 113.7 kB / 380.6 MB, free: 9.664 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000544/0.3796, allocations: 247.8 kB / 380.8 MB, free: 9.539 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008789/0.3805, allocations: 306.5 kB / 381.1 MB, free: 9.523 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0012/0.3817, allocations: 1.052 MB / 382.2 MB, free: 9.309 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004524/0.3821, allocations: 259.6 kB / 382.4 MB, free: 9.254 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006844/0.3828, allocations: 406.3 kB / 382.8 MB, free: 9.105 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006275/0.3835, allocations: 456 kB / 383.3 MB, free: 8.895 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001599/0.3836, allocations: 85.91 kB / 383.4 MB, free: 8.895 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002915/0.3839, allocations: 111.1 kB / 383.5 MB, free: 8.887 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000196/0.3842, allocations: 185.5 kB / 383.6 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004442/0.3846, allocations: 428.6 kB / 384.1 MB, free: 8.512 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001323/0.3859, allocations: 0.98 MB / 385 MB, free: 8.145 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.132e-06/0.386, allocations: 0 / 385 MB, free: 8.145 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.386, allocations: 0 / 385 MB, free: 8.145 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.398e-05/0.386, allocations: 0 / 385 MB, free: 8.145 MB / 318.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.002633/0.3886, allocations: 1.218 MB / 386.3 MB, free: 7.316 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.639e-05/0.3887, allocations: 10.88 kB / 386.3 MB, free: 7.316 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002082/0.3889, allocations: 88.31 kB / 386.4 MB, free: 7.273 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007425/0.3897, allocations: 471.7 kB / 386.8 MB, free: 6.914 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.684e-05/0.3897, allocations: 51.14 kB / 386.9 MB, free: 6.891 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001189/0.3898, allocations: 61.73 kB / 386.9 MB, free: 6.871 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001748/0.3916, allocations: 0.6428 MB / 387.6 MB, free: 6.625 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.01e-05/0.3916, allocations: 0 / 387.6 MB, free: 6.625 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.635e-05/0.3917, allocations: 26.31 kB / 387.6 MB, free: 6.605 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.596e-05/0.3918, allocations: 14.97 kB / 387.6 MB, free: 6.605 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002083/0.3939, allocations: 0.6741 MB / 388.3 MB, free: 6.402 MB / 318.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.003847/0.3977, allocations: 2.305 MB / 390.6 MB, free: 4.977 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001462/0.3992, allocations: 0.5881 MB / 391.2 MB, free: 4.746 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007629/0.4, allocations: 331.4 kB / 391.5 MB, free: 4.629 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.253e-05/0.4, allocations: 10.77 kB / 391.5 MB, free: 4.625 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009819/0.401, allocations: 430.6 kB / 391.9 MB, free: 4.434 MB / 318.1 MB Notification: Performance of pre-optimization done (n=54): time 2.094e-06/0.401, allocations: 0 / 391.9 MB, free: 4.434 MB / 318.1 MB Notification: Performance of matching and sorting (n=94): time 0.06768/0.4687, allocations: 15.41 MB / 407.3 MB, free: 13.66 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001217/0.4689, allocations: 141.5 kB / 407.5 MB, free: 13.49 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007767/0.4697, allocations: 498.8 kB / 408 MB, free: 12.99 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00029/0.47, allocations: 41.7 kB / 408 MB, free: 12.95 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003001/0.4703, allocations: 367 kB / 408.4 MB, free: 12.58 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003004/0.4706, allocations: 313.2 kB / 408.7 MB, free: 12.28 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003687/0.471, allocations: 182.5 kB / 408.8 MB, free: 12.09 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000184/0.4712, allocations: 386.7 kB / 409.2 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002079/0.4733, allocations: 0.7202 MB / 409.9 MB, free: 10.98 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002225/0.4755, allocations: 0.9265 MB / 410.9 MB, free: 9.977 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004189/0.4797, allocations: 1.658 MB / 412.5 MB, free: 8.234 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.221e-06/0.4797, allocations: 0 / 412.5 MB, free: 8.234 MB / 334.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02302/0.5028, allocations: 5.344 MB / 417.9 MB, free: 2.867 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001107/0.5029, allocations: 63.41 kB / 417.9 MB, free: 2.793 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.14e-05/0.503, allocations: 12.12 kB / 417.9 MB, free: 2.781 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03445/0.5374, allocations: 6.826 MB / 424.8 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008054/0.5383, allocations: 139.7 kB / 424.9 MB, free: 11.81 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006442/0.5447, allocations: 3.012 MB / 427.9 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002037/0.5468, allocations: 171.9 kB / 428.1 MB, free: 8.578 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002436/0.5471, allocations: 51.97 kB / 428.1 MB, free: 8.527 MB / 350.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.0006632/0.5478, allocations: 221.6 kB / 428.4 MB, free: 8.301 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003065/0.5481, allocations: 85.81 kB / 428.4 MB, free: 8.219 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02209/0.5702, allocations: 5.1 MB / 433.5 MB, free: 3.113 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.155e-05/0.5703, allocations: 8 kB / 433.5 MB, free: 3.105 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.332e-05/0.5703, allocations: 4 kB / 433.6 MB, free: 3.102 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.899e-05/0.5703, allocations: 3.984 kB / 433.6 MB, free: 3.098 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002337/0.5727, allocations: 1.097 MB / 434.7 MB, free: 1.965 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.3e-05/0.5727, allocations: 3.938 kB / 434.7 MB, free: 1.961 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006549/0.5734, allocations: 91.83 kB / 434.7 MB, free: 1.871 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03288/0.6063, allocations: 6.786 MB / 441.5 MB, free: 11.08 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003468/0.6067, allocations: 30.09 kB / 441.6 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006076/0.6128, allocations: 3.028 MB / 444.6 MB, free: 7.969 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.347e-06/0.6128, allocations: 4 kB / 444.6 MB, free: 7.965 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02461/0.6374, allocations: 5.985 MB / 450.6 MB, free: 1.957 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000345/0.6378, allocations: 140.2 kB / 450.7 MB, free: 1.801 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000439/0.6383, allocations: 20 kB / 450.7 MB, free: 1.781 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001617/0.6399, allocations: 171.8 kB / 450.9 MB, free: 1.613 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003261/0.6402, allocations: 100.8 kB / 451 MB, free: 1.516 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001283/0.6404, allocations: 35.97 kB / 451 MB, free: 1.48 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005023/0.6409, allocations: 330.9 kB / 451.4 MB, free: 1.16 MB / 366.1 MB Notification: Performance of sort global known variables: time 3e-07/0.6409, allocations: 4 kB / 451.4 MB, free: 1.156 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001103/0.642, allocations: 252 kB / 451.6 MB, free: 0.9102 MB / 366.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.0003458/0.6424, allocations: 131.2 kB / 451.7 MB, free: 0.7734 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00649/0.6489, allocations: 2.04 MB / 453.8 MB, free: 14.71 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.6489, allocations: 0 / 453.8 MB, free: 14.71 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003718/0.6526, allocations: 1.097 MB / 454.9 MB, free: 13.62 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001166/0.6538, allocations: 133.8 kB / 455 MB, free: 13.49 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004091/0.6579, allocations: 1.742 MB / 456.7 MB, free: 11.72 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004793/0.6584, allocations: 0.9389 MB / 457.7 MB, free: 10.76 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002822/0.6587, allocations: 50.09 kB / 457.7 MB, free: 10.71 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001306/0.6589, allocations: 39.42 kB / 457.8 MB, free: 10.67 MB / 382.1 MB Notification: Performance of SimCode: time 7.62e-07/0.6589, allocations: 0 / 457.8 MB, free: 10.67 MB / 382.1 MB Notification: Performance of Templates: time 0.03736/0.6962, allocations: 22.74 MB / 480.5 MB, free: 3.906 MB / 398.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1)