Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008531/0.0008532, allocations: 89.66 kB / 16.31 MB, free: 6.457 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.0009397/0.00094, allocations: 180.6 kB / 17.21 MB, free: 6.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.454/1.454, allocations: 223.2 MB / 241.2 MB, free: 356 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004042/0.0004044, allocations: 8.75 kB / 300.9 MB, free: 6.359 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1413/0.1418, allocations: 50.42 MB / 351.3 MB, free: 3.93 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.003425/0.1453, allocations: 2.118 MB / 353.4 MB, free: 1.797 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001413/0.1467, allocations: 0.6197 MB / 354.1 MB, free: 1.172 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002583/0.147, allocations: 7.938 kB / 354.1 MB, free: 1.164 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002128/0.1472, allocations: 27.83 kB / 354.1 MB, free: 1.137 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002727/0.1475, allocations: 59.47 kB / 354.2 MB, free: 1.078 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000424/0.148, allocations: 67.86 kB / 354.2 MB, free: 1.012 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005628/0.1485, allocations: 258.7 kB / 354.5 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002886/0.1489, allocations: 68.64 kB / 354.5 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000303/0.1492, allocations: 91.64 kB / 354.6 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002258/0.1494, allocations: 99.55 kB / 354.7 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.073e-05/0.1495, allocations: 12 kB / 354.7 MB, free: 496 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001079/0.1496, allocations: 23.98 kB / 354.8 MB, free: 472 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.8e-05/0.1497, allocations: 47.83 kB / 354.8 MB, free: 424 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.185e-05/0.1498, allocations: 65.58 kB / 354.9 MB, free: 352 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000315/0.1501, allocations: 203.7 kB / 355.1 MB, free: 148 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.1501, allocations: 0 / 355.1 MB, free: 148 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.1501, allocations: 0 / 355.1 MB, free: 148 kB / 286.1 MB Notification: Performance of Transformations before backend: time 6.432e-06/0.1501, allocations: 0 / 355.1 MB, free: 148 kB / 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.001102/0.1512, allocations: 0.4989 MB / 355.6 MB, free: 15.6 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.301e-05/0.1513, allocations: 12.03 kB / 355.6 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001036/0.1514, allocations: 54.5 kB / 355.6 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.094e-05/0.1515, allocations: 27.72 kB / 355.7 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00043/0.152, allocations: 226.7 kB / 355.9 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.393e-05/0.152, allocations: 12.44 kB / 355.9 MB, free: 15.22 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.37e-05/0.1521, allocations: 20 kB / 355.9 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005556/0.1526, allocations: 187.3 kB / 356.1 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.759e-05/0.1527, allocations: 4 kB / 356.1 MB, free: 15.01 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.706e-05/0.1527, allocations: 8 kB / 356.1 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.408e-05/0.1527, allocations: 11.89 kB / 356.1 MB, free: 14.99 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004711/0.1532, allocations: 153.7 kB / 356.3 MB, free: 14.84 MB / 302.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.002039/0.1553, allocations: 0.9414 MB / 357.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000454/0.1557, allocations: 158.5 kB / 357.4 MB, free: 13.63 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002917/0.1561, allocations: 100.8 kB / 357.5 MB, free: 13.53 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.354e-05/0.1561, allocations: 11.94 kB / 357.5 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.855e-05/0.1561, allocations: 34.55 kB / 357.5 MB, free: 13.47 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 2.925e-06/0.1562, allocations: 0 / 357.5 MB, free: 13.47 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.00183/0.158, allocations: 435.3 kB / 357.9 MB, free: 13.02 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.554e-05/0.1581, allocations: 51.41 kB / 358 MB, free: 12.96 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002423/0.1583, allocations: 179.2 kB / 358.2 MB, free: 12.77 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.043e-05/0.1584, allocations: 25.7 kB / 358.2 MB, free: 12.74 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001344/0.1585, allocations: 148.1 kB / 358.3 MB, free: 12.59 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.942e-05/0.1586, allocations: 67.08 kB / 358.4 MB, free: 12.52 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.424e-05/0.1586, allocations: 4 kB / 358.4 MB, free: 12.52 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001937/0.1588, allocations: 326.8 kB / 358.7 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001745/0.159, allocations: 56.34 kB / 358.8 MB, free: 12.14 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001959/0.1592, allocations: 73.44 kB / 358.9 MB, free: 12.06 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002133/0.1594, allocations: 58.75 kB / 358.9 MB, free: 12.01 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.1595, allocations: 0 / 358.9 MB, free: 12.01 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0006979/0.1602, allocations: 242.1 kB / 359.1 MB, free: 11.76 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.333e-05/0.1602, allocations: 4 kB / 359.2 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.672e-06/0.1602, allocations: 0 / 359.2 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001729/0.162, allocations: 220.6 kB / 359.4 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002073/0.1622, allocations: 39.97 kB / 359.4 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000719/0.1629, allocations: 0.603 MB / 360 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001821/0.1631, allocations: 15.88 kB / 360 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.299e-05/0.1631, allocations: 8.062 kB / 360 MB, free: 10.85 MB / 302.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 (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.0002349/0.1634, allocations: 133.8 kB / 360.2 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.448e-05/0.1635, allocations: 15.81 kB / 360.2 MB, free: 10.69 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006898/0.1642, allocations: 232.2 kB / 360.4 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.1642, allocations: 4 kB / 360.4 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-06/0.1642, allocations: 8 kB / 360.4 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.552e-06/0.1642, allocations: 0 / 360.4 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00136/0.1656, allocations: 0.5883 MB / 361 MB, free: 9.797 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.442e-06/0.1656, allocations: 3.984 kB / 361 MB, free: 9.793 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002341/0.1659, allocations: 39.95 kB / 361.1 MB, free: 9.754 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001405/0.1673, allocations: 204.6 kB / 361.2 MB, free: 9.551 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.542e-05/0.1673, allocations: 7.953 kB / 361.3 MB, free: 9.543 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006417/0.168, allocations: 0.6341 MB / 361.9 MB, free: 8.883 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/0.168, allocations: 4.031 kB / 361.9 MB, free: 8.879 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001128/0.1691, allocations: 431.7 kB / 362.3 MB, free: 8.438 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.03e-05/0.1693, allocations: 92.86 kB / 362.4 MB, free: 8.328 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.93e-05/0.1693, allocations: 4 kB / 362.4 MB, free: 8.324 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000214/0.1695, allocations: 11.98 kB / 362.4 MB, free: 8.312 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.915e-05/0.1696, allocations: 19.88 kB / 362.4 MB, free: 8.293 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.964e-05/0.1696, allocations: 8 kB / 362.5 MB, free: 8.285 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001577/0.1698, allocations: 127.3 kB / 362.6 MB, free: 8.16 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1698, allocations: 0 / 362.6 MB, free: 8.16 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005099/0.1703, allocations: 59.83 kB / 362.6 MB, free: 8.102 MB / 302.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 (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.00161/0.172, allocations: 0.9602 MB / 363.6 MB, free: 7.105 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005891/0.1726, allocations: 155.8 kB / 363.7 MB, free: 6.953 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.252e-06/0.1726, allocations: 4 kB / 363.7 MB, free: 6.949 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002707/0.1729, allocations: 83.91 kB / 363.8 MB, free: 6.867 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005702/0.1735, allocations: 23.44 kB / 363.9 MB, free: 6.848 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003349/0.1768, allocations: 1.368 MB / 365.2 MB, free: 5.426 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004417/0.1773, allocations: 0.7363 MB / 366 MB, free: 4.664 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001274/0.1774, allocations: 17.55 kB / 366 MB, free: 4.648 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001374/0.1776, allocations: 51.42 kB / 366 MB, free: 4.598 MB / 302.1 MB Notification: Performance of SimCode: time 1.262e-06/0.1776, allocations: 4 kB / 366 MB, free: 4.594 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02682/0.2044, allocations: 4.23 MB / 370.3 MB, free: 0.5547 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003315/0.2048, allocations: 222.7 kB / 370.5 MB, free: 320 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.974/2.179, allocations: 2.672 kB / 370.5 MB, free: 320 kB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingRectifier_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingRectifier.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat does not exist to compare? outputFormat=mat