Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.CompareSincExpSine.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.Blocks.Examples.CompareSincExpSine,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_CompareSincExpSine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.CompareSincExpSine,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_CompareSincExpSine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009537/0.0009537, allocations: 197.7 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.223/1.223, allocations: 227.2 MB / 245 MB, free: 5.91 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009313/0.0009313, allocations: 101 kB / 297.3 MB, free: 5.961 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002198/0.0002198, allocations: 4 kB / 358 MB, free: 9.227 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2099/0.2101, allocations: 51.49 MB / 409.5 MB, free: 26.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08638/0.2966, allocations: 77.03 MB / 486.5 MB, free: 13.55 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002218/0.2968, allocations: 63.97 kB / 486.6 MB, free: 13.49 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004906/0.3018, allocations: 1.656 MB / 488.2 MB, free: 11.84 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.3018, allocations: 7.938 kB / 488.3 MB, free: 11.83 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.041e-06/0.3018, allocations: 0 / 488.3 MB, free: 11.83 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004304/0.3022, allocations: 399.1 kB / 488.6 MB, free: 11.39 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.3023, allocations: 8.031 kB / 488.7 MB, free: 11.39 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.03e-05/0.3023, allocations: 30.56 kB / 488.7 MB, free: 11.35 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002665/0.3026, allocations: 43.88 kB / 488.7 MB, free: 11.3 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.897e-05/0.3027, allocations: 173.8 kB / 488.9 MB, free: 11.1 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.44e-05/0.3027, allocations: 7.953 kB / 488.9 MB, free: 11.09 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.254e-05/0.3027, allocations: 0 / 488.9 MB, free: 11.09 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002302/0.303, allocations: 92.22 kB / 489 MB, free: 10.98 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.303, allocations: 7.938 kB / 489 MB, free: 10.98 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.023e-05/0.303, allocations: 0 / 489 MB, free: 10.98 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.887e-06/0.303, allocations: 0 / 489 MB, free: 10.98 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002487/0.3033, allocations: 75.94 kB / 489.1 MB, free: 10.9 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001727/0.3035, allocations: 191.4 kB / 489.3 MB, free: 10.66 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002442/0.3037, allocations: 115.7 kB / 489.4 MB, free: 10.52 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.669e-05/0.3037, allocations: 4 kB / 489.4 MB, free: 10.52 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.318e-05/0.3038, allocations: 42.48 kB / 489.4 MB, free: 10.46 MB / 362.7 MB Notification: Performance of pre-optimization done (n=4): time 1.032e-06/0.3038, allocations: 64 / 489.4 MB, free: 10.46 MB / 362.7 MB Notification: Performance of matching and sorting (n=4): time 0.0004999/0.3043, allocations: 161.6 kB / 489.6 MB, free: 10.3 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.797e-05/0.3044, allocations: 107.1 kB / 489.7 MB, free: 10.17 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.554e-05/0.3044, allocations: 113.3 kB / 489.8 MB, free: 10.05 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.344e-05/0.3045, allocations: 25.7 kB / 489.8 MB, free: 10.02 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.675e-05/0.3045, allocations: 96.08 kB / 489.9 MB, free: 9.922 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.853e-05/0.3045, allocations: 15.8 kB / 489.9 MB, free: 9.906 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.462e-06/0.3046, allocations: 4 kB / 489.9 MB, free: 9.902 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.62e-05/0.3046, allocations: 314.8 kB / 490.2 MB, free: 9.586 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001327/0.3048, allocations: 43.91 kB / 490.3 MB, free: 9.543 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001301/0.3049, allocations: 58.53 kB / 490.3 MB, free: 9.477 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001569/0.3051, allocations: 39.97 kB / 490.4 MB, free: 9.438 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3051, allocations: 0 / 490.4 MB, free: 9.438 MB / 362.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0003165/0.3054, allocations: 133.4 kB / 490.5 MB, free: 9.301 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.03e-05/0.3055, allocations: 8 kB / 490.5 MB, free: 9.293 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.3055, allocations: 96 / 490.5 MB, free: 9.293 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.532e-05/0.3055, allocations: 12.08 kB / 490.5 MB, free: 9.281 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001447/0.3056, allocations: 19.98 kB / 490.5 MB, free: 9.262 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.21e-06/0.3057, allocations: 3.938 kB / 490.6 MB, free: 9.258 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.687e-05/0.3058, allocations: 15.98 kB / 490.6 MB, free: 9.242 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.099e-05/0.3058, allocations: 7.984 kB / 490.6 MB, free: 9.234 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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.979e-05/0.3059, allocations: 121.7 kB / 490.7 MB, free: 9.105 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.735e-05/0.3059, allocations: 11.86 kB / 490.7 MB, free: 9.094 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.771e-05/0.3059, allocations: 11.88 kB / 490.7 MB, free: 9.082 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.3059, allocations: 0 / 490.7 MB, free: 9.082 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.3059, allocations: 4 kB / 490.7 MB, free: 9.078 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.3059, allocations: 0 / 490.7 MB, free: 9.078 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001189/0.3061, allocations: 177.6 kB / 490.9 MB, free: 8.855 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.3061, allocations: 4 kB / 490.9 MB, free: 8.852 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001223/0.3062, allocations: 19.98 kB / 490.9 MB, free: 8.832 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.3062, allocations: 4 kB / 490.9 MB, free: 8.828 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.409e-05/0.3062, allocations: 7.938 kB / 490.9 MB, free: 8.82 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.3062, allocations: 4 kB / 490.9 MB, free: 8.816 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.3063, allocations: 0 / 490.9 MB, free: 8.816 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000359/0.3066, allocations: 186 kB / 491.1 MB, free: 8.598 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.181e-05/0.3067, allocations: 81.02 kB / 491.2 MB, free: 8.5 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.776e-05/0.3067, allocations: 8 kB / 491.2 MB, free: 8.492 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001006/0.3068, allocations: 15.98 kB / 491.2 MB, free: 8.477 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.23e-05/0.3068, allocations: 7.984 kB / 491.2 MB, free: 8.469 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.133e-06/0.3069, allocations: 4 kB / 491.2 MB, free: 8.465 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.865e-05/0.3069, allocations: 98.36 kB / 491.3 MB, free: 8.371 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3069, allocations: 0 / 491.3 MB, free: 8.371 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001953/0.3071, allocations: 12 kB / 491.3 MB, free: 8.359 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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.0006231/0.3077, allocations: 0.8564 MB / 492.2 MB, free: 7.457 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003033/0.3081, allocations: 91.86 kB / 492.3 MB, free: 7.367 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.3081, allocations: 0 / 492.3 MB, free: 7.367 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001442/0.3082, allocations: 52.09 kB / 492.3 MB, free: 7.316 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001182/0.3084, allocations: 4 kB / 492.3 MB, free: 7.312 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006041/0.309, allocations: 262.1 kB / 492.6 MB, free: 7.008 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002219/0.3092, allocations: 0.6887 MB / 493.3 MB, free: 6.293 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.041e-05/0.3093, allocations: 12 kB / 493.3 MB, free: 6.281 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.871e-05/0.3093, allocations: 19.42 kB / 493.3 MB, free: 6.262 MB / 362.7 MB Notification: Performance of SimCode: time 3.01e-07/0.3093, allocations: 0 / 493.3 MB, free: 6.262 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01093/0.3203, allocations: 1.405 MB / 494.7 MB, free: 4.973 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001794/0.3205, allocations: 179.7 kB / 494.9 MB, free: 4.727 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.563/1.883, allocations: 0 / 494.9 MB, free: 4.727 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.CompareSincExpSine.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.CompareSincExpSine.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.CompareSincExpSine.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.CompareSincExpSine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.CompareSincExpSine_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_CompareSincExpSine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_CompareSincExpSine.fmu > Modelica_trunk_Modelica.Blocks.Examples.CompareSincExpSine.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Blocks.Examples.CompareSincExpSine_res.mat does not exist to compare? outputFormat=mat