Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.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.HeatingNPN_OrGate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001129/0.001129, allocations: 94.14 kB / 16.3 MB, free: 5.996 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.001238/0.001238, allocations: 183.6 kB / 17.2 MB, free: 5.914 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.46/1.46, allocations: 205.4 MB / 223.4 MB, free: 5.785 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.0004409/0.0004409, allocations: 12 kB / 280.1 MB, free: 13.08 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.272/0.2725, allocations: 47.59 MB / 327.7 MB, free: 1.398 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.003757/0.2763, allocations: 3.774 MB / 331.5 MB, free: 14.45 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002245/0.2785, allocations: 1.273 MB / 332.7 MB, free: 13.41 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002917/0.2789, allocations: 13.34 kB / 332.8 MB, free: 13.4 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001426/0.279, allocations: 75.92 kB / 332.8 MB, free: 13.34 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005296/0.2795, allocations: 275.3 kB / 333.1 MB, free: 13.1 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005403/0.2801, allocations: 217.9 kB / 333.3 MB, free: 12.92 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000826/0.2809, allocations: 0.6659 MB / 334 MB, free: 12.49 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004029/0.2813, allocations: 199.5 kB / 334.2 MB, free: 12.36 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004905/0.2818, allocations: 350.7 kB / 334.5 MB, free: 12.16 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005/0.2824, allocations: 403.1 kB / 334.9 MB, free: 11.9 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001081/0.2825, allocations: 44.84 kB / 335 MB, free: 11.9 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002198/0.2827, allocations: 66.34 kB / 335 MB, free: 11.89 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001567/0.2829, allocations: 138 kB / 335.2 MB, free: 11.77 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001903/0.2831, allocations: 170.2 kB / 335.3 MB, free: 11.67 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000743/0.2838, allocations: 0.7173 MB / 336 MB, free: 11.12 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.616e-06/0.2838, allocations: 0 / 336 MB, free: 11.12 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2838, allocations: 0 / 336 MB, free: 11.12 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.115e-05/0.2839, allocations: 0 / 336 MB, free: 11.12 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.002232/0.2861, allocations: 1.119 MB / 337.2 MB, free: 9.98 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.823e-05/0.2861, allocations: 8.031 kB / 337.2 MB, free: 9.973 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001507/0.2863, allocations: 90.95 kB / 337.3 MB, free: 9.883 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005771/0.2869, allocations: 440.5 kB / 337.7 MB, free: 9.414 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.564e-05/0.2869, allocations: 53.25 kB / 337.7 MB, free: 9.363 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000104/0.287, allocations: 67.91 kB / 337.8 MB, free: 9.297 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001325/0.2884, allocations: 0.6467 MB / 338.5 MB, free: 8.641 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.938e-05/0.2884, allocations: 0 / 338.5 MB, free: 8.641 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.407e-05/0.2885, allocations: 28 kB / 338.5 MB, free: 8.613 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.464e-05/0.2885, allocations: 16 kB / 338.5 MB, free: 8.598 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001658/0.2902, allocations: 0.7273 MB / 339.2 MB, free: 7.871 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.003896/0.2941, allocations: 2.378 MB / 341.6 MB, free: 5.336 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001474/0.2956, allocations: 0.6374 MB / 342.2 MB, free: 4.691 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.988e-05/0.2956, allocations: 12.44 kB / 342.3 MB, free: 4.68 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009297/0.2966, allocations: 449.4 kB / 342.7 MB, free: 4.215 MB / 270.1 MB Notification: Performance of pre-optimization done (n=54): time 2.205e-06/0.2966, allocations: 0 / 342.7 MB, free: 4.215 MB / 270.1 MB Notification: Performance of matching and sorting (n=94): time 0.07053/0.3671, allocations: 16.7 MB / 359.4 MB, free: 3.41 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001141/0.3673, allocations: 145.5 kB / 359.5 MB, free: 3.238 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006064/0.3679, allocations: 486.9 kB / 360 MB, free: 2.758 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001768/0.3681, allocations: 49.7 kB / 360.1 MB, free: 2.703 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002616/0.3683, allocations: 367.9 kB / 360.4 MB, free: 2.336 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002848/0.3686, allocations: 315.5 kB / 360.7 MB, free: 2.023 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.358e-05/0.3687, allocations: 16 kB / 360.7 MB, free: 2.008 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001931/0.3689, allocations: 386.7 kB / 361.1 MB, free: 1.621 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001997/0.3709, allocations: 0.7944 MB / 361.9 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00215/0.3731, allocations: 0.9929 MB / 362.9 MB, free: 15.75 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002035/0.3751, allocations: 0.873 MB / 363.8 MB, free: 14.87 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.489e-06/0.3751, allocations: 0 / 363.8 MB, free: 14.87 MB / 302.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02304/0.3982, allocations: 5.62 MB / 369.4 MB, free: 9.223 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001156/0.3984, allocations: 67.33 kB / 369.5 MB, free: 9.145 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.392e-05/0.3984, allocations: 8 kB / 369.5 MB, free: 9.137 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03522/0.4336, allocations: 7.321 MB / 376.8 MB, free: 1.801 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007563/0.4344, allocations: 175.7 kB / 377 MB, free: 1.629 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007008/0.4415, allocations: 3.212 MB / 380.2 MB, free: 14.36 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001791/0.4433, allocations: 227.8 kB / 380.4 MB, free: 14.14 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001536/0.4435, allocations: 47.97 kB / 380.4 MB, free: 14.09 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.0005005/0.444, allocations: 217.7 kB / 380.7 MB, free: 13.87 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001974/0.4442, allocations: 75.06 kB / 380.7 MB, free: 13.79 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0229/0.4671, allocations: 5.466 MB / 386.2 MB, free: 8.297 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.995e-05/0.4672, allocations: 12 kB / 386.2 MB, free: 8.285 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.492e-05/0.4672, allocations: 4 kB / 386.2 MB, free: 8.281 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.664e-05/0.4673, allocations: 7.969 kB / 386.2 MB, free: 8.273 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001984/0.4693, allocations: 1.09 MB / 387.3 MB, free: 7.137 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-05/0.4693, allocations: 0 / 387.3 MB, free: 7.137 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006049/0.4699, allocations: 123.8 kB / 387.4 MB, free: 7.016 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03569/0.5056, allocations: 7.281 MB / 394.7 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003402/0.506, allocations: 23.98 kB / 394.7 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005931/0.512, allocations: 3.106 MB / 397.8 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.512, allocations: 0 / 397.8 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02564/0.5376, allocations: 6.417 MB / 404.3 MB, free: 6.086 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003286/0.538, allocations: 140.2 kB / 404.4 MB, free: 5.93 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000354/0.5384, allocations: 20 kB / 404.4 MB, free: 5.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001564/0.54, allocations: 211.8 kB / 404.6 MB, free: 5.703 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003017/0.5403, allocations: 104.8 kB / 404.7 MB, free: 5.602 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001185/0.5404, allocations: 31.97 kB / 404.8 MB, free: 5.57 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004353/0.5409, allocations: 330.9 kB / 405.1 MB, free: 5.25 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.9e-07/0.5409, allocations: 3.938 kB / 405.1 MB, free: 5.246 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001027/0.5419, allocations: 252 kB / 405.3 MB, free: 5 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.0003594/0.5423, allocations: 131.2 kB / 405.5 MB, free: 4.863 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.007/0.5493, allocations: 2.314 MB / 407.8 MB, free: 2.527 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 7.885e-06/0.5493, allocations: 8.125 kB / 407.8 MB, free: 2.52 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003575/0.5529, allocations: 1.155 MB / 408.9 MB, free: 1.367 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007954/0.5537, allocations: 110.1 kB / 409 MB, free: 1.258 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004791/0.5586, allocations: 2.047 MB / 411.1 MB, free: 15.18 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006746/0.5593, allocations: 0.9583 MB / 412 MB, free: 14.19 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003424/0.5596, allocations: 54.08 kB / 412.1 MB, free: 14.14 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001326/0.5598, allocations: 35.42 kB / 412.1 MB, free: 14.1 MB / 350.1 MB Notification: Performance of SimCode: time 1.103e-06/0.5598, allocations: 0 / 412.1 MB, free: 14.1 MB / 350.1 MB Notification: Performance of Templates: time 0.03354/0.5933, allocations: 19.75 MB / 431.9 MB, free: 10.32 MB / 366.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe 2>&1) Environment - environmentSimulation: