Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.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.SinCosEncoder,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_SinCosEncoder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SinCosEncoder,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_SinCosEncoder",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001046/0.001046, allocations: 197.5 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.166/1.166, allocations: 227.2 MB / 245 MB, free: 7.469 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008655/0.0008654, allocations: 102.2 kB / 297.3 MB, free: 6.16 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002091/0.0002092, allocations: 4 kB / 358 MB, free: 9.418 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1716/0.1718, allocations: 51.48 MB / 409.5 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07924/0.2511, allocations: 79.29 MB / 488.8 MB, free: 11.31 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001781/0.2513, allocations: 71.97 kB / 488.8 MB, free: 11.24 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01201/0.2633, allocations: 4.532 MB / 493.4 MB, free: 6.703 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2633, allocations: 0 / 493.4 MB, free: 6.703 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.632e-05/0.2634, allocations: 7.938 kB / 493.4 MB, free: 6.695 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.000616/0.264, allocations: 0.5377 MB / 493.9 MB, free: 6.109 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.371e-05/0.264, allocations: 8.031 kB / 493.9 MB, free: 6.102 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.596e-05/0.2641, allocations: 62.48 kB / 494 MB, free: 6.031 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.533e-05/0.2642, allocations: 27.72 kB / 494 MB, free: 6.004 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002527/0.2645, allocations: 250.5 kB / 494.3 MB, free: 5.719 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.059e-05/0.2645, allocations: 24.38 kB / 494.3 MB, free: 5.695 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.838e-05/0.2645, allocations: 27.98 kB / 494.3 MB, free: 5.668 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004049/0.2649, allocations: 258.6 kB / 494.6 MB, free: 5.398 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/0.265, allocations: 3.906 kB / 494.6 MB, free: 5.395 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.923e-05/0.265, allocations: 8 kB / 494.6 MB, free: 5.387 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.318e-05/0.265, allocations: 20.39 kB / 494.6 MB, free: 5.367 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003947/0.2654, allocations: 201.5 kB / 494.8 MB, free: 5.172 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001027/0.2665, allocations: 0.8266 MB / 495.6 MB, free: 4.281 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003109/0.2668, allocations: 187 kB / 495.8 MB, free: 4.09 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.509e-05/0.2669, allocations: 85.28 kB / 495.9 MB, free: 3.988 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.881e-05/0.2669, allocations: 30.75 kB / 495.9 MB, free: 3.949 MB / 362.7 MB Notification: Performance of pre-optimization done (n=21): time 1.222e-06/0.2669, allocations: 0 / 495.9 MB, free: 3.949 MB / 362.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006274/0.2675, allocations: 319.6 kB / 496.2 MB, free: 3.637 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.823e-05/0.2676, allocations: 51.41 kB / 496.3 MB, free: 3.574 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001465/0.2677, allocations: 196.2 kB / 496.5 MB, free: 3.375 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.035e-05/0.2678, allocations: 29.7 kB / 496.5 MB, free: 3.34 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.652e-05/0.2678, allocations: 148.3 kB / 496.6 MB, free: 3.191 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.165e-05/0.2679, allocations: 82.83 kB / 496.7 MB, free: 3.109 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.154e-05/0.2679, allocations: 4 kB / 496.7 MB, free: 3.105 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.589e-05/0.268, allocations: 334.8 kB / 497.1 MB, free: 2.77 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001776/0.2682, allocations: 88.34 kB / 497.1 MB, free: 2.68 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001829/0.2684, allocations: 125.2 kB / 497.3 MB, free: 2.547 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001912/0.2686, allocations: 102.1 kB / 497.4 MB, free: 2.449 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.2686, allocations: 0 / 497.4 MB, free: 2.449 MB / 362.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004586/0.2691, allocations: 277.2 kB / 497.6 MB, free: 2.172 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.142e-05/0.2691, allocations: 4 kB / 497.6 MB, free: 2.168 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.947e-06/0.2691, allocations: 0 / 497.6 MB, free: 2.168 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.113e-05/0.2691, allocations: 4 kB / 497.6 MB, free: 2.164 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002587/0.2694, allocations: 59.89 kB / 497.7 MB, free: 2.105 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.611e-06/0.2694, allocations: 0 / 497.7 MB, free: 2.105 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001366/0.2695, allocations: 39.81 kB / 497.7 MB, free: 2.066 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.551e-05/0.2695, allocations: 8 kB / 497.7 MB, free: 2.059 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: 1 (integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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 0.0001095/0.2697, allocations: 137.8 kB / 497.9 MB, free: 1.914 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.341e-05/0.2697, allocations: 27.67 kB / 497.9 MB, free: 1.887 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005213/0.2702, allocations: 295.7 kB / 498.2 MB, free: 1.59 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.2702, allocations: 0 / 498.2 MB, free: 1.59 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.2703, allocations: 7.984 kB / 498.2 MB, free: 1.582 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.2703, allocations: 64 / 498.2 MB, free: 1.582 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008431/0.2711, allocations: 0.6623 MB / 498.9 MB, free: 0.8633 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.2711, allocations: 0 / 498.9 MB, free: 0.8633 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002608/0.2714, allocations: 55.91 kB / 498.9 MB, free: 0.8086 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.2714, allocations: 3.938 kB / 498.9 MB, free: 0.8047 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.94e-05/0.2714, allocations: 8 kB / 498.9 MB, free: 0.7969 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.2714, allocations: 0 / 498.9 MB, free: 0.7969 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.2714, allocations: 0 / 498.9 MB, free: 0.7969 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006587/0.2721, allocations: 486.9 kB / 499.4 MB, free: 312 kB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.267e-05/0.2722, allocations: 124.8 kB / 499.5 MB, free: 168 kB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.797e-05/0.2722, allocations: 4 kB / 499.5 MB, free: 164 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001511/0.2724, allocations: 15.98 kB / 499.6 MB, free: 148 kB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.401e-05/0.2725, allocations: 15.97 kB / 499.6 MB, free: 132 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.306e-05/0.2725, allocations: 4 kB / 499.6 MB, free: 128 kB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001159/0.2726, allocations: 160.4 kB / 499.7 MB, free: 15.96 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2726, allocations: 0 / 499.7 MB, free: 15.96 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002771/0.2729, allocations: 67.83 kB / 499.8 MB, free: 15.9 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (cosB.phi,cosBminus.phi,sinA.phi,sinAminus.phi,integrator.y) * 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 (26): * Single equations (assignments): 26 * 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.0009063/0.2738, allocations: 1.025 MB / 0.4891 GB, free: 14.85 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000414/0.2742, allocations: 222.6 kB / 0.4893 GB, free: 14.63 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.2742, allocations: 4.125 kB / 0.4893 GB, free: 14.63 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001923/0.2744, allocations: 115.8 kB / 0.4894 GB, free: 14.52 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001993/0.2746, allocations: 20.67 kB / 0.4894 GB, free: 14.5 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002212/0.2769, allocations: 2.158 MB / 0.4915 GB, free: 12.27 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002362/0.2771, allocations: 0.7755 MB / 0.4923 GB, free: 11.47 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001198/0.2772, allocations: 45.91 kB / 0.4923 GB, free: 11.42 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001126/0.2774, allocations: 83.39 kB / 0.4924 GB, free: 11.34 MB / 378.7 MB Notification: Performance of SimCode: time 2.41e-07/0.2774, allocations: 3.938 kB / 0.4924 GB, free: 11.34 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01414/0.2915, allocations: 4.038 MB / 0.4964 GB, free: 7.402 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001397/0.2917, allocations: 166.5 kB / 0.4965 GB, free: 7.16 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.787/2.079, allocations: 0 / 0.4965 GB, free: 7.16 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_SinCosEncoder_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 Modelica_trunk_Modelica_Blocks_Examples_SinCosEncoder.fmu > Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder_res.mat does not exist to compare? outputFormat=mat