Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001225/0.001225, allocations: 104.9 kB / 17.06 MB, free: 6.016 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.001259/0.001259, allocations: 195 kB / 18 MB, free: 5.094 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.665/1.665, allocations: 205.1 MB / 223.9 MB, free: 12.29 MB / 190.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.001662/0.001663, allocations: 51.94 kB / 327.9 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1063, allocations: 46.62 MB / 374.5 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.2447/0.351, allocations: 4.683 MB / 379.2 MB, free: 9.75 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003769/0.3549, allocations: 1.27 MB / 380.5 MB, free: 9.727 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001042/0.356, allocations: 9.625 kB / 380.5 MB, free: 9.727 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006523/0.3567, allocations: 116.8 kB / 380.6 MB, free: 9.672 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001334/0.358, allocations: 240 kB / 380.8 MB, free: 9.551 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001376/0.3594, allocations: 309.1 kB / 381.1 MB, free: 9.539 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001693/0.3611, allocations: 1.052 MB / 382.2 MB, free: 9.32 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005168/0.3617, allocations: 260.7 kB / 382.4 MB, free: 9.266 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007111/0.3624, allocations: 411.4 kB / 382.8 MB, free: 9.113 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005831/0.363, allocations: 452.6 kB / 383.3 MB, free: 8.906 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001397/0.3631, allocations: 84.97 kB / 383.4 MB, free: 8.906 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002533/0.3634, allocations: 114.5 kB / 383.5 MB, free: 8.895 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001601/0.3636, allocations: 191.8 kB / 383.7 MB, free: 8.77 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003931/0.364, allocations: 428.7 kB / 384.1 MB, free: 8.516 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001259/0.3652, allocations: 0.9744 MB / 385 MB, free: 8.152 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/0.3652, allocations: 1.312 kB / 385 MB, free: 8.152 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.966e-06/0.3653, allocations: 0 / 385 MB, free: 8.152 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.477e-05/0.3653, allocations: 0 / 385 MB, free: 8.152 MB / 318.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.00283/0.3681, allocations: 1.216 MB / 386.3 MB, free: 7.328 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.821e-05/0.3682, allocations: 10.78 kB / 386.3 MB, free: 7.328 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002356/0.3684, allocations: 88.55 kB / 386.4 MB, free: 7.285 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009942/0.3694, allocations: 472.2 kB / 386.8 MB, free: 6.922 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.591e-05/0.3695, allocations: 50.53 kB / 386.9 MB, free: 6.895 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001548/0.3697, allocations: 61.73 kB / 386.9 MB, free: 6.875 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001741/0.3714, allocations: 0.638 MB / 387.6 MB, free: 6.637 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.895e-05/0.3715, allocations: 1.797 kB / 387.6 MB, free: 6.637 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.286e-05/0.3715, allocations: 26.75 kB / 387.6 MB, free: 6.617 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.128e-05/0.3716, allocations: 15.19 kB / 387.6 MB, free: 6.617 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001752/0.3733, allocations: 0.6774 MB / 388.3 MB, free: 6.41 MB / 318.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.003995/0.3773, allocations: 2.307 MB / 390.6 MB, free: 4.984 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001513/0.3788, allocations: 0.5844 MB / 391.2 MB, free: 4.758 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007563/0.3796, allocations: 331.7 kB / 391.5 MB, free: 4.641 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.513e-05/0.3797, allocations: 12.17 kB / 391.5 MB, free: 4.633 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009883/0.3807, allocations: 430.9 kB / 391.9 MB, free: 4.441 MB / 318.1 MB Notification: Performance of pre-optimization done (n=54): time 2.965e-06/0.3807, allocations: 0 / 391.9 MB, free: 4.441 MB / 318.1 MB Notification: Performance of matching and sorting (n=94): time 0.06792/0.4486, allocations: 15.41 MB / 407.3 MB, free: 13.68 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001088/0.4488, allocations: 149.5 kB / 407.5 MB, free: 13.51 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007182/0.4495, allocations: 490.8 kB / 408 MB, free: 13.02 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002761/0.4498, allocations: 53.62 kB / 408 MB, free: 12.96 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002656/0.4501, allocations: 370.3 kB / 408.4 MB, free: 12.59 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002834/0.4504, allocations: 311.5 kB / 408.7 MB, free: 12.29 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003611/0.4507, allocations: 182.5 kB / 408.9 MB, free: 12.1 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001941/0.4509, allocations: 378.8 kB / 409.2 MB, free: 11.72 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002001/0.4529, allocations: 0.7202 MB / 410 MB, free: 11 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002102/0.455, allocations: 0.9226 MB / 410.9 MB, free: 10 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004/0.4591, allocations: 1.662 MB / 412.5 MB, free: 8.254 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.144e-06/0.4591, allocations: 4 kB / 412.5 MB, free: 8.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02242/0.4815, allocations: 5.344 MB / 417.9 MB, free: 2.883 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.138e-05/0.4816, allocations: 70.69 kB / 418 MB, free: 2.805 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.673e-05/0.4817, allocations: 4 kB / 418 MB, free: 2.801 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03335/0.515, allocations: 6.824 MB / 424.8 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000769/0.5158, allocations: 139.8 kB / 424.9 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005895/0.5218, allocations: 3.016 MB / 427.9 MB, free: 8.762 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00179/0.5236, allocations: 184.7 kB / 428.1 MB, free: 8.582 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001146/0.5237, allocations: 39.98 kB / 428.2 MB, free: 8.543 MB / 350.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.0005076/0.5242, allocations: 225.6 kB / 428.4 MB, free: 8.312 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001672/0.5244, allocations: 79 kB / 428.5 MB, free: 8.234 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02166/0.5461, allocations: 5.094 MB / 433.5 MB, free: 3.133 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-05/0.5461, allocations: 15.89 kB / 433.6 MB, free: 3.121 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.198e-06/0.5461, allocations: 0 / 433.6 MB, free: 3.121 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.221e-05/0.5462, allocations: 7.969 kB / 433.6 MB, free: 3.113 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001791/0.548, allocations: 1.097 MB / 434.7 MB, free: 1.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.542e-06/0.548, allocations: 3.938 kB / 434.7 MB, free: 1.977 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005397/0.5485, allocations: 95.81 kB / 434.8 MB, free: 1.883 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03285/0.5814, allocations: 6.781 MB / 441.5 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000294/0.5817, allocations: 23.98 kB / 441.6 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006009/0.5878, allocations: 3.034 MB / 444.6 MB, free: 7.984 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.5878, allocations: 0 / 444.6 MB, free: 7.984 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02438/0.6122, allocations: 5.988 MB / 450.6 MB, free: 1.973 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003521/0.6126, allocations: 140.2 kB / 450.7 MB, free: 1.816 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001694/0.6127, allocations: 19.98 kB / 450.7 MB, free: 1.797 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001366/0.6141, allocations: 171.8 kB / 450.9 MB, free: 1.629 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002545/0.6144, allocations: 96.86 kB / 451 MB, free: 1.535 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.006e-05/0.6145, allocations: 31.98 kB / 451 MB, free: 1.504 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004254/0.6149, allocations: 338.9 kB / 451.4 MB, free: 1.176 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.523e-06/0.6149, allocations: 0 / 451.4 MB, free: 1.176 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008585/0.6158, allocations: 251.9 kB / 451.6 MB, free: 0.9297 MB / 366.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.0002663/0.6161, allocations: 131.2 kB / 451.7 MB, free: 0.793 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.006065/0.6221, allocations: 2.041 MB / 453.8 MB, free: 14.73 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.53e-06/0.6222, allocations: 0 / 453.8 MB, free: 14.73 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00361/0.6258, allocations: 1.095 MB / 454.9 MB, free: 13.64 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000905/0.6267, allocations: 130.5 kB / 455 MB, free: 13.52 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003661/0.6304, allocations: 1.747 MB / 456.8 MB, free: 11.75 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004878/0.6309, allocations: 0.9389 MB / 457.7 MB, free: 10.78 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002741/0.6312, allocations: 54.08 kB / 457.7 MB, free: 10.73 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001141/0.6313, allocations: 31.44 kB / 457.8 MB, free: 10.7 MB / 382.1 MB Notification: Performance of SimCode: time 7.32e-07/0.6313, allocations: 0 / 457.8 MB, free: 10.7 MB / 382.1 MB Notification: Performance of Templates: time 0.03592/0.6672, allocations: 23.79 MB / 481.6 MB, free: 2.887 MB / 398.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1)