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.001414/0.001414, allocations: 196.8 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.563/1.563, allocations: 225.4 MB / 240.1 MB, free: 15.04 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000938/0.0009379, allocations: 90.27 kB / 292.1 MB, free: 6.027 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.525e-05/4.53e-05, allocations: 4 kB / 350.6 MB, free: 2.441 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1374/0.1375, allocations: 51.49 MB / 402.1 MB, free: 14.9 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3874/0.5249, allocations: 79.22 MB / 481.3 MB, free: 9.879 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000263/0.5253, allocations: 68.42 kB / 481.4 MB, free: 9.848 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0127/0.538, allocations: 4.525 MB / 485.9 MB, free: 6.098 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.538, allocations: 0 / 485.9 MB, free: 6.098 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.803e-05/0.5381, allocations: 8 kB / 485.9 MB, free: 6.09 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.0007441/0.5388, allocations: 0.5008 MB / 486.4 MB, free: 5.566 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.51e-05/0.5389, allocations: 12.03 kB / 486.5 MB, free: 5.555 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.397e-05/0.539, allocations: 51.48 kB / 486.5 MB, free: 5.508 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001379/0.5391, allocations: 36.7 kB / 486.5 MB, free: 5.477 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003465/0.5395, allocations: 257.2 kB / 486.8 MB, free: 5.199 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.691e-05/0.5395, allocations: 16.12 kB / 486.8 MB, free: 5.191 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.356e-05/0.5396, allocations: 23.16 kB / 486.8 MB, free: 5.176 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003428/0.5399, allocations: 239.1 kB / 487.1 MB, free: 4.984 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.512e-05/0.5399, allocations: 3.938 kB / 487.1 MB, free: 4.98 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.992e-05/0.54, allocations: 7.812 kB / 487.1 MB, free: 4.977 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.643e-05/0.54, allocations: 20.19 kB / 487.1 MB, free: 4.961 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002458/0.5403, allocations: 159.6 kB / 487.2 MB, free: 4.848 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001196/0.5415, allocations: 0.8257 MB / 488.1 MB, free: 4.062 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002774/0.5418, allocations: 172.7 kB / 488.2 MB, free: 3.934 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001297/0.5419, allocations: 84.09 kB / 488.3 MB, free: 3.875 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001103/0.542, allocations: 89.27 kB / 488.4 MB, free: 3.77 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.075e-05/0.542, allocations: 38.62 kB / 488.4 MB, free: 3.727 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 1.423e-06/0.542, allocations: 0 / 488.4 MB, free: 3.727 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.0003585/0.5424, allocations: 196.3 kB / 488.6 MB, free: 3.57 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.333e-05/0.5425, allocations: 59.41 kB / 488.7 MB, free: 3.5 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001519/0.5426, allocations: 187.7 kB / 488.9 MB, free: 3.34 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.671e-05/0.5426, allocations: 33.2 kB / 488.9 MB, free: 3.305 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.763e-05/0.5427, allocations: 146.8 kB / 489.1 MB, free: 3.188 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.716e-05/0.5428, allocations: 82.03 kB / 489.1 MB, free: 3.117 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.023e-05/0.5428, allocations: 3.875 kB / 489.1 MB, free: 3.117 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.032e-05/0.5428, allocations: 330.7 kB / 489.5 MB, free: 2.793 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001029/0.543, allocations: 67.45 kB / 489.5 MB, free: 2.746 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001023/0.5431, allocations: 100.2 kB / 489.6 MB, free: 2.66 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001167/0.5432, allocations: 90.16 kB / 489.7 MB, free: 2.602 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.5432, allocations: 0 / 489.7 MB, free: 2.602 MB / 346.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003198/0.5435, allocations: 236.4 kB / 489.9 MB, free: 2.414 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.836e-05/0.5436, allocations: 4 kB / 490 MB, free: 2.41 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/0.5436, allocations: 0 / 490 MB, free: 2.41 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.702e-05/0.5436, allocations: 8.062 kB / 490 MB, free: 2.402 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002563/0.5438, allocations: 59.89 kB / 490 MB, free: 2.344 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.255e-06/0.5439, allocations: 0 / 490 MB, free: 2.344 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000137/0.544, allocations: 29.7 kB / 490 MB, free: 2.32 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.959e-05/0.544, allocations: 15.8 kB / 490.1 MB, free: 2.309 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 (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 6.425e-05/0.5441, allocations: 121.3 kB / 490.2 MB, free: 2.191 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.177e-05/0.5442, allocations: 19.72 kB / 490.2 MB, free: 2.172 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003619/0.5445, allocations: 244.8 kB / 490.4 MB, free: 1.992 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.5445, allocations: 4 kB / 490.4 MB, free: 1.988 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.5446, allocations: 0 / 490.4 MB, free: 1.988 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.071e-06/0.5446, allocations: 3.984 kB / 490.4 MB, free: 1.984 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006712/0.5452, allocations: 0.6327 MB / 491.1 MB, free: 1.402 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.5453, allocations: 7.938 kB / 491.1 MB, free: 1.395 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002619/0.5455, allocations: 55.91 kB / 491.1 MB, free: 1.34 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.5455, allocations: 0 / 491.1 MB, free: 1.34 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.25e-05/0.5456, allocations: 11.8 kB / 491.2 MB, free: 1.332 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.5456, allocations: 2.781 kB / 491.2 MB, free: 1.332 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.5456, allocations: 0 / 491.2 MB, free: 1.332 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004307/0.546, allocations: 414.1 kB / 491.6 MB, free: 0.9961 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.447e-05/0.5461, allocations: 124 kB / 491.7 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.132e-05/0.5462, allocations: 7.5 kB / 491.7 MB, free: 0.8594 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001475/0.5463, allocations: 19.28 kB / 491.7 MB, free: 0.8438 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.327e-05/0.5464, allocations: 15.97 kB / 491.7 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.381e-05/0.5464, allocations: 8.25 kB / 491.7 MB, free: 0.8242 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001102/0.5465, allocations: 154.6 kB / 491.9 MB, free: 0.6914 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5465, allocations: 3.938 kB / 491.9 MB, free: 0.6875 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002993/0.5468, allocations: 62.72 kB / 491.9 MB, free: 0.6328 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 (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.0008585/0.5477, allocations: 0.9738 MB / 492.9 MB, free: 15.72 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003313/0.548, allocations: 174.6 kB / 493.1 MB, free: 15.6 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.5481, allocations: 0 / 493.1 MB, free: 15.6 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001458/0.5482, allocations: 105.1 kB / 493.2 MB, free: 15.52 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002506/0.5485, allocations: 19.59 kB / 493.2 MB, free: 15.51 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001326/0.5498, allocations: 0.6557 MB / 493.9 MB, free: 14.88 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003886/0.5502, allocations: 0.7706 MB / 494.6 MB, free: 14.09 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001451/0.5504, allocations: 42.05 kB / 494.7 MB, free: 14.04 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001371/0.5505, allocations: 87.03 kB / 494.8 MB, free: 13.98 MB / 362.7 MB Notification: Performance of SimCode: time 6.71e-07/0.5505, allocations: 3.938 kB / 494.8 MB, free: 13.98 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01836/0.5689, allocations: 4.031 MB / 498.8 MB, free: 10.15 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002/0.5691, allocations: 138.6 kB / 498.9 MB, free: 9.934 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.822/2.391, allocations: 4.062 kB / 498.9 MB, free: 9.93 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