Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001276/0.001276, allocations: 98.41 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001775/0.001775, allocations: 206.2 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.472/1.472, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002564/0.0002564, allocations: 11.98 kB / 306.7 MB, free: 1.238 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.1209, allocations: 51.5 MB / 358.2 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.003041/0.124, allocations: 2.034 MB / 360.2 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001271/0.1253, allocations: 0.6666 MB / 360.9 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001276/0.1254, allocations: 4 kB / 360.9 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 6.113e-05/0.1255, allocations: 35.7 kB / 360.9 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001768/0.1257, allocations: 79.75 kB / 361 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002795/0.126, allocations: 63.86 kB / 361.1 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002819/0.1262, allocations: 187.6 kB / 361.3 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002312/0.1265, allocations: 76.09 kB / 361.3 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00022/0.1267, allocations: 95.64 kB / 361.4 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001619/0.1269, allocations: 99.58 kB / 361.5 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.907e-05/0.1269, allocations: 12 kB / 361.5 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001085/0.127, allocations: 31.92 kB / 361.6 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.103e-05/0.1271, allocations: 31.84 kB / 361.6 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.318e-05/0.1272, allocations: 69.58 kB / 361.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000248/0.1274, allocations: 203.7 kB / 361.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.1274, allocations: 0 / 361.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.785e-06/0.1274, allocations: 4 kB / 361.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.701e-06/0.1274, allocations: 0 / 361.9 MB, free: 10.05 MB / 302.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.0008092/0.1283, allocations: 0.491 MB / 362.4 MB, free: 9.508 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.011e-05/0.1283, allocations: 8.031 kB / 362.4 MB, free: 9.5 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.515e-05/0.1284, allocations: 62.53 kB / 362.4 MB, free: 9.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001829/0.1286, allocations: 35.7 kB / 362.5 MB, free: 9.395 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003018/0.1289, allocations: 234.7 kB / 362.7 MB, free: 9.125 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.038e-05/0.1289, allocations: 16.44 kB / 362.7 MB, free: 9.109 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.723e-05/0.129, allocations: 27.95 kB / 362.7 MB, free: 9.082 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003515/0.1293, allocations: 187.3 kB / 362.9 MB, free: 8.891 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.219e-05/0.1294, allocations: 0 / 362.9 MB, free: 8.891 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.228e-05/0.1294, allocations: 8 kB / 362.9 MB, free: 8.883 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.057e-05/0.1294, allocations: 12 kB / 362.9 MB, free: 8.871 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000294/0.1297, allocations: 145.7 kB / 363.1 MB, free: 8.727 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.001304/0.131, allocations: 0.9336 MB / 364 MB, free: 7.684 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003132/0.1313, allocations: 162.5 kB / 364.2 MB, free: 7.516 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.762e-05/0.1314, allocations: 0 / 364.2 MB, free: 7.516 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.614e-05/0.1314, allocations: 30.56 kB / 364.2 MB, free: 7.477 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 3.156e-06/0.1314, allocations: 7.984 kB / 364.2 MB, free: 7.469 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.001287/0.1327, allocations: 429.8 kB / 364.6 MB, free: 7.023 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.095e-05/0.1328, allocations: 59.28 kB / 364.7 MB, free: 6.953 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001647/0.1329, allocations: 187 kB / 364.9 MB, free: 6.758 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001133/0.1331, allocations: 29.7 kB / 364.9 MB, free: 6.723 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000109/0.1332, allocations: 144.2 kB / 365 MB, free: 6.578 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.24e-05/0.1332, allocations: 63.11 kB / 365.1 MB, free: 6.516 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.588e-06/0.1333, allocations: 4 kB / 365.1 MB, free: 6.512 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002345/0.1335, allocations: 326.8 kB / 365.4 MB, free: 6.184 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001151/0.1336, allocations: 52.36 kB / 365.5 MB, free: 6.133 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001222/0.1337, allocations: 70.44 kB / 365.6 MB, free: 6.059 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001352/0.1339, allocations: 71.88 kB / 365.6 MB, free: 5.988 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.1339, allocations: 0 / 365.6 MB, free: 5.988 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004664/0.1344, allocations: 226.2 kB / 365.8 MB, free: 5.758 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.104e-05/0.1344, allocations: 4 kB / 365.8 MB, free: 5.754 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.824e-06/0.1344, allocations: 4 kB / 365.9 MB, free: 5.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001342/0.1358, allocations: 232.6 kB / 366.1 MB, free: 5.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001432/0.1359, allocations: 31.92 kB / 366.1 MB, free: 5.488 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000617/0.1365, allocations: 0.6148 MB / 366.7 MB, free: 4.848 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000139/0.1367, allocations: 15.92 kB / 366.7 MB, free: 4.832 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.502e-05/0.1367, allocations: 4 kB / 366.7 MB, free: 4.828 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.0001607/0.1369, allocations: 133.8 kB / 366.9 MB, free: 4.688 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.721e-05/0.1369, allocations: 15.81 kB / 366.9 MB, free: 4.672 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005074/0.1375, allocations: 238.8 kB / 367.1 MB, free: 4.434 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.672e-06/0.1375, allocations: 7.938 kB / 367.1 MB, free: 4.426 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.555e-06/0.1375, allocations: 0 / 367.1 MB, free: 4.426 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.214e-06/0.1375, allocations: 3.953 kB / 367.1 MB, free: 4.422 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004866/0.138, allocations: 285.5 kB / 367.4 MB, free: 4.094 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.138, allocations: 0 / 367.4 MB, free: 4.094 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001576/0.1382, allocations: 27.98 kB / 367.4 MB, free: 4.066 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001093/0.1393, allocations: 212.6 kB / 367.6 MB, free: 3.855 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.797e-05/0.1393, allocations: 4 kB / 367.7 MB, free: 3.852 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005048/0.1398, allocations: 0.6264 MB / 368.3 MB, free: 3.199 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.1398, allocations: 0 / 368.3 MB, free: 3.199 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005844/0.1404, allocations: 396.4 kB / 368.7 MB, free: 2.793 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.876e-05/0.1405, allocations: 100.8 kB / 368.8 MB, free: 2.676 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.217e-05/0.1405, allocations: 4 kB / 368.8 MB, free: 2.672 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001466/0.1407, allocations: 16.05 kB / 368.8 MB, free: 2.656 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.104e-05/0.1408, allocations: 15.98 kB / 368.8 MB, free: 2.641 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.286e-05/0.1408, allocations: 4 kB / 368.8 MB, free: 2.637 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000127/0.1409, allocations: 123.3 kB / 368.9 MB, free: 2.516 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1409, allocations: 3.938 kB / 368.9 MB, free: 2.512 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003299/0.1413, allocations: 59.84 kB / 369 MB, free: 2.453 MB / 302.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.001031/0.1423, allocations: 0.9302 MB / 369.9 MB, free: 1.496 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004004/0.1427, allocations: 159.3 kB / 370.1 MB, free: 1.344 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.1427, allocations: 4.125 kB / 370.1 MB, free: 1.34 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000181/0.1429, allocations: 87.89 kB / 370.2 MB, free: 1.254 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002955/0.1432, allocations: 20.17 kB / 370.2 MB, free: 1.234 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2091/0.3524, allocations: 1.5 MB / 371.7 MB, free: 19.26 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002229/0.3526, allocations: 0.7449 MB / 372.4 MB, free: 18.56 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.851e-05/0.3527, allocations: 14.73 kB / 372.4 MB, free: 18.56 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001088/0.3528, allocations: 67.45 kB / 372.5 MB, free: 18.55 MB / 302.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3529, allocations: 0.9375 kB / 372.5 MB, free: 18.55 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01896/0.3718, allocations: 4.213 MB / 376.7 MB, free: 18.29 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002664/0.3721, allocations: 211.5 kB / 376.9 MB, free: 18.05 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.852/2.224, allocations: 3.938 kB / 376.9 MB, free: 18.05 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingRectifier_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingRectifier.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat does not exist to compare? outputFormat=mat