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.000894/0.000894, allocations: 100.8 kB / 17.01 MB, free: 6.109 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001064/0.001065, allocations: 194.4 kB / 17.91 MB, free: 5.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.535/1.535, allocations: 227.3 MB / 246 MB, free: 11.98 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002649/0.000265, allocations: 8 kB / 306.8 MB, free: 1.48 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1094, allocations: 51.49 MB / 358.3 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.002609/0.1121, allocations: 2.147 MB / 360.5 MB, free: 11.83 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001079/0.1132, allocations: 0.6509 MB / 361.1 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001065/0.1133, allocations: 4 kB / 361.1 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001202/0.1134, allocations: 19.83 kB / 361.1 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001108/0.1136, allocations: 59.48 kB / 361.2 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000256/0.1138, allocations: 71.86 kB / 361.3 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002565/0.1141, allocations: 250.8 kB / 361.5 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001701/0.1143, allocations: 72.52 kB / 361.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001794/0.1145, allocations: 99.62 kB / 361.7 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001486/0.1146, allocations: 99.55 kB / 361.8 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.737e-05/0.1146, allocations: 16 kB / 361.8 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.129e-05/0.1147, allocations: 27.98 kB / 361.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.87e-05/0.1148, allocations: 35.84 kB / 361.8 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.559e-05/0.1149, allocations: 69.58 kB / 361.9 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000222/0.1151, allocations: 211.6 kB / 362.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.1151, allocations: 0 / 362.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1151, allocations: 0 / 362.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.689e-06/0.1151, allocations: 0 / 362.1 MB, free: 10.14 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.0007172/0.1158, allocations: 0.5028 MB / 362.6 MB, free: 9.594 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.272e-05/0.1159, allocations: 12.02 kB / 362.6 MB, free: 9.582 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.373e-05/0.116, allocations: 58.55 kB / 362.7 MB, free: 9.516 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000154/0.1161, allocations: 35.7 kB / 362.7 MB, free: 9.48 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002457/0.1164, allocations: 226.8 kB / 362.9 MB, free: 9.219 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.015e-05/0.1164, allocations: 24.39 kB / 363 MB, free: 9.195 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.629e-05/0.1164, allocations: 16 kB / 363 MB, free: 9.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003566/0.1168, allocations: 195.2 kB / 363.2 MB, free: 8.98 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.352e-05/0.1168, allocations: 0 / 363.2 MB, free: 8.98 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.152e-05/0.1169, allocations: 4 kB / 363.2 MB, free: 8.977 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.458e-06/0.1169, allocations: 8 kB / 363.2 MB, free: 8.969 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003094/0.1172, allocations: 149.7 kB / 363.3 MB, free: 8.82 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.001291/0.1185, allocations: 0.9375 MB / 364.3 MB, free: 7.773 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002974/0.1188, allocations: 162.4 kB / 364.4 MB, free: 7.605 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002046/0.119, allocations: 100.8 kB / 364.5 MB, free: 7.504 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.823e-05/0.119, allocations: 7.969 kB / 364.5 MB, free: 7.496 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.77e-05/0.1191, allocations: 34.56 kB / 364.6 MB, free: 7.453 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.372e-06/0.1191, allocations: 0 / 364.6 MB, free: 7.453 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.001245/0.1203, allocations: 426 kB / 365 MB, free: 7.012 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.438e-05/0.1204, allocations: 63.3 kB / 365 MB, free: 6.938 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000158/0.1206, allocations: 175.2 kB / 365.2 MB, free: 6.754 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.841e-05/0.1206, allocations: 33.7 kB / 365.3 MB, free: 6.715 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.933e-05/0.1207, allocations: 140.2 kB / 365.4 MB, free: 6.574 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.884e-05/0.1207, allocations: 71.03 kB / 365.5 MB, free: 6.504 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.905e-06/0.1208, allocations: 0 / 365.5 MB, free: 6.504 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001075/0.1209, allocations: 326.8 kB / 365.8 MB, free: 6.176 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000108/0.121, allocations: 52.34 kB / 365.8 MB, free: 6.125 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000121/0.1211, allocations: 75.5 kB / 365.9 MB, free: 6.047 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001276/0.1212, allocations: 66.7 kB / 366 MB, free: 5.984 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.1213, allocations: 0 / 366 MB, free: 5.984 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004555/0.1217, allocations: 234.2 kB / 366.2 MB, free: 5.746 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/0.1217, allocations: 4 kB / 366.2 MB, free: 5.742 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.1218, allocations: 0 / 366.2 MB, free: 5.742 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001197/0.123, allocations: 224.6 kB / 366.4 MB, free: 5.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001386/0.1231, allocations: 35.97 kB / 366.5 MB, free: 5.484 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004763/0.1236, allocations: 0.6147 MB / 367.1 MB, free: 4.844 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001226/0.1237, allocations: 15.84 kB / 367.1 MB, free: 4.828 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.608e-05/0.1238, allocations: 4 kB / 367.1 MB, free: 4.824 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.0001327/0.1239, allocations: 130.9 kB / 367.2 MB, free: 4.688 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.101e-05/0.1239, allocations: 19.8 kB / 367.2 MB, free: 4.668 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004545/0.1244, allocations: 234.9 kB / 367.5 MB, free: 4.434 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.958e-06/0.1244, allocations: 0 / 367.5 MB, free: 4.434 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.1244, allocations: 3.953 kB / 367.5 MB, free: 4.43 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.1244, allocations: 0 / 367.5 MB, free: 4.43 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008935/0.1253, allocations: 0.6037 MB / 368.1 MB, free: 3.766 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.1254, allocations: 0 / 368.1 MB, free: 3.766 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001446/0.1255, allocations: 27.98 kB / 368.1 MB, free: 3.738 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001033/0.1265, allocations: 208.6 kB / 368.3 MB, free: 3.531 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.894e-05/0.1266, allocations: 12 kB / 368.3 MB, free: 3.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004379/0.127, allocations: 0.6226 MB / 368.9 MB, free: 2.871 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.127, allocations: 4 kB / 368.9 MB, free: 2.867 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007797/0.1278, allocations: 434.9 kB / 369.4 MB, free: 2.422 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.911e-05/0.1279, allocations: 96.84 kB / 369.5 MB, free: 2.309 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.208e-05/0.1279, allocations: 8 kB / 369.5 MB, free: 2.301 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001443/0.1281, allocations: 16.05 kB / 369.5 MB, free: 2.285 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.167e-05/0.1281, allocations: 11.98 kB / 369.5 MB, free: 2.273 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.352e-05/0.1282, allocations: 7.938 kB / 369.5 MB, free: 2.266 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.88e-05/0.1283, allocations: 131.2 kB / 369.6 MB, free: 2.137 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1283, allocations: 0 / 369.6 MB, free: 2.137 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003076/0.1286, allocations: 59.84 kB / 369.7 MB, free: 2.078 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.001074/0.1297, allocations: 0.9525 MB / 370.6 MB, free: 1.094 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003738/0.13, allocations: 161.8 kB / 370.8 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.1301, allocations: 0 / 370.8 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001843/0.1303, allocations: 87.89 kB / 370.9 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003616/0.1306, allocations: 24.3 kB / 370.9 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2195/0.3501, allocations: 1.36 MB / 372.3 MB, free: 19.6 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002103/0.3504, allocations: 0.7424 MB / 373 MB, free: 18.9 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.698e-05/0.3505, allocations: 11.45 kB / 373 MB, free: 18.9 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.061e-05/0.3506, allocations: 65.48 kB / 373.1 MB, free: 18.9 MB / 302.1 MB Notification: Performance of SimCode: time 1.022e-06/0.3506, allocations: 0 / 373.1 MB, free: 18.9 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0212/0.3718, allocations: 4.231 MB / 377.3 MB, free: 18.63 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002374/0.3721, allocations: 220.3 kB / 377.5 MB, free: 18.39 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.064/2.436, allocations: 0 / 377.5 MB, free: 18.39 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