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.001578/0.001578, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002068/0.002068, allocations: 195.2 kB / 16.53 MB, free: 6.664 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.5/1.5, allocations: 205.1 MB / 222.4 MB, free: 4.602 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.001145/0.001145, allocations: 56.2 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2236/0.2248, allocations: 46.63 MB / 325.3 MB, free: 1.988 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.005271/0.2301, allocations: 4.703 MB / 330 MB, free: 14.23 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002856/0.233, allocations: 1.267 MB / 331.3 MB, free: 13.17 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005065/0.2335, allocations: 9.75 kB / 331.3 MB, free: 13.17 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003269/0.2339, allocations: 116 kB / 331.4 MB, free: 13.06 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005075/0.2344, allocations: 247.1 kB / 331.6 MB, free: 12.84 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007788/0.2352, allocations: 300 kB / 331.9 MB, free: 12.59 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.00107/0.2363, allocations: 1.049 MB / 333 MB, free: 11.96 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004245/0.2367, allocations: 258.9 kB / 333.2 MB, free: 11.81 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004947/0.2372, allocations: 401.1 kB / 333.6 MB, free: 11.58 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004813/0.2377, allocations: 459.4 kB / 334.1 MB, free: 11.23 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001262/0.2378, allocations: 84 kB / 334.2 MB, free: 11.15 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002043/0.238, allocations: 108 kB / 334.3 MB, free: 11.05 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001531/0.2382, allocations: 187.4 kB / 334.4 MB, free: 10.86 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003637/0.2386, allocations: 437.9 kB / 334.9 MB, free: 10.43 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009249/0.2395, allocations: 0.959 MB / 335.8 MB, free: 9.473 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.2395, allocations: 0 / 335.8 MB, free: 9.473 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.2395, allocations: 0 / 335.8 MB, free: 9.473 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.612e-05/0.2395, allocations: 0 / 335.8 MB, free: 9.473 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.002527/0.2421, allocations: 1.207 MB / 337 MB, free: 8.195 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.432e-05/0.2421, allocations: 8.031 kB / 337 MB, free: 8.188 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002521/0.2424, allocations: 87.91 kB / 337.1 MB, free: 8.102 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006857/0.2431, allocations: 473.3 kB / 337.6 MB, free: 7.598 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.122e-05/0.2431, allocations: 41.69 kB / 337.6 MB, free: 7.559 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001192/0.2433, allocations: 64.36 kB / 337.7 MB, free: 7.496 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001409/0.2447, allocations: 0.6353 MB / 338.3 MB, free: 6.855 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.82e-05/0.2447, allocations: 7.938 kB / 338.3 MB, free: 6.848 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.295e-05/0.2448, allocations: 24 kB / 338.4 MB, free: 6.824 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.698e-05/0.2448, allocations: 16 kB / 338.4 MB, free: 6.809 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001741/0.2466, allocations: 0.6765 MB / 339.1 MB, free: 6.129 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.00416/0.2508, allocations: 2.331 MB / 341.4 MB, free: 3.645 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001554/0.2523, allocations: 0.5904 MB / 342 MB, free: 3.047 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000965/0.2533, allocations: 330 kB / 342.3 MB, free: 2.723 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.992e-05/0.2534, allocations: 8.422 kB / 342.3 MB, free: 2.715 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001342/0.2547, allocations: 429.4 kB / 342.7 MB, free: 2.27 MB / 270.1 MB Notification: Performance of pre-optimization done (n=54): time 2.574e-06/0.2547, allocations: 0 / 342.7 MB, free: 2.27 MB / 270.1 MB Notification: Performance of matching and sorting (n=94): time 0.06762/0.3224, allocations: 15.41 MB / 358.1 MB, free: 2.77 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001141/0.3225, allocations: 145.5 kB / 358.3 MB, free: 2.594 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006225/0.3232, allocations: 498.8 kB / 358.8 MB, free: 2.098 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001756/0.3233, allocations: 41.7 kB / 358.8 MB, free: 2.051 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002554/0.3236, allocations: 364 kB / 359.2 MB, free: 1.688 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002739/0.3239, allocations: 319.4 kB / 359.5 MB, free: 1.371 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003528/0.3242, allocations: 178.5 kB / 359.6 MB, free: 1.191 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001688/0.3244, allocations: 378.8 kB / 360 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002009/0.3264, allocations: 0.7202 MB / 360.7 MB, free: 96 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002147/0.3286, allocations: 0.9265 MB / 361.7 MB, free: 15.08 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003978/0.3326, allocations: 1.658 MB / 363.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.3326, allocations: 0 / 363.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02207/0.3547, allocations: 5.339 MB / 368.7 MB, free: 7.973 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.047e-05/0.3548, allocations: 71.39 kB / 368.7 MB, free: 7.891 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.575e-05/0.3548, allocations: 8.125 kB / 368.7 MB, free: 7.883 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03215/0.387, allocations: 6.832 MB / 375.6 MB, free: 1.035 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006943/0.3877, allocations: 139.8 kB / 375.7 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00584/0.3936, allocations: 3.012 MB / 378.7 MB, free: 13.83 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001646/0.3953, allocations: 183.8 kB / 378.9 MB, free: 13.65 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.882e-05/0.3954, allocations: 43.97 kB / 378.9 MB, free: 13.61 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.00042/0.3958, allocations: 221.6 kB / 379.2 MB, free: 13.38 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001518/0.396, allocations: 71.16 kB / 379.2 MB, free: 13.31 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02134/0.4173, allocations: 5.106 MB / 384.3 MB, free: 8.184 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.07e-05/0.4174, allocations: 12 kB / 384.3 MB, free: 8.172 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/0.4174, allocations: 0 / 384.3 MB, free: 8.172 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-05/0.4174, allocations: 7.984 kB / 384.4 MB, free: 8.164 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001406/0.4188, allocations: 1.086 MB / 385.4 MB, free: 7.023 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.763e-06/0.4188, allocations: 3.938 kB / 385.4 MB, free: 7.02 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005258/0.4194, allocations: 95.81 kB / 385.5 MB, free: 6.926 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03237/0.4517, allocations: 6.785 MB / 392.3 MB, free: 128 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003004/0.4521, allocations: 27.97 kB / 392.3 MB, free: 100 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005784/0.4579, allocations: 3.044 MB / 395.4 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.4579, allocations: 0 / 395.4 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02371/0.4816, allocations: 5.971 MB / 401.4 MB, free: 6.996 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002421/0.4819, allocations: 144.2 kB / 401.5 MB, free: 6.836 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001603/0.4821, allocations: 16.12 kB / 401.5 MB, free: 6.82 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001331/0.4834, allocations: 179.8 kB / 401.7 MB, free: 6.645 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002444/0.4837, allocations: 96.88 kB / 401.8 MB, free: 6.551 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.65e-05/0.4838, allocations: 35.97 kB / 401.8 MB, free: 6.516 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003501/0.4841, allocations: 330.9 kB / 402.1 MB, free: 6.195 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4842, allocations: 3.938 kB / 402.2 MB, free: 6.191 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006846/0.4848, allocations: 256 kB / 402.4 MB, free: 5.941 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.0002528/0.4851, allocations: 139.2 kB / 402.5 MB, free: 5.793 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.005869/0.491, allocations: 2.055 MB / 404.6 MB, free: 3.711 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.491, allocations: 0 / 404.6 MB, free: 3.711 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003456/0.4945, allocations: 1.09 MB / 405.7 MB, free: 2.621 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006446/0.4951, allocations: 122.2 kB / 405.8 MB, free: 2.504 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003468/0.4986, allocations: 1.755 MB / 407.6 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004978/0.4991, allocations: 0.935 MB / 408.5 MB, free: 15.76 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000263/0.4994, allocations: 54.08 kB / 408.5 MB, free: 15.71 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001104/0.4995, allocations: 35.44 kB / 408.6 MB, free: 15.68 MB / 350.1 MB Notification: Performance of SimCode: time 5.11e-07/0.4995, allocations: 0 / 408.6 MB, free: 15.68 MB / 350.1 MB Notification: Performance of Templates: time 0.03205/0.5316, allocations: 22.54 MB / 431.1 MB, free: 9.102 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)