Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample1,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample1,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009695/0.0009696, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.172/1.172, allocations: 227.2 MB / 245 MB, free: 7.582 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009052/0.0009052, allocations: 106.7 kB / 297.3 MB, free: 6.199 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002332/0.0002333, allocations: 4 kB / 358 MB, free: 9.457 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1828/0.183, allocations: 51.49 MB / 409.5 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08136/0.2644, allocations: 77.88 MB / 487.4 MB, free: 12.75 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002097/0.2647, allocations: 77.23 kB / 487.5 MB, free: 12.68 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004105/0.2688, allocations: 1.581 MB / 489 MB, free: 11.11 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.2688, allocations: 0 / 489 MB, free: 11.11 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.046e-05/0.2689, allocations: 4 kB / 489 MB, free: 11.11 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.000346/0.2692, allocations: 379 kB / 489.4 MB, free: 10.69 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.51e-05/0.2692, allocations: 16.03 kB / 489.4 MB, free: 10.67 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.249e-05/0.2693, allocations: 30.56 kB / 489.5 MB, free: 10.63 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001211/0.2694, allocations: 27.73 kB / 489.5 MB, free: 10.61 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001659/0.2696, allocations: 182.9 kB / 489.7 MB, free: 10.39 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.633e-06/0.2696, allocations: 4 kB / 489.7 MB, free: 10.38 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.298e-05/0.2696, allocations: 7.953 kB / 489.7 MB, free: 10.38 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002396/0.2699, allocations: 121 kB / 489.8 MB, free: 10.24 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.961e-06/0.2699, allocations: 0 / 489.8 MB, free: 10.24 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.204e-06/0.2699, allocations: 0 / 489.8 MB, free: 10.24 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.336e-06/0.2699, allocations: 0 / 489.8 MB, free: 10.24 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.606e-05/0.27, allocations: 27.92 kB / 489.8 MB, free: 10.21 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003103/0.2703, allocations: 269.8 kB / 490.1 MB, free: 9.895 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001759/0.2705, allocations: 146.3 kB / 490.2 MB, free: 9.715 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.38e-05/0.2705, allocations: 7.938 kB / 490.2 MB, free: 9.707 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.786e-05/0.2706, allocations: 34.62 kB / 490.3 MB, free: 9.664 MB / 362.7 MB Notification: Performance of pre-optimization done (n=4): time 1.142e-06/0.2706, allocations: 0 / 490.3 MB, free: 9.664 MB / 362.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002294/0.2708, allocations: 81.52 kB / 490.3 MB, free: 9.578 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.823e-05/0.2709, allocations: 89.23 kB / 490.4 MB, free: 9.473 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.211e-05/0.271, allocations: 124 kB / 490.6 MB, free: 9.344 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.625e-05/0.271, allocations: 25.7 kB / 490.6 MB, free: 9.312 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.072e-05/0.271, allocations: 88.12 kB / 490.7 MB, free: 9.223 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.531e-05/0.2711, allocations: 7.906 kB / 490.7 MB, free: 9.215 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.487e-06/0.2711, allocations: 0 / 490.7 MB, free: 9.215 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.698e-05/0.2712, allocations: 314.8 kB / 491 MB, free: 8.898 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.393e-05/0.2712, allocations: 11.98 kB / 491 MB, free: 8.887 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.437e-05/0.2713, allocations: 47.53 kB / 491 MB, free: 8.828 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.492e-05/0.2713, allocations: 16 kB / 491.1 MB, free: 8.812 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.2713, allocations: 0 / 491.1 MB, free: 8.812 MB / 362.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001293/0.2715, allocations: 73.56 kB / 491.1 MB, free: 8.734 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.324e-05/0.2715, allocations: 8 kB / 491.1 MB, free: 8.727 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.707e-06/0.2715, allocations: 0 / 491.1 MB, free: 8.727 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.006e-05/0.2715, allocations: 0 / 491.1 MB, free: 8.727 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.135e-05/0.2716, allocations: 8 kB / 491.1 MB, free: 8.719 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.336e-06/0.2716, allocations: 7.938 kB / 491.2 MB, free: 8.711 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.441e-05/0.2717, allocations: 16.05 kB / 491.2 MB, free: 8.695 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.306e-06/0.2717, allocations: 4 kB / 491.2 MB, free: 8.691 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (4): * Single equations (assignments): 4 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.287e-05/0.2717, allocations: 109.8 kB / 491.3 MB, free: 8.574 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.002e-05/0.2718, allocations: 57.55 kB / 491.3 MB, free: 8.512 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.89e-05/0.2719, allocations: 12.19 kB / 491.3 MB, free: 8.488 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.2719, allocations: 0 / 491.3 MB, free: 8.488 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.2719, allocations: 4 kB / 491.4 MB, free: 8.484 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.2719, allocations: 3.984 kB / 491.4 MB, free: 8.48 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001482/0.272, allocations: 165.7 kB / 491.5 MB, free: 8.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.272, allocations: 4 kB / 491.5 MB, free: 8.266 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.401e-05/0.2721, allocations: 12 kB / 491.5 MB, free: 8.254 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.712e-06/0.2721, allocations: 7.953 kB / 491.5 MB, free: 8.246 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.712e-06/0.2721, allocations: 3.938 kB / 491.5 MB, free: 8.242 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.2721, allocations: 3.984 kB / 491.5 MB, free: 8.238 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.2721, allocations: 0 / 491.5 MB, free: 8.238 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001683/0.2723, allocations: 190 kB / 491.7 MB, free: 8.027 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.34e-05/0.2724, allocations: 96.95 kB / 491.8 MB, free: 7.914 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.202e-05/0.2724, allocations: 0 / 491.8 MB, free: 7.914 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.301e-05/0.2725, allocations: 4 kB / 491.8 MB, free: 7.91 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.573e-05/0.2725, allocations: 4 kB / 491.8 MB, free: 7.906 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.446e-06/0.2725, allocations: 0 / 491.8 MB, free: 7.906 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.461e-05/0.2726, allocations: 107.2 kB / 491.9 MB, free: 7.801 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2726, allocations: 4 kB / 491.9 MB, free: 7.797 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002078/0.2728, allocations: 8 kB / 492 MB, free: 7.789 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (4): * Single equations (assignments): 4 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004375/0.2732, allocations: 0.7875 MB / 492.7 MB, free: 6.969 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001278/0.2734, allocations: 43.91 kB / 492.8 MB, free: 6.926 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.2734, allocations: 0 / 492.8 MB, free: 6.926 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.641e-05/0.2734, allocations: 8 kB / 492.8 MB, free: 6.918 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002021/0.2736, allocations: 26.56 kB / 492.8 MB, free: 6.895 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008572/0.2745, allocations: 0.955 MB / 493.8 MB, free: 5.875 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002183/0.2747, allocations: 0.6965 MB / 494.5 MB, free: 5.152 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.818e-05/0.2748, allocations: 4.375 kB / 494.5 MB, free: 5.148 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.603e-05/0.2748, allocations: 19.42 kB / 494.5 MB, free: 5.129 MB / 362.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2748, allocations: 3.938 kB / 494.5 MB, free: 5.125 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01049/0.2853, allocations: 1.308 MB / 495.8 MB, free: 3.953 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001844/0.2855, allocations: 187.4 kB / 496 MB, free: 3.715 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.438/1.723, allocations: 3.094 kB / 496 MB, free: 3.715 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Sample1_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Sample1.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1_res.mat does not exist to compare? outputFormat=mat