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.001197/0.001197, allocations: 99.62 kB / 15.05 MB, free: 1.105 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.001342/0.001342, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.438/1.438, allocations: 205.4 MB / 222.1 MB, free: 5.652 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.0005372/0.0005375, allocations: 18.81 kB / 278.9 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2689/0.2694, allocations: 47.58 MB / 326.4 MB, free: 1.418 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.00379/0.2733, allocations: 3.77 MB / 330.2 MB, free: 14.47 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002014/0.2753, allocations: 1.272 MB / 331.5 MB, free: 13.43 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002327/0.2755, allocations: 21.19 kB / 331.5 MB, free: 13.41 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001312/0.2757, allocations: 80.45 kB / 331.6 MB, free: 13.34 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004443/0.2761, allocations: 266.9 kB / 331.8 MB, free: 13.11 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004596/0.2766, allocations: 213.6 kB / 332.1 MB, free: 12.94 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006793/0.2773, allocations: 0.6623 MB / 332.7 MB, free: 12.51 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003148/0.2776, allocations: 198.6 kB / 332.9 MB, free: 12.38 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003678/0.278, allocations: 350 kB / 333.3 MB, free: 12.19 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004807/0.2785, allocations: 407 kB / 333.6 MB, free: 11.92 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 9.743e-05/0.2786, allocations: 49.14 kB / 333.7 MB, free: 11.91 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001631/0.2788, allocations: 63.11 kB / 333.8 MB, free: 11.91 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001341/0.2789, allocations: 137 kB / 333.9 MB, free: 11.79 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001556/0.2791, allocations: 170.1 kB / 334.1 MB, free: 11.69 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006503/0.2797, allocations: 0.7165 MB / 334.8 MB, free: 11.14 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.2797, allocations: 4 kB / 334.8 MB, free: 11.14 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.2797, allocations: 0 / 334.8 MB, free: 11.14 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.062e-05/0.2798, allocations: 0 / 334.8 MB, free: 11.14 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.002075/0.2818, allocations: 1.118 MB / 335.9 MB, free: 9.957 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.2819, allocations: 8.031 kB / 335.9 MB, free: 9.949 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001376/0.282, allocations: 90.97 kB / 336 MB, free: 9.859 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005469/0.2826, allocations: 448.5 kB / 336.4 MB, free: 9.383 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.372e-05/0.2826, allocations: 49.27 kB / 336.5 MB, free: 9.336 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001004/0.2827, allocations: 63.91 kB / 336.5 MB, free: 9.273 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001259/0.284, allocations: 0.6545 MB / 337.2 MB, free: 8.609 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.79e-05/0.284, allocations: 0 / 337.2 MB, free: 8.609 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.762e-05/0.2841, allocations: 20 kB / 337.2 MB, free: 8.59 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.438e-05/0.2841, allocations: 20 kB / 337.2 MB, free: 8.57 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001624/0.2858, allocations: 0.7312 MB / 338 MB, free: 7.84 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.003705/0.2895, allocations: 2.374 MB / 340.3 MB, free: 5.309 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001459/0.2909, allocations: 0.6296 MB / 341 MB, free: 4.672 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.98e-05/0.291, allocations: 16.41 kB / 341 MB, free: 4.656 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009927/0.292, allocations: 453.4 kB / 341.4 MB, free: 4.188 MB / 270.1 MB Notification: Performance of pre-optimization done (n=54): time 2.845e-06/0.292, allocations: 0 / 341.4 MB, free: 4.188 MB / 270.1 MB Notification: Performance of matching and sorting (n=94): time 0.0677/0.3597, allocations: 16.7 MB / 358.1 MB, free: 3.391 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.589e-05/0.3599, allocations: 153.5 kB / 358.3 MB, free: 3.211 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005889/0.3605, allocations: 486.9 kB / 358.7 MB, free: 2.73 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001777/0.3606, allocations: 49.69 kB / 358.8 MB, free: 2.676 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002516/0.3609, allocations: 363.9 kB / 359.2 MB, free: 2.312 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002595/0.3612, allocations: 311.5 kB / 359.5 MB, free: 2.004 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.549e-05/0.3613, allocations: 23.94 kB / 359.5 MB, free: 1.98 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.3614, allocations: 382.8 kB / 359.9 MB, free: 1.598 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002039/0.3634, allocations: 0.7905 MB / 360.6 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002133/0.3656, allocations: 1.001 MB / 361.6 MB, free: 15.73 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002044/0.3677, allocations: 0.8768 MB / 362.5 MB, free: 14.84 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.3677, allocations: 0 / 362.5 MB, free: 14.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02259/0.3903, allocations: 5.617 MB / 368.1 MB, free: 9.195 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.536e-05/0.3904, allocations: 71.33 kB / 368.2 MB, free: 9.113 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.8e-05/0.3904, allocations: 4 kB / 368.2 MB, free: 9.109 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0332/0.4236, allocations: 7.321 MB / 375.5 MB, free: 1.773 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007268/0.4244, allocations: 171.8 kB / 375.7 MB, free: 1.605 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006297/0.4307, allocations: 3.204 MB / 378.9 MB, free: 14.34 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001579/0.4323, allocations: 223.8 kB / 379.1 MB, free: 14.12 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.817e-05/0.4324, allocations: 43.97 kB / 379.2 MB, free: 14.08 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 ($whenCondition2,$whenCondition1,$PRE.V1.signalSource.T_start,V1.signalSource.T_start,$PRE.V1.signalSource.count,V1.signalSource.count,$PRE.V2.signalSource.T_start,V2.signalSource.T_start,$PRE.V2.signalSource.count,V2.signalSource.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 32,5 32} Notification: Performance of prepare postOptimizeDAE: time 0.0004089/0.4328, allocations: 225.6 kB / 379.4 MB, free: 13.85 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000136/0.433, allocations: 75.06 kB / 379.5 MB, free: 13.78 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02125/0.4542, allocations: 5.458 MB / 384.9 MB, free: 8.289 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-05/0.4543, allocations: 12.03 kB / 384.9 MB, free: 8.277 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.077e-05/0.4543, allocations: 7.953 kB / 384.9 MB, free: 8.27 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.215e-05/0.4544, allocations: 3.984 kB / 384.9 MB, free: 8.266 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001521/0.4559, allocations: 1.09 MB / 386 MB, free: 7.129 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.08e-06/0.4559, allocations: 0 / 386 MB, free: 7.129 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005349/0.4564, allocations: 124.1 kB / 386.2 MB, free: 7.008 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03271/0.4892, allocations: 7.289 MB / 393.4 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002372/0.4894, allocations: 31.97 kB / 393.5 MB, free: 15.67 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005441/0.4949, allocations: 3.087 MB / 396.6 MB, free: 12.53 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.4949, allocations: 0 / 396.6 MB, free: 12.53 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02375/0.5187, allocations: 6.421 MB / 403 MB, free: 6.078 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003702/0.5191, allocations: 144.2 kB / 403.1 MB, free: 5.918 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001708/0.5193, allocations: 16 kB / 403.1 MB, free: 5.902 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00138/0.5207, allocations: 215.8 kB / 403.3 MB, free: 5.691 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002599/0.5209, allocations: 100.8 kB / 403.4 MB, free: 5.594 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.112e-05/0.521, allocations: 31.97 kB / 403.5 MB, free: 5.562 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004034/0.5214, allocations: 330.9 kB / 403.8 MB, free: 5.242 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5214, allocations: 4 kB / 403.8 MB, free: 5.238 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007532/0.5222, allocations: 252 kB / 404.1 MB, free: 4.992 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 32,5 36} Notification: Performance of Backend phase and start with SimCode phase: time 0.000258/0.5225, allocations: 127.2 kB / 404.2 MB, free: 4.859 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.006536/0.529, allocations: 2.318 MB / 406.5 MB, free: 2.52 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.11e-06/0.529, allocations: 0 / 406.5 MB, free: 2.52 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003386/0.5324, allocations: 1.152 MB / 407.6 MB, free: 1.371 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007644/0.5332, allocations: 114.1 kB / 407.8 MB, free: 1.258 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003929/0.5372, allocations: 2.064 MB / 409.8 MB, free: 15.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005681/0.5377, allocations: 0.966 MB / 410.8 MB, free: 14.17 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002588/0.538, allocations: 58 kB / 410.8 MB, free: 14.11 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001093/0.5381, allocations: 35.44 kB / 410.9 MB, free: 14.08 MB / 350.1 MB Notification: Performance of SimCode: time 1.142e-06/0.5381, allocations: 0 / 410.9 MB, free: 14.08 MB / 350.1 MB Notification: Performance of Templates: time 0.0288/0.5669, allocations: 19.69 MB / 430.6 MB, free: 10.35 MB / 366.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: