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.008168/0.008168, allocations: 105.5 kB / 15.74 MB, free: 6.008 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.001536/0.001536, allocations: 194.8 kB / 16.67 MB, free: 5.93 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.472/1.472, allocations: 205.1 MB / 222.6 MB, free: 4.52 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.001311/0.001311, allocations: 51.05 kB / 326.6 MB, free: 14.39 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1248/0.1261, allocations: 46.62 MB / 373.2 MB, free: 1.293 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.005824/0.132, allocations: 4.692 MB / 377.9 MB, free: 12.57 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002603/0.1346, allocations: 1.272 MB / 379.1 MB, free: 11.29 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003032/0.1349, allocations: 12 kB / 379.2 MB, free: 11.28 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003299/0.1353, allocations: 110.8 kB / 379.3 MB, free: 11.17 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004674/0.1357, allocations: 257.7 kB / 379.5 MB, free: 10.91 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006849/0.1364, allocations: 295.5 kB / 379.8 MB, free: 10.62 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009777/0.1374, allocations: 1.052 MB / 380.9 MB, free: 9.566 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003952/0.1378, allocations: 266.3 kB / 381.1 MB, free: 9.293 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004617/0.1383, allocations: 418.5 kB / 381.5 MB, free: 8.883 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004872/0.1388, allocations: 454.1 kB / 382 MB, free: 8.438 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001093/0.1389, allocations: 84 kB / 382.1 MB, free: 8.355 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000189/0.1391, allocations: 108 kB / 382.2 MB, free: 8.25 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001751/0.1393, allocations: 191.3 kB / 382.3 MB, free: 8.062 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003787/0.1397, allocations: 429.9 kB / 382.8 MB, free: 7.641 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009531/0.1406, allocations: 0.9733 MB / 383.7 MB, free: 6.664 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.1407, allocations: 0 / 383.7 MB, free: 6.664 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.574e-06/0.1407, allocations: 0 / 383.7 MB, free: 6.664 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.658e-05/0.1407, allocations: 0 / 383.7 MB, free: 6.664 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.002365/0.1431, allocations: 1.215 MB / 385 MB, free: 5.383 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.711e-05/0.1431, allocations: 8.031 kB / 385 MB, free: 5.375 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001756/0.1433, allocations: 91.84 kB / 385.1 MB, free: 5.285 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006973/0.144, allocations: 469.4 kB / 385.5 MB, free: 4.785 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.802e-05/0.1441, allocations: 45.69 kB / 385.6 MB, free: 4.738 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001229/0.1442, allocations: 68.38 kB / 385.6 MB, free: 4.672 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00131/0.1455, allocations: 0.6431 MB / 386.3 MB, free: 4.023 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.28e-05/0.1456, allocations: 0 / 386.3 MB, free: 4.023 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.45e-05/0.1456, allocations: 24 kB / 386.3 MB, free: 4 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.993e-05/0.1457, allocations: 19.98 kB / 386.3 MB, free: 3.98 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001555/0.1472, allocations: 0.6726 MB / 387 MB, free: 3.309 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.003639/0.1509, allocations: 2.312 MB / 389.3 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001346/0.1522, allocations: 0.5827 MB / 389.9 MB, free: 260 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006598/0.1529, allocations: 333.9 kB / 390.2 MB, free: 15.92 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.859e-05/0.153, allocations: 12.42 kB / 390.2 MB, free: 15.91 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008871/0.1539, allocations: 433.3 kB / 390.6 MB, free: 15.46 MB / 334.1 MB Notification: Performance of pre-optimization done (n=54): time 2.345e-06/0.1539, allocations: 0 / 390.6 MB, free: 15.46 MB / 334.1 MB Notification: Performance of matching and sorting (n=94): time 0.0682/0.2221, allocations: 15.4 MB / 406 MB, free: 15.96 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001271/0.2223, allocations: 149.5 kB / 406.2 MB, free: 15.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007538/0.223, allocations: 494.8 kB / 406.7 MB, free: 15.29 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003327/0.2234, allocations: 41.7 kB / 406.7 MB, free: 15.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003374/0.2237, allocations: 368 kB / 407.1 MB, free: 14.88 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005232/0.2243, allocations: 315.5 kB / 407.4 MB, free: 14.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005225/0.2248, allocations: 178.5 kB / 407.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002191/0.225, allocations: 378.8 kB / 407.9 MB, free: 14 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001996/0.227, allocations: 0.7202 MB / 408.6 MB, free: 13.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00215/0.2292, allocations: 0.9264 MB / 409.6 MB, free: 12.28 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003927/0.2331, allocations: 1.658 MB / 411.2 MB, free: 10.54 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.915e-06/0.2332, allocations: 0 / 411.2 MB, free: 10.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02238/0.2556, allocations: 5.342 MB / 416.6 MB, free: 5.164 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001247/0.2557, allocations: 71.52 kB / 416.6 MB, free: 5.082 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.589e-05/0.2558, allocations: 7.938 kB / 416.6 MB, free: 5.074 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03226/0.288, allocations: 6.825 MB / 423.5 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006971/0.2888, allocations: 151.7 kB / 423.6 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00616/0.295, allocations: 3.004 MB / 426.6 MB, free: 11.03 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001683/0.2967, allocations: 183.8 kB / 426.8 MB, free: 10.85 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001851/0.2969, allocations: 43.97 kB / 426.8 MB, free: 10.8 MB / 366.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.0005286/0.2974, allocations: 229.6 kB / 427.1 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002117/0.2977, allocations: 75.06 kB / 427.1 MB, free: 10.5 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02172/0.3194, allocations: 5.103 MB / 432.2 MB, free: 5.375 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.738e-05/0.3195, allocations: 12 kB / 432.3 MB, free: 5.363 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.6e-05/0.3195, allocations: 0 / 432.3 MB, free: 5.363 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.227e-05/0.3195, allocations: 3.984 kB / 432.3 MB, free: 5.359 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002345/0.3219, allocations: 1.092 MB / 433.4 MB, free: 4.215 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.705e-05/0.3219, allocations: 7.938 kB / 433.4 MB, free: 4.207 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005639/0.3225, allocations: 95.81 kB / 433.5 MB, free: 4.113 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03187/0.3544, allocations: 6.786 MB / 440.2 MB, free: 13.31 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000264/0.3547, allocations: 27.97 kB / 440.3 MB, free: 13.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005908/0.3606, allocations: 3.028 MB / 443.3 MB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.3607, allocations: 0 / 443.3 MB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02386/0.3845, allocations: 5.987 MB / 449.3 MB, free: 4.184 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003/0.3849, allocations: 144.2 kB / 449.4 MB, free: 4.023 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003237/0.3852, allocations: 16 kB / 449.4 MB, free: 4.008 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001452/0.3867, allocations: 167.8 kB / 449.6 MB, free: 3.844 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003296/0.387, allocations: 104.8 kB / 449.7 MB, free: 3.742 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001174/0.3872, allocations: 31.97 kB / 449.7 MB, free: 3.711 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004813/0.3877, allocations: 334.9 kB / 450.1 MB, free: 3.387 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3877, allocations: 4 kB / 450.1 MB, free: 3.383 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009843/0.3887, allocations: 252 kB / 450.3 MB, free: 3.137 MB / 382.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.000352/0.389, allocations: 131.2 kB / 450.4 MB, free: 3 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005898/0.3949, allocations: 2.04 MB / 452.5 MB, free: 0.9336 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.191e-06/0.395, allocations: 4.312 kB / 452.5 MB, free: 0.9297 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2816/0.6766, allocations: 1.087 MB / 453.6 MB, free: 77.11 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00112/0.6778, allocations: 130.4 kB / 453.7 MB, free: 77.11 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005027/0.6828, allocations: 1.735 MB / 455.4 MB, free: 76.59 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008903/0.6838, allocations: 0.9373 MB / 456.4 MB, free: 75.89 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003783/0.6841, allocations: 61.27 kB / 456.4 MB, free: 75.89 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001525/0.6843, allocations: 35.12 kB / 456.5 MB, free: 75.88 MB / 382.1 MB Notification: Performance of SimCode: time 2.245e-06/0.6843, allocations: 0 / 456.5 MB, free: 75.88 MB / 382.1 MB Notification: Performance of Templates: time 0.04909/0.7334, allocations: 22.76 MB / 479.2 MB, free: 62.97 MB / 382.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)