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/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+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/Complex 3.2.1+maint.om/package.mo): time 0.0009244/0.0009244, allocations: 164.5 kB / 7.636 MB, free: 1.418 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.172/1.172, allocations: 170.7 MB / 178.7 MB, free: 15.64 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001539/0.001539, allocations: 111.4 kB / 218 MB, free: 8.406 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.989e-05/1.983e-05, allocations: 4 kB / 262.2 MB, free: 26.38 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06906/0.0691, allocations: 38.77 MB / 301 MB, free: 3.629 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3173/0.3864, allocations: 67.95 MB / 368.9 MB, free: 384 kB / 250.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002037/0.3867, allocations: 72.28 kB / 369 MB, free: 348 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01416/0.4009, allocations: 3.972 MB / 373 MB, free: 13.01 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4009, allocations: 4 kB / 373 MB, free: 13.01 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.632e-05/0.4009, allocations: 4 kB / 373 MB, free: 13 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0007973/0.4017, allocations: 483.9 kB / 373.4 MB, free: 12.5 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/0.4018, allocations: 12.03 kB / 373.5 MB, free: 12.48 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.024e-05/0.4019, allocations: 27.72 kB / 373.5 MB, free: 12.46 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003288/0.4022, allocations: 235.4 kB / 373.7 MB, free: 12.2 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.014e-05/0.4023, allocations: 8 kB / 373.7 MB, free: 12.19 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.099e-05/0.4023, allocations: 19.89 kB / 373.7 MB, free: 12.18 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003587/0.4027, allocations: 131.8 kB / 373.9 MB, free: 12.09 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000418/0.4031, allocations: 185 kB / 374.1 MB, free: 11.94 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.524e-05/0.4031, allocations: 0 / 374.1 MB, free: 11.94 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.663e-05/0.4032, allocations: 0 / 374.1 MB, free: 11.94 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.198e-05/0.4032, allocations: 8 kB / 374.1 MB, free: 11.93 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001633/0.4048, allocations: 0.8092 MB / 374.9 MB, free: 11.2 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003443/0.4052, allocations: 136.9 kB / 375 MB, free: 11.1 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002159/0.4054, allocations: 84.19 kB / 375.1 MB, free: 11.04 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.448e-05/0.4055, allocations: 4 kB / 375.1 MB, free: 11.04 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.351e-05/0.4055, allocations: 37.62 kB / 375.1 MB, free: 11 MB / 266.7 MB Notification: Performance of pre-optimization done (n=17): time 1.733e-06/0.4055, allocations: 0 / 375.1 MB, free: 11 MB / 266.7 MB Notification: Performance of matching and sorting (n=17): time 0.0007962/0.4063, allocations: 208.4 kB / 375.3 MB, free: 10.82 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.699e-05/0.4064, allocations: 55.34 kB / 375.4 MB, free: 10.75 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001861/0.4066, allocations: 160 kB / 375.5 MB, free: 10.61 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.506e-05/0.4066, allocations: 25.7 kB / 375.6 MB, free: 10.57 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001193/0.4068, allocations: 153.7 kB / 375.7 MB, free: 10.44 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.644e-05/0.4068, allocations: 53.64 kB / 375.8 MB, free: 10.39 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.316e-05/0.4069, allocations: 0 / 375.8 MB, free: 10.39 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.407, allocations: 333.9 kB / 376.1 MB, free: 10.07 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001179/0.4072, allocations: 42 kB / 376.1 MB, free: 10.04 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001511/0.4073, allocations: 85.27 kB / 376.2 MB, free: 9.969 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000279/0.4076, allocations: 67.16 kB / 376.3 MB, free: 9.922 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.528e-06/0.4076, allocations: 0 / 376.3 MB, free: 9.922 MB / 266.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0007022/0.4084, allocations: 233.8 kB / 376.5 MB, free: 9.734 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.075e-05/0.4084, allocations: 8 kB / 376.5 MB, free: 9.727 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.237e-06/0.4084, allocations: 3.984 kB / 376.5 MB, free: 9.723 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007841/0.4092, allocations: 107.6 kB / 376.6 MB, free: 9.625 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002377/0.4095, allocations: 39.92 kB / 376.7 MB, free: 9.586 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008011/0.4103, allocations: 0.6364 MB / 377.3 MB, free: 8.965 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002049/0.4105, allocations: 19.86 kB / 377.3 MB, free: 8.945 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.36e-05/0.4105, allocations: 4 kB / 377.3 MB, free: 8.941 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001266/0.4107, allocations: 108.9 kB / 377.4 MB, free: 8.828 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.648e-05/0.4107, allocations: 15.81 kB / 377.4 MB, free: 8.812 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006736/0.4114, allocations: 217.2 kB / 377.7 MB, free: 8.645 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-06/0.4115, allocations: 0 / 377.7 MB, free: 8.645 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.654e-06/0.4115, allocations: 7.938 kB / 377.7 MB, free: 8.637 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.558e-06/0.4115, allocations: 3.953 kB / 377.7 MB, free: 8.633 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001255/0.4128, allocations: 0.5427 MB / 378.2 MB, free: 8.129 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.4128, allocations: 0 / 378.2 MB, free: 8.129 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002225/0.413, allocations: 31.97 kB / 378.2 MB, free: 8.098 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000704/0.4137, allocations: 114.5 kB / 378.4 MB, free: 7.996 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.877e-05/0.4138, allocations: 0 / 378.4 MB, free: 7.996 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007845/0.4146, allocations: 0.6386 MB / 379 MB, free: 7.379 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.4146, allocations: 0 / 379 MB, free: 7.379 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009295/0.4155, allocations: 402.1 kB / 379.4 MB, free: 7.027 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001289/0.4157, allocations: 112 kB / 379.5 MB, free: 6.906 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.831e-05/0.4157, allocations: 0 / 379.5 MB, free: 6.906 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002316/0.416, allocations: 11.98 kB / 379.5 MB, free: 6.895 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.96e-05/0.416, allocations: 16 kB / 379.5 MB, free: 6.879 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.009e-05/0.4161, allocations: 4 kB / 379.5 MB, free: 6.875 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001388/0.4162, allocations: 125.1 kB / 379.7 MB, free: 6.77 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.9e-07/0.4162, allocations: 3.938 kB / 379.7 MB, free: 6.766 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000555/0.4168, allocations: 51.84 kB / 379.7 MB, free: 6.715 MB / 266.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002161/0.417, allocations: 115.2 kB / 379.8 MB, free: 6.594 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004524/0.4175, allocations: 129.4 kB / 379.9 MB, free: 6.504 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.055e-06/0.4175, allocations: 0 / 379.9 MB, free: 6.504 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001992/0.4177, allocations: 75.16 kB / 380 MB, free: 6.449 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003846/0.4181, allocations: 27.36 kB / 380 MB, free: 6.43 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001034/0.4192, allocations: 373.6 kB / 380.4 MB, free: 6.066 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004012/0.4196, allocations: 0.748 MB / 381.2 MB, free: 5.293 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001095/0.4197, allocations: 9.328 kB / 381.2 MB, free: 5.285 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.366e-05/0.4198, allocations: 15.44 kB / 381.2 MB, free: 5.273 MB / 266.7 MB Notification: Performance of SimCode: time 3.7e-07/0.4198, allocations: 0 / 381.2 MB, free: 5.273 MB / 266.7 MB Notification: Performance of Templates: time 0.00749/0.4273, allocations: 2.212 MB / 383.4 MB, free: 3.07 MB / 266.7 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)