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.001141/0.001141, allocations: 94.11 kB / 16.3 MB, free: 5.996 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.001449/0.001449, allocations: 179.5 kB / 17.2 MB, free: 5.914 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.631/1.631, allocations: 223.2 MB / 241.1 MB, free: 5.465 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002596/0.0002596, allocations: 6.562 kB / 300.8 MB, free: 5.988 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.1184, allocations: 50.42 MB / 351.2 MB, free: 11.64 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.002665/0.1211, allocations: 2.027 MB / 353.3 MB, free: 9.602 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001116/0.1223, allocations: 0.6355 MB / 353.9 MB, free: 8.961 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001128/0.1224, allocations: 7.938 kB / 353.9 MB, free: 8.953 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.365e-05/0.1225, allocations: 23.83 kB / 353.9 MB, free: 8.93 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001691/0.1226, allocations: 87.73 kB / 354 MB, free: 8.844 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002351/0.1229, allocations: 59.88 kB / 354.1 MB, free: 8.785 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000232/0.1231, allocations: 191.6 kB / 354.3 MB, free: 8.598 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001612/0.1233, allocations: 60.64 kB / 354.3 MB, free: 8.531 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001392/0.1234, allocations: 91.72 kB / 354.4 MB, free: 8.441 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001452/0.1236, allocations: 103.5 kB / 354.5 MB, free: 8.34 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.514e-05/0.1236, allocations: 12 kB / 354.5 MB, free: 8.328 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.184e-05/0.1237, allocations: 27.98 kB / 354.5 MB, free: 8.301 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.469e-05/0.1238, allocations: 35.83 kB / 354.6 MB, free: 8.266 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.808e-05/0.1239, allocations: 69.58 kB / 354.6 MB, free: 8.191 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002169/0.1241, allocations: 195.5 kB / 354.8 MB, free: 8 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.174e-06/0.1241, allocations: 0 / 354.8 MB, free: 8 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1241, allocations: 4 kB / 354.8 MB, free: 7.996 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.668e-06/0.1241, allocations: 0 / 354.8 MB, free: 7.996 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.0006915/0.1248, allocations: 0.4949 MB / 355.3 MB, free: 7.453 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/0.1249, allocations: 12.03 kB / 355.3 MB, free: 7.441 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.387e-05/0.1249, allocations: 58.44 kB / 355.4 MB, free: 7.375 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.795e-05/0.125, allocations: 27.72 kB / 355.4 MB, free: 7.348 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002454/0.1252, allocations: 226.7 kB / 355.6 MB, free: 7.086 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.876e-05/0.1253, allocations: 20.44 kB / 355.7 MB, free: 7.066 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.893e-05/0.1253, allocations: 20 kB / 355.7 MB, free: 7.047 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003416/0.1256, allocations: 187.3 kB / 355.9 MB, free: 6.859 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.117e-05/0.1257, allocations: 0 / 355.9 MB, free: 6.859 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.46e-05/0.1257, allocations: 12 kB / 355.9 MB, free: 6.848 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.748e-06/0.1257, allocations: 7.953 kB / 355.9 MB, free: 6.84 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002922/0.126, allocations: 153.6 kB / 356 MB, free: 6.691 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.00134/0.1274, allocations: 0.9336 MB / 357 MB, free: 5.648 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002734/0.1276, allocations: 166.5 kB / 357.1 MB, free: 5.477 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.149e-05/0.1277, allocations: 8.016 kB / 357.1 MB, free: 5.469 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.087e-05/0.1277, allocations: 38.5 kB / 357.2 MB, free: 5.422 MB / 286.1 MB Notification: Performance of pre-optimization done (n=17): time 1.192e-06/0.1277, allocations: 0 / 357.2 MB, free: 5.422 MB / 286.1 MB Notification: Performance of matching and sorting (n=17): time 0.001171/0.1289, allocations: 425.6 kB / 357.6 MB, free: 4.98 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.487e-05/0.1289, allocations: 59.36 kB / 357.7 MB, free: 4.91 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001738/0.1291, allocations: 171.2 kB / 357.8 MB, free: 4.73 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.805e-05/0.1292, allocations: 33.7 kB / 357.9 MB, free: 4.691 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001245/0.1293, allocations: 148.1 kB / 358 MB, free: 4.543 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.237e-05/0.1293, allocations: 59.11 kB / 358.1 MB, free: 4.484 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.178e-05/0.1294, allocations: 4 kB / 358.1 MB, free: 4.48 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.1295, allocations: 322.8 kB / 358.4 MB, free: 4.156 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001184/0.1296, allocations: 60.34 kB / 358.4 MB, free: 4.098 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001317/0.1298, allocations: 71.94 kB / 358.5 MB, free: 4.023 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001266/0.1299, allocations: 59.98 kB / 358.6 MB, free: 3.965 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.1299, allocations: 0 / 358.6 MB, free: 3.965 MB / 286.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0005085/0.1304, allocations: 241.1 kB / 358.8 MB, free: 3.723 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/0.1305, allocations: 7.938 kB / 358.8 MB, free: 3.715 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.1305, allocations: 0 / 358.8 MB, free: 3.715 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00139/0.1319, allocations: 232.6 kB / 359 MB, free: 3.484 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001434/0.132, allocations: 27.98 kB / 359.1 MB, free: 3.457 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005217/0.1326, allocations: 0.6031 MB / 359.7 MB, free: 2.828 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001383/0.1327, allocations: 19.88 kB / 359.7 MB, free: 2.809 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.853e-05/0.1328, allocations: 7.984 kB / 359.7 MB, free: 2.801 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 (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.0001508/0.1329, allocations: 133.9 kB / 359.8 MB, free: 2.66 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.083e-05/0.133, allocations: 15.81 kB / 359.8 MB, free: 2.645 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004827/0.1334, allocations: 232.1 kB / 360.1 MB, free: 2.41 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.588e-06/0.1335, allocations: 7.984 kB / 360.1 MB, free: 2.402 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.1335, allocations: 0 / 360.1 MB, free: 2.402 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.638e-06/0.1335, allocations: 7.938 kB / 360.1 MB, free: 2.395 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003778/0.1339, allocations: 293.4 kB / 360.4 MB, free: 2.059 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.1339, allocations: 0 / 360.4 MB, free: 2.059 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001593/0.1341, allocations: 31.97 kB / 360.4 MB, free: 2.027 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001085/0.1351, allocations: 212.6 kB / 360.6 MB, free: 1.816 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.683e-05/0.1352, allocations: 4 kB / 360.6 MB, free: 1.812 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004529/0.1356, allocations: 0.6264 MB / 361.2 MB, free: 1.16 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1356, allocations: 0 / 361.2 MB, free: 1.16 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005686/0.1362, allocations: 390.2 kB / 361.6 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.477e-05/0.1363, allocations: 100.9 kB / 361.7 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.192e-05/0.1363, allocations: 4 kB / 361.7 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001457/0.1365, allocations: 12 kB / 361.7 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.374e-05/0.1366, allocations: 15.88 kB / 361.7 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.639e-05/0.1366, allocations: 7.984 kB / 361.8 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001206/0.1367, allocations: 127.2 kB / 361.9 MB, free: 492 kB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1367, allocations: 4.062 kB / 361.9 MB, free: 488 kB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003124/0.137, allocations: 59.75 kB / 361.9 MB, free: 428 kB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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.001009/0.138, allocations: 0.9325 MB / 362.9 MB, free: 15.45 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004211/0.1385, allocations: 147.9 kB / 363 MB, free: 15.31 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.1385, allocations: 0 / 363 MB, free: 15.31 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001823/0.1387, allocations: 87.89 kB / 363.1 MB, free: 15.22 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003476/0.139, allocations: 32.34 kB / 363.1 MB, free: 15.19 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002162/0.1412, allocations: 1.509 MB / 364.6 MB, free: 13.63 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003105/0.1415, allocations: 0.7441 MB / 365.4 MB, free: 12.86 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.49e-05/0.1416, allocations: 9.547 kB / 365.4 MB, free: 12.86 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.246e-05/0.1417, allocations: 59.42 kB / 365.5 MB, free: 12.8 MB / 302.1 MB Notification: Performance of SimCode: time 7.61e-07/0.1417, allocations: 0 / 365.5 MB, free: 12.8 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01581/0.1575, allocations: 4.212 MB / 369.7 MB, free: 8.773 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00017/0.1577, allocations: 214.6 kB / 369.9 MB, free: 8.531 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.931/2.089, allocations: 0 / 369.9 MB, free: 8.531 MB / 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