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.007429/0.007429, allocations: 95.61 kB / 15.73 MB, free: 6.047 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.002036/0.002036, allocations: 197.7 kB / 16.67 MB, free: 5.973 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.505/1.505, 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.001315/0.001315, allocations: 58.03 kB / 326.6 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1351/0.1364, allocations: 46.61 MB / 373.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.009526/0.146, allocations: 4.7 MB / 377.9 MB, free: 12.59 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004718/0.1508, allocations: 1.28 MB / 379.2 MB, free: 11.3 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001085/0.1519, allocations: 8 kB / 379.2 MB, free: 11.29 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000749/0.1527, allocations: 110.8 kB / 379.3 MB, free: 11.18 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001583/0.1544, allocations: 245.8 kB / 379.5 MB, free: 10.94 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001414/0.1558, allocations: 299.5 kB / 379.8 MB, free: 10.64 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002356/0.1582, allocations: 1.06 MB / 380.9 MB, free: 9.578 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007646/0.159, allocations: 254.4 kB / 381.1 MB, free: 9.316 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001228/0.1602, allocations: 414.5 kB / 381.5 MB, free: 8.91 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001469/0.1617, allocations: 446.2 kB / 382 MB, free: 8.473 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004473/0.1622, allocations: 84 kB / 382 MB, free: 8.391 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006829/0.1629, allocations: 108 kB / 382.1 MB, free: 8.285 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004575/0.1634, allocations: 195.3 kB / 382.3 MB, free: 8.094 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001368/0.1647, allocations: 433.9 kB / 382.8 MB, free: 7.668 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00201/0.1668, allocations: 0.9804 MB / 383.7 MB, free: 6.684 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.175e-06/0.1668, allocations: 0 / 383.7 MB, free: 6.684 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.276e-06/0.1668, allocations: 0 / 383.7 MB, free: 6.684 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.524e-05/0.1669, allocations: 0 / 383.7 MB, free: 6.684 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.004758/0.1716, allocations: 1.234 MB / 385 MB, free: 5.383 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.705e-05/0.1717, allocations: 8.031 kB / 385 MB, free: 5.375 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004128/0.1722, allocations: 96.38 kB / 385.1 MB, free: 5.281 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001275/0.1734, allocations: 477.7 kB / 385.5 MB, free: 4.773 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.838e-05/0.1735, allocations: 45.69 kB / 385.6 MB, free: 4.727 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001512/0.1737, allocations: 60.38 kB / 385.6 MB, free: 4.668 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002093/0.1758, allocations: 0.6431 MB / 386.3 MB, free: 4.02 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.702e-05/0.1758, allocations: 0 / 386.3 MB, free: 4.02 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.917e-05/0.1759, allocations: 24 kB / 386.3 MB, free: 3.996 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.998e-05/0.176, allocations: 19.94 kB / 386.3 MB, free: 3.977 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002453/0.1784, allocations: 0.6765 MB / 387 MB, free: 3.301 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.005254/0.1837, allocations: 2.309 MB / 389.3 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002081/0.1858, allocations: 0.5866 MB / 389.9 MB, free: 252 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001112/0.1869, allocations: 333.9 kB / 390.2 MB, free: 15.91 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.444e-05/0.187, allocations: 12.42 kB / 390.2 MB, free: 15.9 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001336/0.1884, allocations: 429.4 kB / 390.7 MB, free: 15.46 MB / 334.1 MB Notification: Performance of pre-optimization done (n=54): time 3.115e-06/0.1884, allocations: 0 / 390.7 MB, free: 15.46 MB / 334.1 MB Notification: Performance of matching and sorting (n=94): time 0.07941/0.2678, allocations: 15.42 MB / 406.1 MB, free: 15.94 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001131/0.2679, allocations: 141.5 kB / 406.2 MB, free: 15.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007161/0.2687, allocations: 494.9 kB / 406.7 MB, free: 15.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000205/0.2689, allocations: 45.7 kB / 406.7 MB, free: 15.22 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002894/0.2692, allocations: 376.7 kB / 407.1 MB, free: 14.85 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003358/0.2695, allocations: 333.1 kB / 407.4 MB, free: 14.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004045/0.2699, allocations: 182.5 kB / 407.6 MB, free: 14.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001902/0.2701, allocations: 382.8 kB / 408 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002103/0.2723, allocations: 0.7124 MB / 408.7 MB, free: 13.24 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002162/0.2744, allocations: 0.9265 MB / 409.6 MB, free: 12.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004044/0.2785, allocations: 1.658 MB / 411.3 MB, free: 10.49 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.667e-06/0.2785, allocations: 4 kB / 411.3 MB, free: 10.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02241/0.3009, allocations: 5.347 MB / 416.6 MB, free: 5.113 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.686e-05/0.3011, allocations: 67.52 kB / 416.7 MB, free: 5.035 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.766e-05/0.3011, allocations: 11.94 kB / 416.7 MB, free: 5.023 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03256/0.3337, allocations: 6.829 MB / 423.5 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007118/0.3344, allocations: 135.8 kB / 423.7 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006086/0.3405, allocations: 3.028 MB / 426.7 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001602/0.3422, allocations: 175.9 kB / 426.9 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001569/0.3423, allocations: 43.97 kB / 426.9 MB, free: 10.75 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.0004636/0.3428, allocations: 221.7 kB / 427.1 MB, free: 10.52 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001858/0.343, allocations: 75.53 kB / 427.2 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02177/0.3648, allocations: 5.099 MB / 432.3 MB, free: 5.332 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.231e-05/0.3649, allocations: 12 kB / 432.3 MB, free: 5.32 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.469e-05/0.3649, allocations: 48 / 432.3 MB, free: 5.32 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.253e-05/0.3649, allocations: 7.969 kB / 432.3 MB, free: 5.312 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001852/0.3668, allocations: 1.1 MB / 433.4 MB, free: 4.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.126e-05/0.3668, allocations: 3.938 kB / 433.4 MB, free: 4.156 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005233/0.3674, allocations: 103.8 kB / 433.5 MB, free: 4.055 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0323/0.3997, allocations: 6.782 MB / 440.3 MB, free: 13.26 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003089/0.4, allocations: 27.97 kB / 440.3 MB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006082/0.4061, allocations: 3.033 MB / 443.4 MB, free: 10.14 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.087e-06/0.4062, allocations: 128 / 443.4 MB, free: 10.14 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02374/0.4299, allocations: 5.98 MB / 449.4 MB, free: 4.133 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002912/0.4303, allocations: 152.6 kB / 449.5 MB, free: 3.965 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002494/0.4305, allocations: 20 kB / 449.5 MB, free: 3.945 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001399/0.4319, allocations: 171.8 kB / 449.7 MB, free: 3.777 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002894/0.4322, allocations: 96.88 kB / 449.8 MB, free: 3.684 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001016/0.4323, allocations: 31.97 kB / 449.8 MB, free: 3.652 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004416/0.4328, allocations: 334.9 kB / 450.1 MB, free: 3.328 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4328, allocations: 7.938 kB / 450.2 MB, free: 3.32 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000832/0.4336, allocations: 252 kB / 450.4 MB, free: 3.074 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.0003037/0.4339, allocations: 139.1 kB / 450.5 MB, free: 2.93 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006277/0.4402, allocations: 2.036 MB / 452.6 MB, free: 0.8672 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.8e-06/0.4403, allocations: 256 / 452.6 MB, free: 0.8672 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.261/0.7013, allocations: 1.088 MB / 453.7 MB, free: 77.25 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009768/0.7023, allocations: 125.3 kB / 453.8 MB, free: 77.25 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004514/0.7068, allocations: 1.758 MB / 455.5 MB, free: 76.71 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005622/0.7074, allocations: 0.9372 MB / 456.5 MB, free: 76.01 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003477/0.7078, allocations: 53.58 kB / 456.5 MB, free: 76 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001433/0.7079, allocations: 35.64 kB / 456.6 MB, free: 75.99 MB / 382.1 MB Notification: Performance of SimCode: time 8.62e-07/0.7079, allocations: 0 / 456.6 MB, free: 75.99 MB / 382.1 MB Notification: Performance of Templates: time 0.03489/0.7428, allocations: 22.76 MB / 479.3 MB, free: 63.11 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.makefile (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)