Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingRectifier.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.HeatingRectifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingRectifier") translateModel(Modelica.Electrical.Analog.Examples.HeatingRectifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingRectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001331/0.001331, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002343/0.002343, allocations: 196.7 kB / 16.14 MB, free: 6.715 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.624/1.624, allocations: 205.1 MB / 222 MB, free: 5.004 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.001195/0.001195, allocations: 51.94 kB / 278 MB, free: 13.02 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2347/0.2359, allocations: 46.63 MB / 324.7 MB, free: 1.836 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.003821/0.2398, allocations: 2.515 MB / 327.2 MB, free: 15.85 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001519/0.2414, allocations: 0.6763 MB / 327.9 MB, free: 15.3 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001559/0.2415, allocations: 3.188 kB / 327.9 MB, free: 15.3 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002041/0.2418, allocations: 27.23 kB / 327.9 MB, free: 15.28 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001398/0.2419, allocations: 51.27 kB / 328 MB, free: 15.24 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003515/0.2423, allocations: 73.86 kB / 328 MB, free: 15.18 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003883/0.2427, allocations: 259.7 kB / 328.3 MB, free: 15.03 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002736/0.243, allocations: 77.16 kB / 328.4 MB, free: 14.98 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002313/0.2432, allocations: 96.45 kB / 328.4 MB, free: 14.93 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001912/0.2434, allocations: 108.8 kB / 328.6 MB, free: 14.85 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.208e-05/0.2435, allocations: 15.09 kB / 328.6 MB, free: 14.85 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001135/0.2436, allocations: 33.55 kB / 328.6 MB, free: 14.84 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.935e-05/0.2436, allocations: 42.38 kB / 328.6 MB, free: 14.8 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001536/0.2438, allocations: 119 kB / 328.8 MB, free: 14.73 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003343/0.2441, allocations: 268.3 kB / 329 MB, free: 14.53 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.2442, allocations: 1.156 kB / 329 MB, free: 14.53 MB / 270.1 MB Notification: Performance of FrontEnd: time 8.21e-07/0.2442, allocations: 0 / 329 MB, free: 14.53 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.512e-06/0.2442, allocations: 0 / 329 MB, free: 14.53 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001301/0.2455, allocations: 0.5182 MB / 329.5 MB, free: 14.05 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.689e-05/0.2455, allocations: 9.688 kB / 329.5 MB, free: 14.05 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.883e-05/0.2456, allocations: 24.88 kB / 329.6 MB, free: 14.04 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003064/0.2459, allocations: 236.8 kB / 329.8 MB, free: 13.79 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.514e-05/0.246, allocations: 20.73 kB / 329.8 MB, free: 13.78 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.502e-05/0.246, allocations: 17.44 kB / 329.8 MB, free: 13.77 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004546/0.2465, allocations: 201.2 kB / 330 MB, free: 13.64 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.801e-05/0.2465, allocations: 0 / 330 MB, free: 13.64 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.019e-05/0.2466, allocations: 10.34 kB / 330 MB, free: 13.63 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.246e-05/0.2466, allocations: 4.594 kB / 330.1 MB, free: 13.63 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003759/0.247, allocations: 150.5 kB / 330.2 MB, free: 13.57 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.001759/0.2487, allocations: 0.9318 MB / 331.1 MB, free: 12.7 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003462/0.2491, allocations: 158.4 kB / 331.3 MB, free: 12.61 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00025/0.2494, allocations: 96.36 kB / 331.4 MB, free: 12.56 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.138e-05/0.2494, allocations: 6.234 kB / 331.4 MB, free: 12.56 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001644/0.2496, allocations: 32.97 kB / 331.4 MB, free: 12.52 MB / 270.1 MB Notification: Performance of pre-optimization done (n=17): time 1.182e-06/0.2496, allocations: 0 / 331.4 MB, free: 12.52 MB / 270.1 MB Notification: Performance of matching and sorting (n=17): time 0.001409/0.251, allocations: 425.9 kB / 331.8 MB, free: 12.24 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.162e-05/0.2511, allocations: 54.16 kB / 331.9 MB, free: 12.18 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002207/0.2513, allocations: 171.6 kB / 332.1 MB, free: 12.04 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.594e-05/0.2513, allocations: 27.17 kB / 332.1 MB, free: 12.01 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001114/0.2514, allocations: 141.5 kB / 332.2 MB, free: 11.88 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001646/0.2516, allocations: 62.53 kB / 332.3 MB, free: 11.82 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.124e-05/0.2517, allocations: 41.39 kB / 332.3 MB, free: 11.79 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001605/0.2519, allocations: 331 kB / 332.6 MB, free: 11.46 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001282/0.252, allocations: 45.45 kB / 332.7 MB, free: 11.44 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001465/0.2521, allocations: 73.23 kB / 332.8 MB, free: 11.39 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000278/0.2524, allocations: 133.4 kB / 332.9 MB, free: 11.31 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.2525, allocations: 4 kB / 332.9 MB, free: 11.31 MB / 270.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004549/0.2529, allocations: 216.8 kB / 333.1 MB, free: 11.18 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.436e-05/0.2529, allocations: 8.844 kB / 333.1 MB, free: 11.18 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.348e-06/0.253, allocations: 4.953 kB / 333.1 MB, free: 11.18 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001478/0.2544, allocations: 218.2 kB / 333.3 MB, free: 11.08 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001507/0.2546, allocations: 28.8 kB / 333.4 MB, free: 11.08 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006917/0.2553, allocations: 0.6096 MB / 334 MB, free: 10.5 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001393/0.2555, allocations: 17.16 kB / 334 MB, free: 10.49 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.528e-05/0.2555, allocations: 4.312 kB / 334 MB, free: 10.49 MB / 270.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.000181/0.2557, allocations: 134.6 kB / 334.1 MB, free: 10.36 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.882e-05/0.2557, allocations: 20.91 kB / 334.1 MB, free: 10.34 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006945/0.2564, allocations: 230.3 kB / 334.4 MB, free: 10.12 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.027e-06/0.2565, allocations: 4 kB / 334.4 MB, free: 10.12 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.398e-06/0.2565, allocations: 0 / 334.4 MB, free: 10.12 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.194e-06/0.2565, allocations: 0 / 334.4 MB, free: 10.12 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001107/0.2576, allocations: 0.6012 MB / 335 MB, free: 9.453 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.2576, allocations: 0 / 335 MB, free: 9.453 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001526/0.2578, allocations: 27.98 kB / 335 MB, free: 9.426 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001108/0.2589, allocations: 204.6 kB / 335.2 MB, free: 9.223 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.699e-05/0.2589, allocations: 8 kB / 335.2 MB, free: 9.215 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004751/0.2594, allocations: 0.6186 MB / 335.8 MB, free: 8.57 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/0.2594, allocations: 0 / 335.8 MB, free: 8.57 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008144/0.2602, allocations: 432.7 kB / 336.2 MB, free: 8.125 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.567e-05/0.2603, allocations: 96.89 kB / 336.3 MB, free: 8.012 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.098e-05/0.2604, allocations: 8 kB / 336.4 MB, free: 8.004 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001461/0.2605, allocations: 15.98 kB / 336.4 MB, free: 7.988 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.023e-05/0.2606, allocations: 7.984 kB / 336.4 MB, free: 7.98 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.217e-05/0.2606, allocations: 8.062 kB / 336.4 MB, free: 7.973 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001012/0.2607, allocations: 127.3 kB / 336.5 MB, free: 7.848 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2607, allocations: 3.938 kB / 336.5 MB, free: 7.844 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003244/0.261, allocations: 59.84 kB / 336.6 MB, free: 7.785 MB / 270.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Capacitor1.v,HeatCapacitor1.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001748/0.2612, allocations: 107.2 kB / 336.7 MB, free: 7.672 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003968/0.2616, allocations: 140.4 kB / 336.8 MB, free: 7.535 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 4.99e-06/0.2616, allocations: 8.062 kB / 336.8 MB, free: 7.527 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001856/0.2618, allocations: 87.83 kB / 336.9 MB, free: 7.441 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004283/0.2623, allocations: 24.28 kB / 336.9 MB, free: 7.418 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001098/0.2634, allocations: 0.6322 MB / 337.6 MB, free: 6.758 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003132/0.2637, allocations: 0.7363 MB / 338.3 MB, free: 5.996 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 6.427e-05/0.2638, allocations: 13.55 kB / 338.3 MB, free: 5.984 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.045e-05/0.2638, allocations: 19.44 kB / 338.3 MB, free: 5.965 MB / 270.1 MB Notification: Performance of SimCode: time 3.3e-07/0.2639, allocations: 0 / 338.3 MB, free: 5.965 MB / 270.1 MB Notification: Performance of Templates: time 0.006043/0.2699, allocations: 2.382 MB / 340.7 MB, free: 3.586 MB / 270.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingRectifier.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingRectifier.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingRectifier -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe 2>&1)