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.001322/0.001322, allocations: 175.5 kB / 13.63 MB, free: 1.684 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.474/1.474, allocations: 221.3 MB / 235.5 MB, free: 2.922 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008397/0.0008397, allocations: 102 kB / 286.5 MB, free: 188 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.015e-05/3.019e-05, allocations: 0 / 343.9 MB, free: 4.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1151/0.1152, allocations: 50.42 MB / 394.3 MB, free: 1.766 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3465/0.4617, allocations: 78.4 MB / 472.7 MB, free: 9.094 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000232/0.462, allocations: 67.97 kB / 472.8 MB, free: 9.027 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0129/0.4749, allocations: 4.409 MB / 477.2 MB, free: 4.617 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.475, allocations: 0 / 477.2 MB, free: 4.617 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.93e-05/0.475, allocations: 8 kB / 477.2 MB, free: 4.609 MB / 346.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.0006786/0.4757, allocations: 0.5067 MB / 477.7 MB, free: 4.055 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.386e-05/0.4757, allocations: 15.97 kB / 477.7 MB, free: 4.039 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.53e-05/0.4758, allocations: 54.55 kB / 477.8 MB, free: 3.977 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.909e-05/0.4759, allocations: 23.72 kB / 477.8 MB, free: 3.953 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000307/0.4762, allocations: 258.5 kB / 478.1 MB, free: 3.66 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.95e-05/0.4762, allocations: 16.44 kB / 478.1 MB, free: 3.645 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.451e-05/0.4763, allocations: 20 kB / 478.1 MB, free: 3.625 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003762/0.4767, allocations: 234.7 kB / 478.3 MB, free: 3.383 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.436e-05/0.4767, allocations: 4 kB / 478.3 MB, free: 3.379 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.397e-05/0.4767, allocations: 8 kB / 478.3 MB, free: 3.371 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.819e-05/0.4768, allocations: 16.42 kB / 478.4 MB, free: 3.355 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002812/0.477, allocations: 161.6 kB / 478.5 MB, free: 3.199 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001206/0.4783, allocations: 0.8265 MB / 479.3 MB, free: 2.309 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002757/0.4785, allocations: 170.9 kB / 479.5 MB, free: 2.133 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001307/0.4787, allocations: 89.22 kB / 479.6 MB, free: 2.043 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000104/0.4788, allocations: 85.28 kB / 479.7 MB, free: 1.941 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.891e-05/0.4788, allocations: 42.7 kB / 479.7 MB, free: 1.891 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 1.422e-06/0.4788, allocations: 0 / 479.7 MB, free: 1.891 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.0003843/0.4792, allocations: 207 kB / 479.9 MB, free: 1.688 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.751e-05/0.4793, allocations: 51.41 kB / 480 MB, free: 1.625 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001806/0.4795, allocations: 188.9 kB / 480.2 MB, free: 1.434 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.213e-05/0.4795, allocations: 29.7 kB / 480.2 MB, free: 1.398 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.86e-05/0.4796, allocations: 144.3 kB / 480.3 MB, free: 1.25 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.779e-05/0.4797, allocations: 78.84 kB / 480.4 MB, free: 1.172 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.178e-05/0.4797, allocations: 8 kB / 480.4 MB, free: 1.164 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.4798, allocations: 334.8 kB / 480.7 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001157/0.4799, allocations: 64.45 kB / 480.8 MB, free: 0.7617 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001273/0.4801, allocations: 100.3 kB / 480.9 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001422/0.4802, allocations: 84.47 kB / 481 MB, free: 0.5703 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.4802, allocations: 0 / 481 MB, free: 0.5703 MB / 346.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003535/0.4806, allocations: 239.8 kB / 481.2 MB, free: 340 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.05e-05/0.4806, allocations: 9.406 kB / 481.2 MB, free: 332 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.4806, allocations: 3.953 kB / 481.2 MB, free: 328 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.4806, allocations: 0 / 481.2 MB, free: 328 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002788/0.4809, allocations: 59.91 kB / 481.3 MB, free: 268 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.098e-05/0.4809, allocations: 7.984 kB / 481.3 MB, free: 260 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001405/0.4811, allocations: 27.83 kB / 481.3 MB, free: 232 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.112e-05/0.4811, allocations: 8.062 kB / 481.3 MB, free: 224 kB / 346.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 () * 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 8.368e-05/0.4812, allocations: 113 kB / 481.4 MB, free: 104 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.611e-05/0.4813, allocations: 23.72 kB / 481.5 MB, free: 80 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005064/0.4818, allocations: 255.6 kB / 481.7 MB, free: 15.82 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.091e-06/0.4818, allocations: 7.953 kB / 481.7 MB, free: 15.81 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.4818, allocations: 3.938 kB / 481.7 MB, free: 15.8 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.4818, allocations: 0 / 481.7 MB, free: 15.8 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008064/0.4826, allocations: 0.6269 MB / 482.4 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.367e-06/0.4826, allocations: 3.984 kB / 482.4 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002767/0.4829, allocations: 47.97 kB / 482.4 MB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.474e-06/0.4829, allocations: 15.88 kB / 482.4 MB, free: 15.06 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.088e-05/0.483, allocations: 4 kB / 482.4 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.387e-06/0.483, allocations: 4 kB / 482.4 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.483, allocations: 0 / 482.4 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005216/0.4835, allocations: 427.4 kB / 482.9 MB, free: 14.62 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001092/0.4836, allocations: 116.8 kB / 483 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.508e-05/0.4837, allocations: 11.95 kB / 483 MB, free: 14.47 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001565/0.4838, allocations: 15.98 kB / 483 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.278e-05/0.4839, allocations: 11.98 kB / 483 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.52e-05/0.4839, allocations: 8 kB / 483 MB, free: 14.44 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001229/0.4841, allocations: 153.4 kB / 483.2 MB, free: 14.29 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4841, allocations: 4 kB / 483.2 MB, free: 14.29 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002952/0.4844, allocations: 55.84 kB / 483.2 MB, free: 14.23 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 () * 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.0008144/0.4852, allocations: 0.9699 MB / 484.2 MB, free: 13.23 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003312/0.4855, allocations: 180.1 kB / 484.4 MB, free: 13.06 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.4855, allocations: 4.125 kB / 484.4 MB, free: 13.05 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001429/0.4857, allocations: 103.9 kB / 484.5 MB, free: 12.95 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002424/0.4859, allocations: 16.67 kB / 484.5 MB, free: 12.94 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001127/0.4871, allocations: 0.655 MB / 485.1 MB, free: 12.25 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003026/0.4874, allocations: 0.7753 MB / 485.9 MB, free: 11.44 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001277/0.4875, allocations: 42.05 kB / 486 MB, free: 11.4 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001256/0.4877, allocations: 87.39 kB / 486 MB, free: 11.31 MB / 362.7 MB Notification: Performance of SimCode: time 3.41e-07/0.4877, allocations: 0 / 486 MB, free: 11.31 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01509/0.5028, allocations: 4.029 MB / 490.1 MB, free: 7.395 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001731/0.503, allocations: 143.6 kB / 490.2 MB, free: 7.168 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.773/2.276, allocations: 3.938 kB / 490.2 MB, free: 7.164 MB / 362.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