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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001256/0.001256, allocations: 101.3 kB / 17.05 MB, free: 6.125 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.001208/0.001208, allocations: 196.1 kB / 18 MB, free: 5.199 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.599/1.599, allocations: 205.1 MB / 223.9 MB, free: 12.22 MB / 190.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.001448/0.001449, allocations: 55.92 kB / 327.9 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.112, allocations: 46.61 MB / 374.5 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.004512/0.1166, allocations: 2.465 MB / 376.9 MB, free: 2.086 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001291/0.1179, allocations: 0.6747 MB / 377.6 MB, free: 1.406 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001447/0.1181, allocations: 4 kB / 377.6 MB, free: 1.402 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001831/0.1183, allocations: 35.64 kB / 377.7 MB, free: 1.367 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002742/0.1186, allocations: 75.34 kB / 377.7 MB, free: 1.293 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003802/0.1189, allocations: 75.83 kB / 377.8 MB, free: 1.219 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003645/0.1193, allocations: 282.6 kB / 378.1 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00037/0.1197, allocations: 84.34 kB / 378.2 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00021/0.1199, allocations: 107.6 kB / 378.3 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002391/0.1202, allocations: 115.5 kB / 378.4 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.08e-05/0.1202, allocations: 24 kB / 378.4 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001258/0.1203, allocations: 35.97 kB / 378.4 MB, free: 0.582 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.405e-05/0.1204, allocations: 51.84 kB / 378.5 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001344/0.1206, allocations: 119.4 kB / 378.6 MB, free: 424 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003672/0.1209, allocations: 283 kB / 378.9 MB, free: 140 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.491e-06/0.1209, allocations: 0 / 378.9 MB, free: 140 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.121, allocations: 0 / 378.9 MB, free: 140 kB / 318.1 MB Notification: Performance of Transformations before backend: time 7.834e-06/0.121, allocations: 8 kB / 378.9 MB, free: 132 kB / 318.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.2532/0.3742, allocations: 0.5169 MB / 379.4 MB, free: 13.06 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.279e-05/0.3743, allocations: 10.25 kB / 379.4 MB, free: 13.06 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.105e-05/0.3744, allocations: 26.41 kB / 379.4 MB, free: 13.05 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003624/0.3747, allocations: 239.3 kB / 379.7 MB, free: 12.82 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.561e-05/0.3748, allocations: 16.56 kB / 379.7 MB, free: 12.82 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.288e-05/0.3748, allocations: 23.81 kB / 379.7 MB, free: 12.82 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003715/0.3752, allocations: 188.2 kB / 379.9 MB, free: 12.79 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.43e-05/0.3752, allocations: 0 / 379.9 MB, free: 12.79 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.483e-05/0.3752, allocations: 13.06 kB / 379.9 MB, free: 12.78 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.518e-06/0.3753, allocations: 4.125 kB / 379.9 MB, free: 12.78 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000308/0.3756, allocations: 156.8 kB / 380.1 MB, free: 12.78 MB / 318.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.001272/0.3769, allocations: 0.9256 MB / 381 MB, free: 12.2 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002984/0.3772, allocations: 156.1 kB / 381.2 MB, free: 12.17 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001983/0.3774, allocations: 99.38 kB / 381.2 MB, free: 12.16 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.557e-05/0.3774, allocations: 2.219 kB / 381.3 MB, free: 12.16 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.788e-05/0.3774, allocations: 35.84 kB / 381.3 MB, free: 12.12 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.133e-06/0.3774, allocations: 0 / 381.3 MB, free: 12.12 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.001282/0.3787, allocations: 416.8 kB / 381.7 MB, free: 11.96 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.34e-05/0.3788, allocations: 59.05 kB / 381.8 MB, free: 11.9 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001917/0.379, allocations: 172.2 kB / 381.9 MB, free: 11.77 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.869e-05/0.379, allocations: 30.97 kB / 381.9 MB, free: 11.74 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.054e-05/0.3791, allocations: 143.7 kB / 382.1 MB, free: 11.62 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.041e-05/0.3791, allocations: 59.91 kB / 382.1 MB, free: 11.57 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.055e-05/0.3792, allocations: 43.64 kB / 382.2 MB, free: 11.54 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.026e-05/0.3793, allocations: 328.7 kB / 382.5 MB, free: 11.22 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001359/0.3794, allocations: 50.25 kB / 382.6 MB, free: 11.2 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001586/0.3796, allocations: 73.8 kB / 382.6 MB, free: 11.17 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002807/0.3799, allocations: 131 kB / 382.8 MB, free: 11.1 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.3799, allocations: 0.875 kB / 382.8 MB, free: 11.1 MB / 318.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004417/0.3803, allocations: 218.5 kB / 383 MB, free: 10.99 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.3804, allocations: 6.719 kB / 383 MB, free: 10.99 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.3804, allocations: 2.859 kB / 383 MB, free: 10.99 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001331/0.3817, allocations: 221.9 kB / 383.2 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001422/0.3819, allocations: 33.28 kB / 383.2 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004103/0.3823, allocations: 0.61 MB / 383.8 MB, free: 10.4 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000114/0.3824, allocations: 17.41 kB / 383.9 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.687e-05/0.3824, allocations: 7.203 kB / 383.9 MB, free: 10.39 MB / 318.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 9.918e-05/0.3825, allocations: 131.8 kB / 384 MB, free: 10.26 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.879e-05/0.3826, allocations: 19.75 kB / 384 MB, free: 10.25 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004506/0.383, allocations: 227.6 kB / 384.2 MB, free: 10.12 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.3831, allocations: 6.281 kB / 384.2 MB, free: 10.12 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.3831, allocations: 1.125 kB / 384.2 MB, free: 10.12 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.3831, allocations: 1.219 kB / 384.2 MB, free: 10.12 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008113/0.3839, allocations: 0.5864 MB / 384.8 MB, free: 9.691 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.3839, allocations: 1.281 kB / 384.8 MB, free: 9.691 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001489/0.3841, allocations: 30.11 kB / 384.9 MB, free: 9.688 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00105/0.3851, allocations: 205.1 kB / 385.1 MB, free: 9.656 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.77e-05/0.3852, allocations: 5.969 kB / 385.1 MB, free: 9.652 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003492/0.3855, allocations: 0.624 MB / 385.7 MB, free: 9.082 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.3855, allocations: 0 / 385.7 MB, free: 9.082 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007522/0.3863, allocations: 421.3 kB / 386.1 MB, free: 8.832 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.308e-05/0.3863, allocations: 95.77 kB / 386.2 MB, free: 8.727 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.033e-05/0.3864, allocations: 6.312 kB / 386.2 MB, free: 8.723 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001358/0.3865, allocations: 19.34 kB / 386.2 MB, free: 8.715 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.234e-05/0.3866, allocations: 9.812 kB / 386.2 MB, free: 8.715 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.46e-05/0.3866, allocations: 4.609 kB / 386.2 MB, free: 8.715 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001022/0.3867, allocations: 132.2 kB / 386.4 MB, free: 8.621 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3867, allocations: 1.062 kB / 386.4 MB, free: 8.621 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003313/0.3871, allocations: 59.36 kB / 386.4 MB, free: 8.605 MB / 318.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.0001797/0.3872, allocations: 112.4 kB / 386.5 MB, free: 8.512 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004185/0.3877, allocations: 153.1 kB / 386.7 MB, free: 8.465 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.297e-06/0.3877, allocations: 0 / 386.7 MB, free: 8.465 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002168/0.3879, allocations: 86.81 kB / 386.8 MB, free: 8.441 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003614/0.3883, allocations: 24.41 kB / 386.8 MB, free: 8.434 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001057/0.3893, allocations: 0.5498 MB / 387.3 MB, free: 8.074 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002259/0.3896, allocations: 0.7375 MB / 388.1 MB, free: 7.375 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 6.417e-05/0.3897, allocations: 14.94 kB / 388.1 MB, free: 7.367 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.166e-05/0.3897, allocations: 12.75 kB / 388.1 MB, free: 7.359 MB / 318.1 MB Notification: Performance of SimCode: time 3e-07/0.3897, allocations: 1.438 kB / 388.1 MB, free: 7.359 MB / 318.1 MB Notification: Performance of Templates: time 0.007239/0.3969, allocations: 2.576 MB / 390.7 MB, free: 7.152 MB / 318.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)