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.0008021/0.0008021, allocations: 91.22 kB / 15.06 MB, free: 1.094 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.001129/0.001129, allocations: 172.7 kB / 15.95 MB, free: 204 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.548/1.548, allocations: 205.4 MB / 222.1 MB, free: 5.656 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.0005262/0.0005264, allocations: 12 kB / 278.9 MB, free: 12.83 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2892/0.2898, allocations: 47.58 MB / 326.5 MB, free: 1.613 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.003753/0.2936, allocations: 4.067 MB / 330.5 MB, free: 14.39 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001952/0.2955, allocations: 1.23 MB / 331.8 MB, free: 13.37 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002348/0.2958, allocations: 13.28 kB / 331.8 MB, free: 13.36 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000194/0.296, allocations: 80.02 kB / 331.9 MB, free: 13.29 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003469/0.2963, allocations: 212.7 kB / 332.1 MB, free: 13.11 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004806/0.2968, allocations: 217.4 kB / 332.3 MB, free: 12.93 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009394/0.2978, allocations: 0.94 MB / 333.2 MB, free: 12.36 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003494/0.2981, allocations: 199.6 kB / 333.4 MB, free: 12.22 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003914/0.2985, allocations: 343.4 kB / 333.7 MB, free: 12.04 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004764/0.299, allocations: 399.2 kB / 334.1 MB, free: 11.78 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 9.1e-05/0.2991, allocations: 48.62 kB / 334.2 MB, free: 11.78 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001884/0.2993, allocations: 68.44 kB / 334.2 MB, free: 11.77 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001399/0.2995, allocations: 153.6 kB / 334.4 MB, free: 11.64 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002312/0.2997, allocations: 163.2 kB / 334.6 MB, free: 11.51 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006283/0.3003, allocations: 0.7221 MB / 335.3 MB, free: 10.79 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.353e-06/0.3004, allocations: 0 / 335.3 MB, free: 10.79 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3004, allocations: 0 / 335.3 MB, free: 10.79 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.677e-06/0.3004, allocations: 0 / 335.3 MB, free: 10.79 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.002116/0.3025, allocations: 1.11 MB / 336.4 MB, free: 9.613 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.3025, allocations: 8.031 kB / 336.4 MB, free: 9.605 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001527/0.3027, allocations: 86.97 kB / 336.5 MB, free: 9.52 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005782/0.3033, allocations: 448.5 kB / 336.9 MB, free: 9.043 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.875e-05/0.3034, allocations: 53.2 kB / 337 MB, free: 8.992 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001028/0.3035, allocations: 67.91 kB / 337 MB, free: 8.926 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00135/0.3048, allocations: 0.6545 MB / 337.7 MB, free: 8.262 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.914e-05/0.3048, allocations: 4 kB / 337.7 MB, free: 8.258 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.002e-05/0.3049, allocations: 24 kB / 337.7 MB, free: 8.234 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.68e-05/0.3049, allocations: 16 kB / 337.7 MB, free: 8.219 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001611/0.3066, allocations: 0.7312 MB / 338.5 MB, free: 7.488 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.003648/0.3102, allocations: 2.378 MB / 340.8 MB, free: 4.953 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001372/0.3116, allocations: 0.6296 MB / 341.5 MB, free: 4.316 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007056/0.3123, allocations: 366 kB / 341.8 MB, free: 3.957 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.938e-05/0.3124, allocations: 12.36 kB / 341.8 MB, free: 3.945 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009212/0.3133, allocations: 449.5 kB / 342.3 MB, free: 3.48 MB / 270.1 MB Notification: Performance of pre-optimization done (n=54): time 1.834e-06/0.3133, allocations: 4 kB / 342.3 MB, free: 3.477 MB / 270.1 MB Notification: Performance of matching and sorting (n=94): time 0.06328/0.3766, allocations: 16.73 MB / 359 MB, free: 2.648 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001129/0.3768, allocations: 145.5 kB / 359.2 MB, free: 2.477 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007175/0.3775, allocations: 486.9 kB / 359.6 MB, free: 1.996 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001662/0.3777, allocations: 49.64 kB / 359.7 MB, free: 1.941 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003464/0.378, allocations: 367.9 kB / 360 MB, free: 1.574 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003548/0.3784, allocations: 311.5 kB / 360.3 MB, free: 1.266 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.905e-05/0.3785, allocations: 20 kB / 360.4 MB, free: 1.246 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001881/0.3787, allocations: 382.8 kB / 360.7 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001965/0.3807, allocations: 0.7944 MB / 361.5 MB, free: 72 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002032/0.3827, allocations: 1.001 MB / 362.5 MB, free: 14.99 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001966/0.3847, allocations: 0.8769 MB / 363.4 MB, free: 14.1 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.803e-06/0.3847, allocations: 0 / 363.4 MB, free: 14.1 MB / 302.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02141/0.4061, allocations: 5.62 MB / 369 MB, free: 8.453 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.368e-05/0.4062, allocations: 67.39 kB / 369.1 MB, free: 8.375 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.607e-05/0.4063, allocations: 4 kB / 369.1 MB, free: 8.371 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0395/0.4458, allocations: 7.321 MB / 376.4 MB, free: 1.035 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001202/0.447, allocations: 175.7 kB / 376.6 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01019/0.4573, allocations: 3.2 MB / 379.8 MB, free: 13.61 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00244/0.4597, allocations: 219.8 kB / 380 MB, free: 13.39 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002362/0.46, allocations: 39.98 kB / 380 MB, free: 13.35 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.0007406/0.4608, allocations: 237.6 kB / 380.3 MB, free: 13.11 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002952/0.4611, allocations: 75.06 kB / 380.3 MB, free: 13.04 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03241/0.4935, allocations: 5.458 MB / 385.8 MB, free: 7.547 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-05/0.4936, allocations: 15.89 kB / 385.8 MB, free: 7.531 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.722e-05/0.4936, allocations: 4 kB / 385.8 MB, free: 7.527 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.638e-05/0.4936, allocations: 7.922 kB / 385.8 MB, free: 7.52 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002409/0.4961, allocations: 1.086 MB / 386.9 MB, free: 6.387 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.131e-05/0.4961, allocations: 256 / 386.9 MB, free: 6.387 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007858/0.4969, allocations: 131.9 kB / 387 MB, free: 6.258 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04918/0.5461, allocations: 7.289 MB / 394.3 MB, free: 14.95 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003373/0.5465, allocations: 27.97 kB / 394.4 MB, free: 14.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008995/0.5555, allocations: 3.09 MB / 397.5 MB, free: 11.78 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.074e-06/0.5555, allocations: 48 / 397.5 MB, free: 11.78 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03376/0.5893, allocations: 6.425 MB / 403.9 MB, free: 5.32 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002938/0.5897, allocations: 144.2 kB / 404 MB, free: 5.16 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002862/0.59, allocations: 16 kB / 404 MB, free: 5.145 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001433/0.5914, allocations: 211.8 kB / 404.2 MB, free: 4.938 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002956/0.5917, allocations: 96.84 kB / 404.3 MB, free: 4.844 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001055/0.5918, allocations: 35.97 kB / 404.4 MB, free: 4.809 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004254/0.5923, allocations: 334.9 kB / 404.7 MB, free: 4.484 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5923, allocations: 0 / 404.7 MB, free: 4.484 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000869/0.5932, allocations: 256 kB / 405 MB, free: 4.234 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.0003056/0.5935, allocations: 127.2 kB / 405.1 MB, free: 4.102 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.006954/0.6004, allocations: 2.321 MB / 407.4 MB, free: 1.758 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.938e-06/0.6005, allocations: 0 / 407.4 MB, free: 1.758 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003394/0.6039, allocations: 1.153 MB / 408.5 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009066/0.6048, allocations: 122.2 kB / 408.7 MB, free: 500 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003943/0.6087, allocations: 2.066 MB / 410.7 MB, free: 14.39 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005124/0.6093, allocations: 0.9388 MB / 411.7 MB, free: 13.43 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000323/0.6096, allocations: 58.06 kB / 411.7 MB, free: 13.37 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001223/0.6097, allocations: 31.44 kB / 411.8 MB, free: 13.34 MB / 350.1 MB Notification: Performance of SimCode: time 6.51e-07/0.6098, allocations: 0 / 411.8 MB, free: 13.34 MB / 350.1 MB Notification: Performance of Templates: time 0.03207/0.6418, allocations: 19.72 MB / 431.5 MB, free: 9.586 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)