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.001706/0.001705, allocations: 108 kB / 15.6 MB, free: 132 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.001979/0.001979, allocations: 195.5 kB / 16.53 MB, free: 6.391 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.477/1.477, allocations: 205.1 MB / 222.4 MB, free: 4.547 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.001394/0.001394, allocations: 55.92 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2801/0.2815, allocations: 46.63 MB / 325.3 MB, free: 1.852 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.005205/0.2867, allocations: 4.7 MB / 330 MB, free: 14.09 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002516/0.2893, allocations: 1.267 MB / 331.3 MB, free: 13.04 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003825/0.2897, allocations: 10.12 kB / 331.3 MB, free: 13.04 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002916/0.29, allocations: 114.7 kB / 331.4 MB, free: 12.93 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004501/0.2905, allocations: 252.5 kB / 331.6 MB, free: 12.71 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006446/0.2911, allocations: 295.3 kB / 331.9 MB, free: 12.45 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001002/0.2921, allocations: 1.046 MB / 333 MB, free: 11.83 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004041/0.2926, allocations: 258.5 kB / 333.2 MB, free: 11.68 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004862/0.2931, allocations: 405.7 kB / 333.6 MB, free: 11.45 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004918/0.2936, allocations: 455.2 kB / 334.1 MB, free: 11.11 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001199/0.2937, allocations: 88 kB / 334.2 MB, free: 11.02 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002099/0.2939, allocations: 112 kB / 334.3 MB, free: 10.91 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001438/0.2941, allocations: 183.3 kB / 334.4 MB, free: 10.73 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003403/0.2944, allocations: 434 kB / 334.9 MB, free: 10.31 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007881/0.2952, allocations: 0.9551 MB / 335.8 MB, free: 9.352 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.2952, allocations: 4 kB / 335.8 MB, free: 9.348 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2952, allocations: 0 / 335.8 MB, free: 9.348 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.978e-06/0.2952, allocations: 0 / 335.8 MB, free: 9.348 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.002312/0.2976, allocations: 1.215 MB / 337 MB, free: 8.062 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.2976, allocations: 12.03 kB / 337.1 MB, free: 8.051 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000158/0.2978, allocations: 95.91 kB / 337.1 MB, free: 7.957 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005252/0.2983, allocations: 461.4 kB / 337.6 MB, free: 7.465 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.634e-05/0.2984, allocations: 41.69 kB / 337.6 MB, free: 7.426 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001011/0.2985, allocations: 60.38 kB / 337.7 MB, free: 7.367 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001243/0.2997, allocations: 0.6353 MB / 338.3 MB, free: 6.727 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.91e-05/0.2997, allocations: 11.94 kB / 338.3 MB, free: 6.715 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.046e-05/0.2998, allocations: 24 kB / 338.4 MB, free: 6.691 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.527e-05/0.2998, allocations: 16 kB / 338.4 MB, free: 6.676 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001569/0.3014, allocations: 0.6804 MB / 339.1 MB, free: 5.992 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.003517/0.3049, allocations: 2.323 MB / 341.4 MB, free: 3.516 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001406/0.3064, allocations: 0.5982 MB / 342 MB, free: 2.91 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007007/0.3071, allocations: 326 kB / 342.3 MB, free: 2.59 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.596e-05/0.3071, allocations: 8.438 kB / 342.3 MB, free: 2.582 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00102/0.3082, allocations: 429.4 kB / 342.7 MB, free: 2.137 MB / 270.1 MB Notification: Performance of pre-optimization done (n=54): time 2.435e-06/0.3082, allocations: 0 / 342.7 MB, free: 2.137 MB / 270.1 MB Notification: Performance of matching and sorting (n=94): time 0.06638/0.3746, allocations: 15.4 MB / 358.1 MB, free: 2.641 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001162/0.3747, allocations: 149.5 kB / 358.3 MB, free: 2.461 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006495/0.3754, allocations: 494.8 kB / 358.8 MB, free: 1.969 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001806/0.3756, allocations: 41.7 kB / 358.8 MB, free: 1.922 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002473/0.3758, allocations: 364 kB / 359.2 MB, free: 1.559 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002696/0.3761, allocations: 315.4 kB / 359.5 MB, free: 1.246 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003369/0.3764, allocations: 182.5 kB / 359.6 MB, free: 1.062 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001403/0.3766, allocations: 382.8 kB / 360 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001995/0.3786, allocations: 0.7124 MB / 360.7 MB, free: 15.97 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002035/0.3806, allocations: 0.9303 MB / 361.7 MB, free: 14.95 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003949/0.3846, allocations: 1.658 MB / 363.3 MB, free: 13.21 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.66e-06/0.3846, allocations: 0 / 363.3 MB, free: 13.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02251/0.4071, allocations: 5.339 MB / 368.7 MB, free: 7.844 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.071e-05/0.4073, allocations: 71.39 kB / 368.7 MB, free: 7.762 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.049e-05/0.4073, allocations: 4 kB / 368.7 MB, free: 7.758 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03274/0.44, allocations: 6.836 MB / 375.6 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007225/0.4408, allocations: 139.7 kB / 375.7 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00577/0.4466, allocations: 3.009 MB / 378.7 MB, free: 13.7 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001643/0.4483, allocations: 179.9 kB / 378.9 MB, free: 13.52 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001017/0.4484, allocations: 43.97 kB / 378.9 MB, free: 13.48 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.0004099/0.4488, allocations: 221.6 kB / 379.1 MB, free: 13.25 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001457/0.4489, allocations: 75.41 kB / 379.2 MB, free: 13.18 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02128/0.4702, allocations: 5.11 MB / 384.3 MB, free: 8.055 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.255e-05/0.4703, allocations: 12 kB / 384.3 MB, free: 8.043 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.046e-05/0.4703, allocations: 0 / 384.3 MB, free: 8.043 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.315e-05/0.4703, allocations: 3.984 kB / 384.3 MB, free: 8.039 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001436/0.4718, allocations: 1.086 MB / 385.4 MB, free: 6.898 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.977e-06/0.4718, allocations: 7.922 kB / 385.4 MB, free: 6.891 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005268/0.4723, allocations: 95.83 kB / 385.5 MB, free: 6.797 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03222/0.5046, allocations: 6.781 MB / 392.3 MB, free: 0 / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002935/0.5049, allocations: 28.05 kB / 392.3 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005954/0.5109, allocations: 3.044 MB / 395.4 MB, free: 12.87 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.055e-06/0.5109, allocations: 3.938 kB / 395.4 MB, free: 12.87 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02947/0.5404, allocations: 5.975 MB / 401.4 MB, free: 6.863 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000336/0.5408, allocations: 144.2 kB / 401.5 MB, free: 6.703 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003634/0.5412, allocations: 16 kB / 401.5 MB, free: 6.688 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002164/0.5433, allocations: 171.8 kB / 401.7 MB, free: 6.52 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003985/0.5438, allocations: 100.8 kB / 401.8 MB, free: 6.422 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001487/0.5439, allocations: 36.22 kB / 401.8 MB, free: 6.387 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006712/0.5446, allocations: 338.9 kB / 402.2 MB, free: 6.059 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.5446, allocations: 0 / 402.2 MB, free: 6.059 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001268/0.5459, allocations: 252 kB / 402.4 MB, free: 5.812 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.0003957/0.5463, allocations: 147.2 kB / 402.5 MB, free: 5.656 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.009134/0.5555, allocations: 2.048 MB / 404.6 MB, free: 3.582 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 7.965e-06/0.5555, allocations: 4.375 kB / 404.6 MB, free: 3.578 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005276/0.5608, allocations: 1.085 MB / 405.7 MB, free: 2.492 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001131/0.5619, allocations: 130.2 kB / 405.8 MB, free: 2.367 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005522/0.5675, allocations: 1.744 MB / 407.6 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008048/0.5683, allocations: 0.9388 MB / 408.5 MB, free: 15.63 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004692/0.5688, allocations: 54.08 kB / 408.5 MB, free: 15.58 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001711/0.569, allocations: 35.44 kB / 408.6 MB, free: 15.55 MB / 350.1 MB Notification: Performance of SimCode: time 3.076e-06/0.569, allocations: 0 / 408.6 MB, free: 15.55 MB / 350.1 MB Notification: Performance of Templates: time 0.05239/0.6214, allocations: 22.54 MB / 431.1 MB, free: 8.969 MB / 366.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)