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.001079/0.001079, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00117/0.00117, allocations: 191.3 kB / 16.25 MB, free: 6.633 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.621/1.621, allocations: 205.1 MB / 222.1 MB, free: 4.684 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.001249/0.001249, allocations: 55.92 kB / 278.2 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.339/0.3402, allocations: 46.63 MB / 324.8 MB, free: 1.934 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.00588/0.3462, allocations: 4.719 MB / 329.6 MB, free: 14.18 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002775/0.349, allocations: 1.266 MB / 330.8 MB, free: 13.12 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002921/0.3493, allocations: 14.16 kB / 330.8 MB, free: 13.11 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002956/0.3496, allocations: 75.56 kB / 330.9 MB, free: 13.05 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00045/0.3501, allocations: 209.1 kB / 331.1 MB, free: 12.87 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007395/0.3508, allocations: 263.5 kB / 331.4 MB, free: 12.64 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.00133/0.3522, allocations: 1.046 MB / 332.4 MB, free: 12.02 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004709/0.3527, allocations: 254.7 kB / 332.7 MB, free: 11.88 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005756/0.3532, allocations: 412.2 kB / 333.1 MB, free: 11.63 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005863/0.3538, allocations: 456.5 kB / 333.5 MB, free: 11.31 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001512/0.354, allocations: 86.16 kB / 333.6 MB, free: 11.3 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002249/0.3542, allocations: 108 kB / 333.7 MB, free: 11.19 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001585/0.3544, allocations: 183.4 kB / 333.9 MB, free: 11.01 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004024/0.3548, allocations: 426 kB / 334.3 MB, free: 10.59 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009245/0.3557, allocations: 0.9707 MB / 335.3 MB, free: 9.621 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.3557, allocations: 3.938 kB / 335.3 MB, free: 9.617 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3558, allocations: 0 / 335.3 MB, free: 9.617 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.268e-05/0.3558, allocations: 0 / 335.3 MB, free: 9.617 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.002374/0.3582, allocations: 1.211 MB / 336.5 MB, free: 8.336 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.664e-05/0.3582, allocations: 8.031 kB / 336.5 MB, free: 8.328 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001566/0.3584, allocations: 91.91 kB / 336.6 MB, free: 8.238 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005943/0.359, allocations: 473.4 kB / 337.1 MB, free: 7.734 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.003e-05/0.359, allocations: 41.69 kB / 337.1 MB, free: 7.695 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001034/0.3591, allocations: 60.38 kB / 337.2 MB, free: 7.637 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001265/0.3604, allocations: 0.6392 MB / 337.8 MB, free: 6.988 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.236e-05/0.3604, allocations: 7.984 kB / 337.8 MB, free: 6.98 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.315e-05/0.3605, allocations: 24 kB / 337.8 MB, free: 6.957 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.63e-05/0.3605, allocations: 16 kB / 337.8 MB, free: 6.941 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001502/0.362, allocations: 0.6765 MB / 338.5 MB, free: 6.266 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.003597/0.3656, allocations: 2.323 MB / 340.8 MB, free: 3.789 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001394/0.3671, allocations: 0.5982 MB / 341.4 MB, free: 3.184 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000669/0.3677, allocations: 326 kB / 341.8 MB, free: 2.863 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.443e-05/0.3678, allocations: 12.44 kB / 341.8 MB, free: 2.852 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001005/0.3688, allocations: 421.4 kB / 342.2 MB, free: 2.414 MB / 270.1 MB Notification: Performance of pre-optimization done (n=54): time 3.056e-06/0.3688, allocations: 4 kB / 342.2 MB, free: 2.41 MB / 270.1 MB Notification: Performance of matching and sorting (n=94): time 0.06565/0.4345, allocations: 15.4 MB / 357.6 MB, free: 2.914 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001175/0.4346, allocations: 149.5 kB / 357.7 MB, free: 2.734 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006804/0.4353, allocations: 494.8 kB / 358.2 MB, free: 2.242 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002069/0.4356, allocations: 45.7 kB / 358.3 MB, free: 2.191 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002773/0.4358, allocations: 352.1 kB / 358.6 MB, free: 1.84 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002853/0.4361, allocations: 319.4 kB / 358.9 MB, free: 1.523 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003487/0.4365, allocations: 182.5 kB / 359.1 MB, free: 1.34 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001756/0.4367, allocations: 378.8 kB / 359.5 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001846/0.4385, allocations: 0.7202 MB / 360.2 MB, free: 248 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001964/0.4405, allocations: 0.9265 MB / 361.1 MB, free: 15.23 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003639/0.4441, allocations: 1.662 MB / 362.8 MB, free: 13.49 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.069e-06/0.4442, allocations: 4 kB / 362.8 MB, free: 13.49 MB / 302.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02229/0.4665, allocations: 5.343 MB / 368.1 MB, free: 8.109 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001073/0.4666, allocations: 67.41 kB / 368.2 MB, free: 8.031 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.039e-05/0.4667, allocations: 4 kB / 368.2 MB, free: 8.027 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03639/0.5031, allocations: 6.836 MB / 375 MB, free: 1.176 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008675/0.504, allocations: 139.7 kB / 375.2 MB, free: 1.039 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007964/0.512, allocations: 3.012 MB / 378.2 MB, free: 13.97 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002033/0.5141, allocations: 180 kB / 378.3 MB, free: 13.79 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002593/0.5144, allocations: 51.97 kB / 378.4 MB, free: 13.74 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.0007565/0.5152, allocations: 217.7 kB / 378.6 MB, free: 13.52 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003163/0.5155, allocations: 79.05 kB / 378.7 MB, free: 13.44 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02349/0.539, allocations: 5.102 MB / 383.8 MB, free: 8.32 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.533e-05/0.5391, allocations: 8 kB / 383.8 MB, free: 8.312 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.321e-05/0.5391, allocations: 0 / 383.8 MB, free: 8.312 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.701e-05/0.5392, allocations: 3.984 kB / 383.8 MB, free: 8.309 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002274/0.5415, allocations: 1.09 MB / 384.9 MB, free: 7.164 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.191e-05/0.5415, allocations: 3.938 kB / 384.9 MB, free: 7.16 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005767/0.5421, allocations: 91.83 kB / 385 MB, free: 7.07 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03301/0.5751, allocations: 6.785 MB / 391.8 MB, free: 276 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002892/0.5755, allocations: 19.98 kB / 391.8 MB, free: 256 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006205/0.5817, allocations: 3.052 MB / 394.8 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.479e-06/0.5817, allocations: 0 / 394.8 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02396/0.6057, allocations: 5.983 MB / 400.8 MB, free: 7.129 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003031/0.606, allocations: 136.3 kB / 401 MB, free: 6.977 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003949/0.6064, allocations: 16 kB / 401 MB, free: 6.961 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001606/0.6081, allocations: 176 kB / 401.1 MB, free: 6.789 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003777/0.6085, allocations: 104.8 kB / 401.3 MB, free: 6.688 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001377/0.6086, allocations: 35.98 kB / 401.3 MB, free: 6.652 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004939/0.6091, allocations: 338.9 kB / 401.6 MB, free: 6.324 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6091, allocations: 0 / 401.6 MB, free: 6.324 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001098/0.6102, allocations: 248 kB / 401.9 MB, free: 6.082 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.0003687/0.6106, allocations: 135.2 kB / 402 MB, free: 5.938 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.006364/0.617, allocations: 2.048 MB / 404 MB, free: 3.867 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.652e-06/0.617, allocations: 8.062 kB / 404 MB, free: 3.859 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003492/0.6205, allocations: 1.081 MB / 405.1 MB, free: 2.773 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009957/0.6215, allocations: 126.2 kB / 405.3 MB, free: 2.652 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00421/0.6258, allocations: 2.099 MB / 407.4 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000577/0.6264, allocations: 0.935 MB / 408.3 MB, free: 15.57 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003629/0.6267, allocations: 54.08 kB / 408.3 MB, free: 15.52 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001234/0.6269, allocations: 35.44 kB / 408.4 MB, free: 15.48 MB / 350.1 MB Notification: Performance of SimCode: time 2.044e-06/0.6269, allocations: 0 / 408.4 MB, free: 15.48 MB / 350.1 MB Notification: Performance of Templates: time 0.0394/0.6663, allocations: 22.17 MB / 430.5 MB, free: 9.277 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)