Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingRectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingRectifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingRectifier") translateModel(Modelica.Electrical.Analog.Examples.HeatingRectifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingRectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001506/0.001506, allocations: 188.6 kB / 8.353 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.429/1.429, allocations: 194.3 MB / 203.1 MB, free: 9.316 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.002446/0.002446, allocations: 109.1 kB / 248.1 MB, free: 6.316 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 1.707e-05/1.707e-05, allocations: 4 kB / 298.1 MB, free: 8.227 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09364/0.09368, allocations: 44.5 MB / 342.6 MB, free: 11.63 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3373/0.431, allocations: 73.16 MB / 415.7 MB, free: 22.61 MB / 315.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000246/0.4313, allocations: 70.95 kB / 415.8 MB, free: 22.58 MB / 315.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01008/0.4414, allocations: 3.98 MB / 419.8 MB, free: 19.3 MB / 315.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.4414, allocations: 0 / 419.8 MB, free: 19.3 MB / 315.1 MB Notification: Performance of Transformations before backend: time 1.248e-05/0.4415, allocations: 4 kB / 419.8 MB, free: 19.3 MB / 315.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0005948/0.4421, allocations: 488.6 kB / 420.3 MB, free: 18.79 MB / 315.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.732e-05/0.4421, allocations: 11.31 kB / 420.3 MB, free: 18.78 MB / 315.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.143e-05/0.4422, allocations: 30.38 kB / 420.3 MB, free: 18.75 MB / 315.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002537/0.4425, allocations: 229.1 kB / 420.5 MB, free: 18.5 MB / 315.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.554e-05/0.4425, allocations: 5.25 kB / 420.5 MB, free: 18.5 MB / 315.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.398e-05/0.4425, allocations: 12 kB / 420.6 MB, free: 18.49 MB / 315.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002469/0.4428, allocations: 130 kB / 420.7 MB, free: 18.41 MB / 315.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000302/0.4431, allocations: 181.5 kB / 420.9 MB, free: 18.26 MB / 315.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.519e-05/0.4431, allocations: 3.938 kB / 420.9 MB, free: 18.26 MB / 315.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.159e-05/0.4432, allocations: 0 / 420.9 MB, free: 18.26 MB / 315.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.393e-05/0.4432, allocations: 8 kB / 420.9 MB, free: 18.25 MB / 315.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0011/0.4443, allocations: 0.8002 MB / 421.7 MB, free: 17.52 MB / 315.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002187/0.4445, allocations: 138.7 kB / 421.8 MB, free: 17.43 MB / 315.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001397/0.4447, allocations: 82.61 kB / 421.9 MB, free: 17.37 MB / 315.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.417e-05/0.4447, allocations: 11.98 kB / 421.9 MB, free: 17.36 MB / 315.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.235e-05/0.4447, allocations: 37.95 kB / 421.9 MB, free: 17.31 MB / 315.1 MB Notification: Performance of pre-optimization done (n=17): time 1.232e-06/0.4447, allocations: 0 / 421.9 MB, free: 17.31 MB / 315.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005746/0.4453, allocations: 191.5 kB / 422.1 MB, free: 17.15 MB / 315.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.316e-05/0.4454, allocations: 51.41 kB / 422.2 MB, free: 17.09 MB / 315.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001121/0.4455, allocations: 169.4 kB / 422.3 MB, free: 16.94 MB / 315.1 MB Notification: Performance of collectPreVariables (initialization): time 1.491e-05/0.4455, allocations: 25.7 kB / 422.4 MB, free: 16.91 MB / 315.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.04e-05/0.4456, allocations: 144.3 kB / 422.5 MB, free: 16.78 MB / 315.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.022e-05/0.4456, allocations: 61 kB / 422.6 MB, free: 16.73 MB / 315.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.147e-06/0.4456, allocations: 0 / 422.6 MB, free: 16.73 MB / 315.1 MB Notification: Performance of setup shared object (initialization): time 7.198e-05/0.4457, allocations: 329.3 kB / 422.9 MB, free: 16.4 MB / 315.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.41e-05/0.4458, allocations: 42.19 kB / 422.9 MB, free: 16.38 MB / 315.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.448e-05/0.4459, allocations: 62.62 kB / 423 MB, free: 16.32 MB / 315.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001606/0.446, allocations: 73.83 kB / 423.1 MB, free: 16.28 MB / 315.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.446, allocations: 0 / 423.1 MB, free: 16.28 MB / 315.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003978/0.4465, allocations: 212.6 kB / 423.3 MB, free: 16.11 MB / 315.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/0.4465, allocations: 11.12 kB / 423.3 MB, free: 16.1 MB / 315.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.4465, allocations: 8.859 kB / 423.3 MB, free: 16.09 MB / 315.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005213/0.447, allocations: 95.95 kB / 423.4 MB, free: 16 MB / 315.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001333/0.4472, allocations: 39.28 kB / 423.4 MB, free: 15.97 MB / 315.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004566/0.4476, allocations: 0.6354 MB / 424.1 MB, free: 15.35 MB / 315.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001175/0.4478, allocations: 12.91 kB / 424.1 MB, free: 15.34 MB / 315.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.763e-05/0.4478, allocations: 11.98 kB / 424.1 MB, free: 15.32 MB / 315.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 14 * 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 6.444e-05/0.4479, allocations: 104.8 kB / 424.2 MB, free: 15.21 MB / 315.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.524e-05/0.4479, allocations: 23.12 kB / 424.2 MB, free: 15.2 MB / 315.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004039/0.4483, allocations: 208.4 kB / 424.4 MB, free: 15.03 MB / 315.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.162e-06/0.4483, allocations: 7.984 kB / 424.4 MB, free: 15.02 MB / 315.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.4483, allocations: 1.25 kB / 424.4 MB, free: 15.02 MB / 315.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.4484, allocations: 0 / 424.4 MB, free: 15.02 MB / 315.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007367/0.4491, allocations: 0.5458 MB / 425 MB, free: 14.52 MB / 315.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.264e-06/0.4492, allocations: 0 / 425 MB, free: 14.52 MB / 315.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001633/0.4493, allocations: 31.05 kB / 425 MB, free: 14.49 MB / 315.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004456/0.4498, allocations: 117.5 kB / 425.1 MB, free: 14.39 MB / 315.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.588e-05/0.4498, allocations: 3.984 kB / 425.1 MB, free: 14.38 MB / 315.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004244/0.4502, allocations: 0.6342 MB / 425.7 MB, free: 13.77 MB / 315.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/0.4503, allocations: 1.125 kB / 425.7 MB, free: 13.77 MB / 315.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005269/0.4508, allocations: 400.5 kB / 426.1 MB, free: 13.42 MB / 315.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.82e-05/0.4509, allocations: 104.7 kB / 426.2 MB, free: 13.3 MB / 315.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.936e-05/0.4509, allocations: 7.953 kB / 426.2 MB, free: 13.3 MB / 315.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001404/0.4511, allocations: 12.05 kB / 426.3 MB, free: 13.29 MB / 315.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.164e-05/0.4511, allocations: 15.8 kB / 426.3 MB, free: 13.27 MB / 315.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.215e-05/0.4511, allocations: 4 kB / 426.3 MB, free: 13.27 MB / 315.1 MB Notification: Performance of sorting global known variables: time 7.633e-05/0.4512, allocations: 118.2 kB / 426.4 MB, free: 13.17 MB / 315.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4512, allocations: 2.953 kB / 426.4 MB, free: 13.17 MB / 315.1 MB Notification: Performance of remove unused functions: time 0.000325/0.4516, allocations: 59.73 kB / 426.5 MB, free: 13.11 MB / 315.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 () * 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.0001783/0.4517, allocations: 111.9 kB / 426.6 MB, free: 12.99 MB / 315.1 MB Notification: Performance of simCode: created initialization part: time 0.0002902/0.452, allocations: 133.7 kB / 426.7 MB, free: 12.9 MB / 315.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.4521, allocations: 4 kB / 426.7 MB, free: 12.9 MB / 315.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001129/0.4522, allocations: 67.48 kB / 426.8 MB, free: 12.85 MB / 315.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002766/0.4525, allocations: 23.31 kB / 426.8 MB, free: 12.84 MB / 315.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006416/0.4531, allocations: 368.7 kB / 427.1 MB, free: 12.49 MB / 315.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001719/0.4533, allocations: 0.7439 MB / 427.9 MB, free: 11.71 MB / 315.1 MB Notification: Performance of simCode: alias equations: time 6.673e-05/0.4534, allocations: 9.328 kB / 427.9 MB, free: 11.7 MB / 315.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.014e-05/0.4534, allocations: 15.44 kB / 427.9 MB, free: 11.69 MB / 315.1 MB Notification: Performance of SimCode: time 5.91e-07/0.4534, allocations: 4 kB / 427.9 MB, free: 11.68 MB / 315.1 MB Notification: Performance of Templates: time 0.004829/0.4582, allocations: 2.198 MB / 430.1 MB, free: 9.543 MB / 315.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingRectifier.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingRectifier.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingRectifier -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe 2>&1)