Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Modulation.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.Modulation,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Modulation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Modulation,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Modulation",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001023/0.001023, 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.174/1.174, allocations: 227.2 MB / 245 MB, free: 7.492 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008632/0.0008632, allocations: 103.1 kB / 297.3 MB, free: 6.141 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001967/0.0001967, allocations: 8 kB / 358 MB, free: 9.41 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1781/0.1783, allocations: 51.48 MB / 409.5 MB, free: 26.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08108/0.2594, allocations: 77.68 MB / 487.2 MB, free: 12.81 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001797/0.2597, allocations: 68.78 kB / 487.2 MB, free: 12.74 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008223/0.2679, allocations: 2.96 MB / 490.2 MB, free: 9.785 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.704e-06/0.2679, allocations: 0 / 490.2 MB, free: 9.785 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.496e-05/0.268, allocations: 4 kB / 490.2 MB, free: 9.781 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0005304/0.2685, allocations: 482.3 kB / 490.7 MB, free: 9.262 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.2685, allocations: 12.02 kB / 490.7 MB, free: 9.25 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.252e-05/0.2686, allocations: 42.56 kB / 490.7 MB, free: 9.199 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002055/0.2688, allocations: 51.62 kB / 490.8 MB, free: 9.148 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002395/0.2691, allocations: 234.6 kB / 491 MB, free: 8.879 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.159e-05/0.2691, allocations: 8 kB / 491 MB, free: 8.871 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.93e-05/0.2691, allocations: 20 kB / 491 MB, free: 8.852 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000285/0.2694, allocations: 168.1 kB / 491.2 MB, free: 8.672 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.895e-06/0.2694, allocations: 4 kB / 491.2 MB, free: 8.668 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.728e-05/0.2695, allocations: 8 kB / 491.2 MB, free: 8.66 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.2695, allocations: 4 kB / 491.2 MB, free: 8.656 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002104/0.2697, allocations: 95.94 kB / 491.3 MB, free: 8.562 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008851/0.2706, allocations: 0.6527 MB / 492 MB, free: 7.852 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000214/0.2708, allocations: 127.8 kB / 492.1 MB, free: 7.699 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.61e-05/0.2708, allocations: 3.984 kB / 492.1 MB, free: 7.695 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.269e-05/0.2709, allocations: 46.58 kB / 492.1 MB, free: 7.641 MB / 362.7 MB Notification: Performance of pre-optimization done (n=12): time 1.242e-06/0.2709, allocations: 0 / 492.1 MB, free: 7.641 MB / 362.7 MB Notification: Performance of matching and sorting (n=12): time 0.0004563/0.2713, allocations: 185.4 kB / 492.3 MB, free: 7.453 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.704e-05/0.2714, allocations: 110.8 kB / 492.4 MB, free: 7.32 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001709/0.2716, allocations: 200.2 kB / 492.6 MB, free: 7.117 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.811e-05/0.2716, allocations: 25.7 kB / 492.6 MB, free: 7.086 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.271e-05/0.2716, allocations: 144 kB / 492.8 MB, free: 6.941 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.87e-05/0.2717, allocations: 43.36 kB / 492.8 MB, free: 6.898 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.513e-06/0.2717, allocations: 0 / 492.8 MB, free: 6.898 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000101/0.2718, allocations: 338.8 kB / 493.2 MB, free: 6.559 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001063/0.2719, allocations: 39.92 kB / 493.2 MB, free: 6.52 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001223/0.2721, allocations: 98.83 kB / 493.3 MB, free: 6.398 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001254/0.2722, allocations: 59.97 kB / 493.3 MB, free: 6.34 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.2722, allocations: 0 / 493.3 MB, free: 6.34 MB / 362.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.000324/0.2725, allocations: 189.2 kB / 493.5 MB, free: 6.148 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.347e-05/0.2725, allocations: 4.188 kB / 493.5 MB, free: 6.145 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.2726, allocations: 7.953 kB / 493.5 MB, free: 6.137 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/0.2726, allocations: 4 kB / 493.5 MB, free: 6.133 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001631/0.2728, allocations: 35.92 kB / 493.6 MB, free: 6.098 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.736e-06/0.2728, allocations: 7.984 kB / 493.6 MB, free: 6.09 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001132/0.2729, allocations: 19.84 kB / 493.6 MB, free: 6.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.299e-05/0.2729, allocations: 7.938 kB / 493.6 MB, free: 6.062 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (17): * Single equations (assignments): 17 * 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 9.674e-05/0.273, allocations: 133.8 kB / 493.7 MB, free: 5.922 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.207e-05/0.2731, allocations: 27.7 kB / 493.8 MB, free: 5.895 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003561/0.2735, allocations: 186.8 kB / 494 MB, free: 5.703 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.734e-06/0.2735, allocations: 7.953 kB / 494 MB, free: 5.695 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.2735, allocations: 0 / 494 MB, free: 5.695 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.2735, allocations: 8.562 kB / 494 MB, free: 5.688 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004035/0.2739, allocations: 265.4 kB / 494.2 MB, free: 5.379 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.2739, allocations: 0 / 494.2 MB, free: 5.379 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001909/0.2741, allocations: 47.84 kB / 494.3 MB, free: 5.332 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.489e-06/0.2741, allocations: 4 kB / 494.3 MB, free: 5.328 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.612e-05/0.2742, allocations: 4 kB / 494.3 MB, free: 5.324 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.2742, allocations: 4 kB / 494.3 MB, free: 5.32 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.2742, allocations: 3.953 kB / 494.3 MB, free: 5.316 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004932/0.2747, allocations: 0.4928 MB / 494.8 MB, free: 4.793 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6e-05/0.2747, allocations: 112.8 kB / 494.9 MB, free: 4.664 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.792e-05/0.2748, allocations: 0 / 494.9 MB, free: 4.664 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001843/0.275, allocations: 12 kB / 494.9 MB, free: 4.652 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.452e-05/0.275, allocations: 11.92 kB / 494.9 MB, free: 4.641 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.088e-05/0.275, allocations: 7.984 kB / 494.9 MB, free: 4.633 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001312/0.2752, allocations: 172.5 kB / 495.1 MB, free: 4.461 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2752, allocations: 0 / 495.1 MB, free: 4.461 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003319/0.2755, allocations: 36.25 kB / 495.1 MB, free: 4.426 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (sine.phi,sinAM.phi,cosAM.phi,sinFM.phi,cosFM.phi) * 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 (17): * Single equations (assignments): 17 * 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.0007672/0.2763, allocations: 1.179 MB / 496.3 MB, free: 3.215 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002791/0.2766, allocations: 124 kB / 496.4 MB, free: 3.094 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.2766, allocations: 0 / 496.4 MB, free: 3.094 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001339/0.2767, allocations: 75.97 kB / 496.5 MB, free: 3.02 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002196/0.277, allocations: 16.42 kB / 496.5 MB, free: 3.004 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002295/0.2793, allocations: 2.588 MB / 499.1 MB, free: 328 kB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002561/0.2795, allocations: 0.7439 MB / 499.9 MB, free: 15.55 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 7.268e-05/0.2796, allocations: 21.53 kB / 499.9 MB, free: 15.53 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.471e-05/0.2797, allocations: 67.41 kB / 499.9 MB, free: 15.46 MB / 378.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2797, allocations: 0 / 499.9 MB, free: 15.46 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01343/0.2932, allocations: 3.332 MB / 0.4915 GB, free: 12.23 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001876/0.2934, allocations: 163 kB / 0.4916 GB, free: 11.99 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.727/2.021, allocations: 0 / 0.4916 GB, free: 11.99 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.Modulation.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Modulation.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Modulation.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Modulation.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.Modulation_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_Modulation_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_Modulation.fmu > Modelica_trunk_Modelica.Blocks.Examples.Modulation.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Blocks.Examples.Modulation_res.mat does not exist to compare? outputFormat=mat