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.0009566/0.0009568, allocations: 90.52 kB / 16.31 MB, free: 6.473 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.000827/0.000827, allocations: 178.2 kB / 17.21 MB, free: 6.336 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.411/1.411, allocations: 205.4 MB / 223.4 MB, free: 5.578 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.0005978/0.000598, allocations: 12 kB / 280.1 MB, free: 12.83 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2577/0.2583, allocations: 47.59 MB / 327.7 MB, free: 1.531 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.00442/0.2628, allocations: 4.073 MB / 331.8 MB, free: 14.31 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002525/0.2654, allocations: 1.235 MB / 333 MB, free: 13.28 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002531/0.2657, allocations: 13.44 kB / 333.1 MB, free: 13.27 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002085/0.2659, allocations: 83.73 kB / 333.1 MB, free: 13.2 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003661/0.2662, allocations: 212.7 kB / 333.3 MB, free: 13.02 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005644/0.2668, allocations: 211 kB / 333.5 MB, free: 12.84 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001061/0.2679, allocations: 0.9433 MB / 334.5 MB, free: 12.27 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003675/0.2683, allocations: 192 kB / 334.7 MB, free: 12.14 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005/0.2688, allocations: 351.7 kB / 335 MB, free: 11.95 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005594/0.2693, allocations: 399.1 kB / 335.4 MB, free: 11.69 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001132/0.2695, allocations: 49.12 kB / 335.5 MB, free: 11.69 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002168/0.2697, allocations: 67.73 kB / 335.5 MB, free: 11.68 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001627/0.2699, allocations: 150.1 kB / 335.7 MB, free: 11.55 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002462/0.2701, allocations: 165.8 kB / 335.8 MB, free: 11.45 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006792/0.2708, allocations: 0.7153 MB / 336.5 MB, free: 10.75 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.798e-06/0.2708, allocations: 0 / 336.5 MB, free: 10.75 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2708, allocations: 0 / 336.5 MB, free: 10.75 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.188e-05/0.2709, allocations: 0 / 336.5 MB, free: 10.75 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.002113/0.273, allocations: 1.114 MB / 337.7 MB, free: 9.566 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.545e-05/0.273, allocations: 8.031 kB / 337.7 MB, free: 9.559 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001298/0.2732, allocations: 90.97 kB / 337.8 MB, free: 9.469 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000525/0.2737, allocations: 448.4 kB / 338.2 MB, free: 8.992 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.51e-05/0.2738, allocations: 49.27 kB / 338.2 MB, free: 8.945 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001001/0.2739, allocations: 67.91 kB / 338.3 MB, free: 8.879 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00132/0.2752, allocations: 0.6545 MB / 339 MB, free: 8.215 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2e-05/0.2752, allocations: 0 / 339 MB, free: 8.215 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.755e-05/0.2753, allocations: 27.98 kB / 339 MB, free: 8.188 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.576e-05/0.2753, allocations: 16 kB / 339 MB, free: 8.172 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001567/0.2769, allocations: 0.7351 MB / 339.7 MB, free: 7.438 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.003531/0.2804, allocations: 2.371 MB / 342.1 MB, free: 4.91 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001379/0.2818, allocations: 0.6335 MB / 342.7 MB, free: 4.27 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006995/0.2825, allocations: 365.9 kB / 343.1 MB, free: 3.91 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.3e-05/0.2826, allocations: 8.438 kB / 343.1 MB, free: 3.902 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009298/0.2835, allocations: 453.5 kB / 343.6 MB, free: 3.434 MB / 270.1 MB Notification: Performance of pre-optimization done (n=54): time 1.854e-06/0.2835, allocations: 0 / 343.6 MB, free: 3.434 MB / 270.1 MB Notification: Performance of matching and sorting (n=94): time 0.06369/0.3472, allocations: 16.73 MB / 360.3 MB, free: 2.605 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000124/0.3474, allocations: 141.5 kB / 360.4 MB, free: 2.438 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006518/0.3481, allocations: 486.9 kB / 360.9 MB, free: 1.957 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001716/0.3483, allocations: 45.7 kB / 360.9 MB, free: 1.906 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002572/0.3485, allocations: 371.9 kB / 361.3 MB, free: 1.535 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002961/0.3488, allocations: 307.5 kB / 361.6 MB, free: 1.23 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.049e-05/0.3489, allocations: 24 kB / 361.6 MB, free: 1.207 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002421/0.3492, allocations: 382.8 kB / 362 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001884/0.3511, allocations: 0.7904 MB / 362.8 MB, free: 36 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001975/0.3531, allocations: 0.9968 MB / 363.8 MB, free: 14.96 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001913/0.355, allocations: 0.8807 MB / 364.7 MB, free: 14.07 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.961e-06/0.355, allocations: 4 kB / 364.7 MB, free: 14.06 MB / 302.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02111/0.3761, allocations: 5.617 MB / 370.3 MB, free: 8.418 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.69e-05/0.3763, allocations: 59.41 kB / 370.3 MB, free: 8.348 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.75e-05/0.3763, allocations: 4.125 kB / 370.4 MB, free: 8.344 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0314/0.4077, allocations: 7.328 MB / 377.7 MB, free: 1 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007313/0.4085, allocations: 175.8 kB / 377.9 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006273/0.4148, allocations: 3.216 MB / 381.1 MB, free: 13.55 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001529/0.4163, allocations: 223.8 kB / 381.3 MB, free: 13.34 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000103/0.4164, allocations: 48.22 kB / 381.3 MB, free: 13.29 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.0004403/0.4169, allocations: 217.7 kB / 381.5 MB, free: 13.07 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001324/0.417, allocations: 83 kB / 381.6 MB, free: 12.98 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02054/0.4376, allocations: 5.466 MB / 387.1 MB, free: 7.488 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.031e-05/0.4376, allocations: 11.94 kB / 387.1 MB, free: 7.477 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.145e-05/0.4376, allocations: 3.953 kB / 387.1 MB, free: 7.473 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.948e-05/0.4377, allocations: 3.984 kB / 387.1 MB, free: 7.469 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00158/0.4393, allocations: 1.09 MB / 388.2 MB, free: 6.332 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.62e-06/0.4393, allocations: 0 / 388.2 MB, free: 6.332 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005171/0.4398, allocations: 119.9 kB / 388.3 MB, free: 6.215 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03084/0.4706, allocations: 7.281 MB / 395.6 MB, free: 14.92 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002517/0.4709, allocations: 27.97 kB / 395.6 MB, free: 14.89 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00551/0.4765, allocations: 3.106 MB / 398.7 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.4765, allocations: 0 / 398.7 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02275/0.4992, allocations: 6.413 MB / 405.1 MB, free: 5.281 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002832/0.4996, allocations: 144.2 kB / 405.3 MB, free: 5.121 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001632/0.4998, allocations: 24 kB / 405.3 MB, free: 5.098 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001222/0.501, allocations: 211.8 kB / 405.5 MB, free: 4.891 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002542/0.5012, allocations: 100.8 kB / 405.6 MB, free: 4.793 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.506e-05/0.5013, allocations: 32.23 kB / 405.6 MB, free: 4.762 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003872/0.5017, allocations: 334.9 kB / 406 MB, free: 4.438 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5017, allocations: 0 / 406 MB, free: 4.438 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007871/0.5025, allocations: 252 kB / 406.2 MB, free: 4.191 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.0002836/0.5028, allocations: 139.2 kB / 406.4 MB, free: 4.047 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.006246/0.5091, allocations: 2.322 MB / 408.7 MB, free: 1.703 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.5091, allocations: 4.062 kB / 408.7 MB, free: 1.699 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00316/0.5123, allocations: 1.163 MB / 409.8 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007662/0.5131, allocations: 130.1 kB / 410 MB, free: 420 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003644/0.5167, allocations: 2.038 MB / 412 MB, free: 14.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000493/0.5172, allocations: 0.9427 MB / 413 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000295/0.5175, allocations: 54.08 kB / 413 MB, free: 13.32 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001085/0.5176, allocations: 31.44 kB / 413 MB, free: 13.29 MB / 350.1 MB Notification: Performance of SimCode: time 1.122e-06/0.5177, allocations: 0 / 413 MB, free: 13.29 MB / 350.1 MB Notification: Performance of Templates: time 0.02814/0.5458, allocations: 19.77 MB / 432.8 MB, free: 9.484 MB / 366.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.makefile (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)