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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001229/0.001229, allocations: 201 kB / 8.544 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.254/1.254, allocations: 225.5 MB / 234.4 MB, free: 3.371 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009401/0.0009403, allocations: 92.59 kB / 286.3 MB, free: 5.246 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1264/0.1274, allocations: 56.89 MB / 343.2 MB, free: 8.676 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.2282, allocations: 51.48 MB / 394.7 MB, free: 5.141 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2965/0.5247, allocations: 78.47 MB / 473.2 MB, free: 13.46 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001706/0.5249, allocations: 64.86 kB / 473.2 MB, free: 13.43 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.01246/0.5374, allocations: 4.67 MB / 477.9 MB, free: 10.74 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.242e-05/0.5375, allocations: 8 kB / 477.9 MB, free: 10.73 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001705/0.5376, allocations: 27.72 kB / 478 MB, free: 10.7 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003145/0.538, allocations: 264 kB / 478.2 MB, free: 10.44 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.007e-05/0.538, allocations: 4 kB / 478.2 MB, free: 10.43 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.892e-05/0.538, allocations: 12 kB / 478.2 MB, free: 10.42 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002445/0.5383, allocations: 138 kB / 478.4 MB, free: 10.34 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002985/0.5386, allocations: 209.1 kB / 478.6 MB, free: 10.19 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.824e-05/0.5386, allocations: 0 / 478.6 MB, free: 10.19 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.013e-05/0.5387, allocations: 3.906 kB / 478.6 MB, free: 10.18 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.046e-05/0.5387, allocations: 17.64 kB / 478.6 MB, free: 10.17 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001144/0.5398, allocations: 0.7618 MB / 479.3 MB, free: 9.551 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002169/0.5401, allocations: 134.9 kB / 479.5 MB, free: 9.461 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001213/0.5402, allocations: 90.45 kB / 479.6 MB, free: 9.402 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.816e-05/0.5403, allocations: 87.81 kB / 479.7 MB, free: 9.301 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.385e-05/0.5403, allocations: 38.61 kB / 479.7 MB, free: 9.258 MB / 346.7 MB Notification: Performance of pre-optimization done (n=23): time 1.784e-06/0.5404, allocations: 0 / 479.7 MB, free: 9.258 MB / 346.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004072/0.5408, allocations: 199.4 kB / 479.9 MB, free: 9.117 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.112e-05/0.5408, allocations: 56.06 kB / 479.9 MB, free: 9.051 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001303/0.5409, allocations: 161 kB / 480.1 MB, free: 8.906 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.726e-05/0.541, allocations: 25.7 kB / 480.1 MB, free: 8.875 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.154e-05/0.541, allocations: 128 kB / 480.2 MB, free: 8.754 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.304e-05/0.5411, allocations: 85.62 kB / 480.3 MB, free: 8.68 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.004e-05/0.5411, allocations: 3 kB / 480.3 MB, free: 8.68 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.457e-05/0.5412, allocations: 332.4 kB / 480.7 MB, free: 8.355 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001027/0.5413, allocations: 69.98 kB / 480.7 MB, free: 8.309 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001146/0.5414, allocations: 101.8 kB / 480.8 MB, free: 8.219 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001435/0.5415, allocations: 82.64 kB / 480.9 MB, free: 8.164 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.5415, allocations: 0 / 480.9 MB, free: 8.164 MB / 346.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003271/0.5419, allocations: 232.9 kB / 481.1 MB, free: 7.98 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.5419, allocations: 8 kB / 481.1 MB, free: 7.973 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.5419, allocations: 4.062 kB / 481.1 MB, free: 7.969 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.438e-05/0.5419, allocations: 4 kB / 481.2 MB, free: 7.965 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003031/0.5422, allocations: 63.95 kB / 481.2 MB, free: 7.906 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.077e-05/0.5423, allocations: 0 / 481.2 MB, free: 7.906 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001436/0.5424, allocations: 27.73 kB / 481.2 MB, free: 7.879 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.041e-05/0.5424, allocations: 12 kB / 481.3 MB, free: 7.867 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.161e-05/0.5425, allocations: 112.6 kB / 481.4 MB, free: 7.754 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.512e-05/0.5426, allocations: 23.72 kB / 481.4 MB, free: 7.73 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004146/0.543, allocations: 233.5 kB / 481.6 MB, free: 7.559 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.543, allocations: 7.984 kB / 481.6 MB, free: 7.551 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.543, allocations: 1.125 kB / 481.6 MB, free: 7.551 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.543, allocations: 4 kB / 481.6 MB, free: 7.547 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007168/0.5438, allocations: 0.6036 MB / 482.2 MB, free: 6.992 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.5438, allocations: 0 / 482.2 MB, free: 6.992 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003286/0.5441, allocations: 63.78 kB / 482.3 MB, free: 6.934 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.5441, allocations: 4 kB / 482.3 MB, free: 6.93 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.379e-05/0.5441, allocations: 7.984 kB / 482.3 MB, free: 6.922 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.5442, allocations: 0.625 kB / 482.3 MB, free: 6.922 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.5442, allocations: 3.906 kB / 482.3 MB, free: 6.918 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004557/0.5446, allocations: 431 kB / 482.7 MB, free: 6.566 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006168/0.5453, allocations: 0.9196 MB / 483.6 MB, free: 5.758 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.308e-05/0.5453, allocations: 116.8 kB / 483.8 MB, free: 5.629 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.731e-05/0.5454, allocations: 0 / 483.8 MB, free: 5.629 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001677/0.5456, allocations: 15.89 kB / 483.8 MB, free: 5.613 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.416e-05/0.5456, allocations: 20.91 kB / 483.8 MB, free: 5.598 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.724e-05/0.5457, allocations: 6.062 kB / 483.8 MB, free: 5.594 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.805e-05/0.5457, allocations: 128.1 kB / 483.9 MB, free: 5.488 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009003/0.5466, allocations: 59.83 kB / 484 MB, free: 5.43 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.0001887/0.5468, allocations: 119 kB / 484.1 MB, free: 5.309 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00028/0.5471, allocations: 181.5 kB / 484.3 MB, free: 5.176 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.5471, allocations: 0 / 484.3 MB, free: 5.176 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001256/0.5473, allocations: 105.8 kB / 484.4 MB, free: 5.102 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002463/0.5475, allocations: 14.47 kB / 484.4 MB, free: 5.094 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001021/0.5486, allocations: 0.565 MB / 485 MB, free: 4.543 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004291/0.549, allocations: 0.8017 MB / 485.8 MB, free: 3.719 MB / 346.7 MB Notification: Performance of SimCode: time 3.81e-07/0.549, allocations: 0 / 485.8 MB, free: 3.719 MB / 346.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