Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.SinCosEncoder,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_SinCosEncoder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SinCosEncoder,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_SinCosEncoder",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001101/0.001101, allocations: 180.8 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.288/1.288, allocations: 223.2 MB / 240.3 MB, free: 10.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009168/0.0009169, allocations: 85.02 kB / 291.5 MB, free: 10.71 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003236/0.0003236, allocations: 8 kB / 351.2 MB, free: 15.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.261/0.2613, allocations: 50.42 MB / 401.6 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09749/0.3588, allocations: 78.47 MB / 480 MB, free: 1.965 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002427/0.3591, allocations: 67.97 kB / 480.1 MB, free: 1.898 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01244/0.3716, allocations: 4.422 MB / 484.5 MB, free: 13.47 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.3716, allocations: 0 / 484.5 MB, free: 13.47 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.06e-05/0.3717, allocations: 8 kB / 484.5 MB, free: 13.46 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.0007588/0.3724, allocations: 0.526 MB / 485.1 MB, free: 12.89 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.719e-05/0.3725, allocations: 8.031 kB / 485.1 MB, free: 12.88 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.804e-05/0.3726, allocations: 54.55 kB / 485.1 MB, free: 12.82 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.969e-05/0.3726, allocations: 31.66 kB / 485.2 MB, free: 12.79 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003308/0.373, allocations: 266.4 kB / 485.4 MB, free: 12.48 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.791e-05/0.373, allocations: 12.44 kB / 485.4 MB, free: 12.47 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.213e-05/0.373, allocations: 20 kB / 485.5 MB, free: 12.45 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000475/0.3735, allocations: 262.7 kB / 485.7 MB, free: 12.18 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.367e-05/0.3736, allocations: 0 / 485.7 MB, free: 12.18 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.459e-05/0.3736, allocations: 11.94 kB / 485.7 MB, free: 12.16 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.697e-05/0.3736, allocations: 16.38 kB / 485.7 MB, free: 12.15 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004281/0.3741, allocations: 201.6 kB / 485.9 MB, free: 11.95 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001247/0.3753, allocations: 0.8264 MB / 486.8 MB, free: 11.06 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003519/0.3757, allocations: 186.2 kB / 486.9 MB, free: 10.88 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.904e-05/0.3758, allocations: 85.28 kB / 487 MB, free: 10.77 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.335e-05/0.3758, allocations: 42.75 kB / 487.1 MB, free: 10.72 MB / 362.7 MB Notification: Performance of pre-optimization done (n=21): time 1.603e-06/0.3758, allocations: 0 / 487.1 MB, free: 10.72 MB / 362.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006951/0.3765, allocations: 320.3 kB / 487.4 MB, free: 10.41 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.585e-05/0.3766, allocations: 55.41 kB / 487.4 MB, free: 10.34 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001714/0.3768, allocations: 188.2 kB / 487.6 MB, free: 10.15 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.35e-05/0.3768, allocations: 29.7 kB / 487.6 MB, free: 10.12 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.991e-05/0.3769, allocations: 152.2 kB / 487.8 MB, free: 9.961 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.645e-05/0.3769, allocations: 74.91 kB / 487.9 MB, free: 9.887 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.238e-05/0.377, allocations: 4 kB / 487.9 MB, free: 9.883 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001131/0.3771, allocations: 334.8 kB / 488.2 MB, free: 9.547 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001864/0.3773, allocations: 88.41 kB / 488.3 MB, free: 9.457 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001959/0.3775, allocations: 118 kB / 488.4 MB, free: 9.332 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002017/0.3777, allocations: 106.8 kB / 488.5 MB, free: 9.23 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.3777, allocations: 0 / 488.5 MB, free: 9.23 MB / 362.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004771/0.3782, allocations: 273.2 kB / 488.8 MB, free: 8.957 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.087e-05/0.3782, allocations: 8 kB / 488.8 MB, free: 8.949 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.3782, allocations: 3.938 kB / 488.8 MB, free: 8.945 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.637e-05/0.3782, allocations: 3.953 kB / 488.8 MB, free: 8.941 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002648/0.3785, allocations: 59.89 kB / 488.8 MB, free: 8.883 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.376e-06/0.3785, allocations: 4 kB / 488.9 MB, free: 8.879 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00014/0.3787, allocations: 32.67 kB / 488.9 MB, free: 8.848 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.945e-05/0.3787, allocations: 15.98 kB / 488.9 MB, free: 8.832 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.0001205/0.3788, allocations: 137.8 kB / 489 MB, free: 8.688 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.319e-05/0.3789, allocations: 19.72 kB / 489.1 MB, free: 8.668 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005713/0.3795, allocations: 291.8 kB / 489.3 MB, free: 8.375 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.304e-06/0.3795, allocations: 7.953 kB / 489.3 MB, free: 8.367 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.3795, allocations: 0 / 489.3 MB, free: 8.367 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.3795, allocations: 3.984 kB / 489.4 MB, free: 8.363 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00091/0.3804, allocations: 0.6589 MB / 490 MB, free: 7.648 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.3804, allocations: 0 / 490 MB, free: 7.648 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002684/0.3807, allocations: 59.97 kB / 490.1 MB, free: 7.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.3807, allocations: 3.953 kB / 490.1 MB, free: 7.586 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.991e-05/0.3807, allocations: 4 kB / 490.1 MB, free: 7.582 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.3808, allocations: 4 kB / 490.1 MB, free: 7.578 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3808, allocations: 0 / 490.1 MB, free: 7.578 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007239/0.3815, allocations: 492.2 kB / 490.6 MB, free: 7.082 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.53e-05/0.3816, allocations: 116.8 kB / 490.7 MB, free: 6.949 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.412e-05/0.3816, allocations: 11.95 kB / 490.7 MB, free: 6.938 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000153/0.3818, allocations: 19.98 kB / 490.7 MB, free: 6.918 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.195e-05/0.3819, allocations: 11.98 kB / 490.7 MB, free: 6.906 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.656e-05/0.3819, allocations: 11.98 kB / 490.7 MB, free: 6.895 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001264/0.382, allocations: 152.5 kB / 490.9 MB, free: 6.75 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.382, allocations: 0 / 490.9 MB, free: 6.75 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002886/0.3823, allocations: 55.84 kB / 490.9 MB, free: 6.695 MB / 362.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.001034/0.3834, allocations: 1.033 MB / 492 MB, free: 5.637 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004499/0.3838, allocations: 223.7 kB / 492.2 MB, free: 5.418 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.3838, allocations: 0 / 492.2 MB, free: 5.418 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002029/0.384, allocations: 120 kB / 492.3 MB, free: 5.301 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002197/0.3843, allocations: 12.67 kB / 492.3 MB, free: 5.289 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002484/0.3868, allocations: 2.163 MB / 494.5 MB, free: 3.062 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002875/0.3871, allocations: 0.7638 MB / 495.2 MB, free: 2.27 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001297/0.3872, allocations: 57.89 kB / 495.3 MB, free: 2.215 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001447/0.3874, allocations: 79.41 kB / 495.4 MB, free: 2.137 MB / 362.7 MB Notification: Performance of SimCode: time 3.5e-07/0.3874, allocations: 3.938 kB / 495.4 MB, free: 2.133 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01539/0.4028, allocations: 4.047 MB / 499.4 MB, free: 14.2 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001555/0.403, allocations: 175.4 kB / 499.6 MB, free: 13.95 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.735/2.138, allocations: 0 / 499.6 MB, free: 13.95 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_SinCosEncoder_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 Modelica_4_0_0_Modelica_Blocks_Examples_SinCosEncoder.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder_res.mat does not exist to compare? outputFormat=mat