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.001581/0.001581, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.41/1.41, allocations: 225.6 MB / 234.8 MB, free: 3.227 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009683/0.0009682, allocations: 93.05 kB / 286.7 MB, free: 5.301 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.241e-05/2.251e-05, allocations: 4 kB / 343.8 MB, free: 8.176 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.107, allocations: 51.48 MB / 395.3 MB, free: 4.656 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3714/0.4785, allocations: 78.55 MB / 473.8 MB, free: 12.92 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002185/0.4787, allocations: 69.08 kB / 473.9 MB, free: 12.9 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0132/0.4919, allocations: 4.483 MB / 478.4 MB, free: 10.39 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.127e-06/0.492, allocations: 0 / 478.4 MB, free: 10.39 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.355e-05/0.4921, allocations: 11.98 kB / 478.4 MB, free: 10.38 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.001014/0.4931, allocations: 0.5085 MB / 478.9 MB, free: 9.879 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.591e-05/0.4932, allocations: 12.03 kB / 478.9 MB, free: 9.867 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002117/0.4934, allocations: 32.97 kB / 478.9 MB, free: 9.84 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003418/0.4938, allocations: 249.2 kB / 479.2 MB, free: 9.59 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.906e-05/0.4938, allocations: 8 kB / 479.2 MB, free: 9.582 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.269e-05/0.4939, allocations: 15.91 kB / 479.2 MB, free: 9.566 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002851/0.4942, allocations: 143 kB / 479.3 MB, free: 9.48 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000335/0.4945, allocations: 201.7 kB / 479.5 MB, free: 9.336 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.639e-05/0.4945, allocations: 5.625 kB / 479.5 MB, free: 9.336 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.149e-05/0.4946, allocations: 7.953 kB / 479.5 MB, free: 9.328 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.756e-05/0.4946, allocations: 13.94 kB / 479.6 MB, free: 9.316 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001134/0.4957, allocations: 0.7589 MB / 480.3 MB, free: 8.656 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002308/0.496, allocations: 169.7 kB / 480.5 MB, free: 8.527 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001064/0.4961, allocations: 86.66 kB / 480.6 MB, free: 8.469 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.223e-05/0.4962, allocations: 89.08 kB / 480.7 MB, free: 8.363 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.571e-05/0.4962, allocations: 38.31 kB / 480.7 MB, free: 8.32 MB / 346.7 MB Notification: Performance of pre-optimization done (n=23): time 2.585e-06/0.4962, allocations: 0 / 480.7 MB, free: 8.32 MB / 346.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003715/0.4966, allocations: 193.4 kB / 480.9 MB, free: 8.164 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.345e-05/0.4966, allocations: 63.34 kB / 480.9 MB, free: 8.09 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001312/0.4968, allocations: 155.2 kB / 481.1 MB, free: 7.949 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.756e-05/0.4968, allocations: 25.7 kB / 481.1 MB, free: 7.918 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.789e-05/0.4969, allocations: 151.3 kB / 481.3 MB, free: 7.793 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.623e-05/0.4969, allocations: 85.38 kB / 481.3 MB, free: 7.719 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.127e-05/0.4969, allocations: 0 / 481.3 MB, free: 7.719 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.075e-05/0.497, allocations: 329.8 kB / 481.7 MB, free: 7.395 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.585e-05/0.4971, allocations: 62.55 kB / 481.7 MB, free: 7.355 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001026/0.4972, allocations: 103.3 kB / 481.8 MB, free: 7.266 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000138/0.4974, allocations: 85.89 kB / 481.9 MB, free: 7.211 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.4974, allocations: 0 / 481.9 MB, free: 7.211 MB / 346.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003093/0.4977, allocations: 227.8 kB / 482.1 MB, free: 7.031 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.763e-05/0.4977, allocations: 7.953 kB / 482.1 MB, free: 7.023 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.4977, allocations: 0 / 482.1 MB, free: 7.023 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.637e-05/0.4978, allocations: 8.062 kB / 482.2 MB, free: 7.016 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002658/0.498, allocations: 59.89 kB / 482.2 MB, free: 6.957 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.275e-06/0.498, allocations: 6.719 kB / 482.2 MB, free: 6.953 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001431/0.4982, allocations: 34.97 kB / 482.3 MB, free: 6.922 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.019e-05/0.4982, allocations: 10.03 kB / 482.3 MB, free: 6.918 MB / 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 (30): * Single equations (assignments): 30 * 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.221e-05/0.4983, allocations: 108.9 kB / 482.4 MB, free: 6.805 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002695/0.4986, allocations: 193.7 kB / 482.6 MB, free: 6.648 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.876e-05/0.4986, allocations: 31.61 kB / 482.6 MB, free: 6.617 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003801/0.499, allocations: 242.1 kB / 482.8 MB, free: 6.441 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.499, allocations: 4 kB / 482.8 MB, free: 6.438 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.499, allocations: 0 / 482.8 MB, free: 6.438 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.499, allocations: 3.984 kB / 482.8 MB, free: 6.434 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007103/0.4998, allocations: 0.5927 MB / 483.4 MB, free: 5.887 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.4998, allocations: 7.938 kB / 483.4 MB, free: 5.879 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002773/0.5001, allocations: 55.28 kB / 483.5 MB, free: 5.828 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.733e-06/0.5001, allocations: 4 kB / 483.5 MB, free: 5.824 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.075e-05/0.5001, allocations: 3.984 kB / 483.5 MB, free: 5.82 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.5001, allocations: 0 / 483.5 MB, free: 5.82 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.5001, allocations: 3.938 kB / 483.5 MB, free: 5.816 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004539/0.5006, allocations: 433.3 kB / 483.9 MB, free: 5.461 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001004/0.5007, allocations: 115.9 kB / 484 MB, free: 5.336 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.451e-05/0.5007, allocations: 4 kB / 484 MB, free: 5.332 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001455/0.5009, allocations: 11.98 kB / 484.1 MB, free: 5.32 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.583e-05/0.501, allocations: 19.22 kB / 484.1 MB, free: 5.305 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.317e-05/0.501, allocations: 4 kB / 484.1 MB, free: 5.301 MB / 346.7 MB Notification: Performance of sorting global known variables: time 7.472e-05/0.5011, allocations: 131.2 kB / 484.2 MB, free: 5.191 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5011, allocations: 0 / 484.2 MB, free: 5.191 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003096/0.5014, allocations: 55.78 kB / 484.3 MB, free: 5.137 MB / 346.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 (27): * Single equations (assignments): 27 * 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.0006845/0.5021, allocations: 0.9776 MB / 485.2 MB, free: 4.215 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002647/0.5023, allocations: 177.8 kB / 485.4 MB, free: 4.09 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.5024, allocations: 1.688 kB / 485.4 MB, free: 4.09 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001147/0.5025, allocations: 104.8 kB / 485.5 MB, free: 4.012 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002595/0.5027, allocations: 20.86 kB / 485.5 MB, free: 4 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00112/0.5039, allocations: 0.6472 MB / 486.2 MB, free: 3.367 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002081/0.5041, allocations: 0.7747 MB / 487 MB, free: 2.57 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001386/0.5042, allocations: 50.03 kB / 487 MB, free: 2.523 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001079/0.5044, allocations: 76.16 kB / 487.1 MB, free: 2.496 MB / 346.7 MB Notification: Performance of SimCode: time 2.71e-07/0.5044, allocations: 4 kB / 487.1 MB, free: 2.492 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02427/0.5286, allocations: 3.533 MB / 490.6 MB, free: 15.02 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001844/0.5289, allocations: 130.8 kB / 490.7 MB, free: 14.82 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.752/2.281, allocations: 1 kB / 490.7 MB, free: 14.82 MB / 362.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