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.0008176/0.0008178, allocations: 91.88 kB / 16.65 MB, free: 6.586 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.0008362/0.0008361, allocations: 182 kB / 17.56 MB, free: 6.203 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.405/1.405, allocations: 205.4 MB / 223.7 MB, free: 13.08 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.000486/0.0004861, allocations: 8 kB / 280.7 MB, free: 3.426 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.1191, allocations: 47.58 MB / 328.3 MB, free: 3.77 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.002966/0.1222, allocations: 2.157 MB / 330.5 MB, free: 1.59 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001224/0.1234, allocations: 0.6633 MB / 331.1 MB, free: 0.9219 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001277/0.1236, allocations: 4 kB / 331.1 MB, free: 0.918 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001682/0.1237, allocations: 27.77 kB / 331.2 MB, free: 0.8906 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001322/0.1239, allocations: 59.48 kB / 331.2 MB, free: 0.832 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003299/0.1242, allocations: 67.92 kB / 331.3 MB, free: 0.7656 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003716/0.1246, allocations: 258.8 kB / 331.5 MB, free: 0.5117 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002248/0.1248, allocations: 68.78 kB / 331.6 MB, free: 456 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001575/0.125, allocations: 99.58 kB / 331.7 MB, free: 356 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002068/0.1252, allocations: 103.5 kB / 331.8 MB, free: 252 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.244e-05/0.1253, allocations: 12 kB / 331.8 MB, free: 240 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.063e-05/0.1254, allocations: 27.98 kB / 331.8 MB, free: 212 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 4.47e-05/0.1254, allocations: 35.84 kB / 331.9 MB, free: 176 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001339/0.1255, allocations: 133.1 kB / 332 MB, free: 36 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003449/0.1259, allocations: 259.1 kB / 332.3 MB, free: 15.78 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.1259, allocations: 0 / 332.3 MB, free: 15.78 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.305e-06/0.1259, allocations: 0 / 332.3 MB, free: 15.78 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.161e-06/0.1259, allocations: 4 kB / 332.3 MB, free: 15.78 MB / 286.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.0008984/0.1268, allocations: 0.4913 MB / 332.8 MB, free: 15.23 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.596e-05/0.1269, allocations: 8.031 kB / 332.8 MB, free: 15.23 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.787e-05/0.127, allocations: 24.66 kB / 332.8 MB, free: 15.2 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003263/0.1273, allocations: 236.6 kB / 333 MB, free: 14.93 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.657e-05/0.1274, allocations: 24.75 kB / 333 MB, free: 14.91 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.829e-05/0.1274, allocations: 24.3 kB / 333.1 MB, free: 14.89 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003917/0.1278, allocations: 195.2 kB / 333.3 MB, free: 14.69 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.477e-05/0.1278, allocations: 0 / 333.3 MB, free: 14.69 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.393e-05/0.1279, allocations: 8 kB / 333.3 MB, free: 14.68 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.1279, allocations: 4 kB / 333.3 MB, free: 14.68 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003064/0.1282, allocations: 153.7 kB / 333.4 MB, free: 14.53 MB / 286.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.001295/0.1295, allocations: 0.9413 MB / 334.4 MB, free: 13.48 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002989/0.1298, allocations: 162.6 kB / 334.5 MB, free: 13.31 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001915/0.13, allocations: 96.83 kB / 334.6 MB, free: 13.21 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.124e-05/0.1301, allocations: 3.984 kB / 334.6 MB, free: 13.21 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.661e-05/0.1301, allocations: 34.56 kB / 334.7 MB, free: 13.17 MB / 286.1 MB Notification: Performance of pre-optimization done (n=17): time 1.312e-06/0.1301, allocations: 0 / 334.7 MB, free: 13.17 MB / 286.1 MB Notification: Performance of matching and sorting (n=17): time 0.001274/0.1314, allocations: 434.2 kB / 335.1 MB, free: 12.72 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.61e-05/0.1314, allocations: 55.41 kB / 335.1 MB, free: 12.65 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000165/0.1316, allocations: 170.4 kB / 335.3 MB, free: 12.48 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.236e-05/0.1316, allocations: 25.7 kB / 335.3 MB, free: 12.45 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001002/0.1317, allocations: 152.1 kB / 335.5 MB, free: 12.29 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.185e-05/0.1318, allocations: 63.11 kB / 335.5 MB, free: 12.23 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.798e-05/0.1318, allocations: 25.66 kB / 335.6 MB, free: 12.2 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.132, allocations: 330.8 kB / 335.9 MB, free: 11.87 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000116/0.1321, allocations: 51.98 kB / 335.9 MB, free: 11.82 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001249/0.1323, allocations: 69.69 kB / 336 MB, free: 11.74 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002484/0.1325, allocations: 133.6 kB / 336.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.1325, allocations: 0 / 336.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004039/0.1329, allocations: 222.2 kB / 336.3 MB, free: 11.38 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.93e-05/0.133, allocations: 8 kB / 336.4 MB, free: 11.37 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.068e-05/0.133, allocations: 7.969 kB / 336.4 MB, free: 11.36 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001364/0.1344, allocations: 228.6 kB / 336.6 MB, free: 11.14 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001363/0.1345, allocations: 35.92 kB / 336.6 MB, free: 11.1 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004745/0.135, allocations: 0.6109 MB / 337.2 MB, free: 10.46 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001236/0.1351, allocations: 15.92 kB / 337.2 MB, free: 10.45 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.494e-05/0.1351, allocations: 8 kB / 337.3 MB, free: 10.44 MB / 286.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.0001325/0.1353, allocations: 133.7 kB / 337.4 MB, free: 10.3 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.04e-05/0.1353, allocations: 15.81 kB / 337.4 MB, free: 10.29 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004547/0.1358, allocations: 244.2 kB / 337.6 MB, free: 10.04 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.1358, allocations: 0 / 337.6 MB, free: 10.04 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.1358, allocations: 3.938 kB / 337.6 MB, free: 10.03 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.1358, allocations: 0 / 337.6 MB, free: 10.03 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008376/0.1367, allocations: 0.5935 MB / 338.2 MB, free: 9.375 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.1367, allocations: 3.938 kB / 338.2 MB, free: 9.371 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001465/0.1368, allocations: 35.92 kB / 338.3 MB, free: 9.336 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001042/0.1379, allocations: 216.6 kB / 338.5 MB, free: 9.121 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.85e-05/0.1379, allocations: 8 kB / 338.5 MB, free: 9.113 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004773/0.1384, allocations: 0.6186 MB / 339.1 MB, free: 8.469 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.1384, allocations: 0 / 339.1 MB, free: 8.469 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007877/0.1392, allocations: 432.8 kB / 339.5 MB, free: 8.023 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.531e-05/0.1393, allocations: 96.84 kB / 339.6 MB, free: 7.91 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.073e-05/0.1393, allocations: 4 kB / 339.6 MB, free: 7.906 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001379/0.1395, allocations: 12.06 kB / 339.6 MB, free: 7.895 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.912e-05/0.1395, allocations: 11.98 kB / 339.7 MB, free: 7.883 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.277e-05/0.1395, allocations: 7.984 kB / 339.7 MB, free: 7.875 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001037/0.1397, allocations: 127.2 kB / 339.8 MB, free: 7.75 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1397, allocations: 0 / 339.8 MB, free: 7.75 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003185/0.14, allocations: 55.84 kB / 339.8 MB, free: 7.695 MB / 286.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.0001864/0.1402, allocations: 115.2 kB / 340 MB, free: 7.574 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003985/0.1406, allocations: 148.4 kB / 340.1 MB, free: 7.43 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/0.1406, allocations: 4 kB / 340.1 MB, free: 7.426 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001771/0.1408, allocations: 87.84 kB / 340.2 MB, free: 7.34 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003911/0.1412, allocations: 32.05 kB / 340.2 MB, free: 7.309 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001019/0.1422, allocations: 0.7027 MB / 340.9 MB, free: 6.578 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003256/0.1425, allocations: 0.7441 MB / 341.7 MB, free: 5.809 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 6.488e-05/0.1426, allocations: 13.53 kB / 341.7 MB, free: 5.793 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.062e-05/0.1427, allocations: 15.44 kB / 341.7 MB, free: 5.777 MB / 286.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1427, allocations: 0 / 341.7 MB, free: 5.777 MB / 286.1 MB Notification: Performance of Templates: time 0.005648/0.1483, allocations: 2.357 MB / 344.1 MB, free: 3.434 MB / 286.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)