Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001098/0.001098, allocations: 198.1 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.499/1.499, allocations: 225.6 MB / 234.8 MB, free: 3.23 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009657/0.0009658, allocations: 91.69 kB / 286.7 MB, free: 5.301 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.202/0.202, allocations: 45.15 MB / 383.8 MB, free: 248 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.918e-05/1.921e-05, allocations: 4 kB / 453.3 MB, free: 75.74 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.125/0.1251, allocations: 63.24 MB / 0.5045 GB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4577/0.5828, allocations: 89.58 MB / 0.5919 GB, free: 12.72 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001823/0.5831, allocations: 61.84 kB / 0.592 GB, free: 12.69 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03516/0.6182, allocations: 11.84 MB / 0.6036 GB, free: 2.664 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.6183, allocations: 0 / 0.6036 GB, free: 2.664 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.065e-05/0.6183, allocations: 16 kB / 0.6036 GB, free: 2.648 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.002234/0.6206, allocations: 0.9006 MB / 0.6044 GB, free: 1.738 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/0.6206, allocations: 8.031 kB / 0.6045 GB, free: 1.73 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002035/0.6208, allocations: 72.06 kB / 0.6045 GB, free: 1.66 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007013/0.6215, allocations: 360.9 kB / 0.6049 GB, free: 1.305 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004204/0.622, allocations: 255.3 kB / 0.6051 GB, free: 1.023 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001288/0.6221, allocations: 27.91 kB / 0.6051 GB, free: 0.9961 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001449/0.6236, allocations: 0.8045 MB / 0.6059 GB, free: 456 kB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001038/0.6246, allocations: 0.5625 MB / 0.6065 GB, free: 4 kB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.21e-05/0.6247, allocations: 3.375 kB / 0.6065 GB, free: 4 kB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.185e-05/0.6248, allocations: 8.047 kB / 0.6065 GB, free: 15.99 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.316e-05/0.6248, allocations: 12 kB / 0.6065 GB, free: 15.98 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002882/0.6277, allocations: 2.01 MB / 0.6085 GB, free: 14.24 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001342/0.629, allocations: 0.5608 MB / 0.609 GB, free: 13.84 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004603/0.6295, allocations: 293.8 kB / 0.6093 GB, free: 13.67 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.067e-05/0.6296, allocations: 12.55 kB / 0.6093 GB, free: 13.66 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.023e-05/0.6296, allocations: 40.38 kB / 0.6093 GB, free: 13.61 MB / 410.7 MB Notification: Performance of pre-optimization done (n=66): time 3.116e-06/0.6296, allocations: 0 / 0.6093 GB, free: 13.61 MB / 410.7 MB Notification: Performance of matching and sorting (n=122): time 0.02472/0.6544, allocations: 7.117 MB / 0.6163 GB, free: 8.238 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.129e-05/0.6545, allocations: 90.23 kB / 0.6164 GB, free: 8.129 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006592/0.6552, allocations: 343 kB / 0.6167 GB, free: 7.855 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002315/0.6554, allocations: 25.7 kB / 0.6167 GB, free: 7.824 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001983/0.6556, allocations: 218.4 kB / 0.6169 GB, free: 7.648 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000582/0.6562, allocations: 389 kB / 0.6173 GB, free: 7.309 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002112/0.6565, allocations: 0 / 0.6173 GB, free: 7.309 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002235/0.6567, allocations: 376.1 kB / 0.6177 GB, free: 6.961 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002116/0.6588, allocations: 0.9474 MB / 0.6186 GB, free: 6.504 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002186/0.661, allocations: 1.091 MB / 0.6197 GB, free: 5.883 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00124/0.6623, allocations: 0.8027 MB / 0.6204 GB, free: 5.453 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.546e-06/0.6623, allocations: 0 / 0.6204 GB, free: 5.453 MB / 410.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.003148/0.6655, allocations: 1.997 MB / 0.6224 GB, free: 4.301 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.648e-05/0.6655, allocations: 4 kB / 0.6224 GB, free: 4.297 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.516e-05/0.6655, allocations: 4 kB / 0.6224 GB, free: 4.293 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.45e-05/0.6656, allocations: 8.312 kB / 0.6224 GB, free: 4.285 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002956/0.6685, allocations: 470.2 kB / 0.6229 GB, free: 3.836 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.23e-05/0.6686, allocations: 8 kB / 0.6229 GB, free: 3.828 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002197/0.6708, allocations: 267.6 kB / 0.6231 GB, free: 3.566 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001676/0.671, allocations: 42.36 kB / 0.6232 GB, free: 3.535 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 12 (kinematicPTP2a.noWphase,kinematicPTP2b.moving[1],kinematicPTP2b.motion_ref,kinematicPTP2b.noWphase,kinematicPTP1a.noWphase,kinematicPTP1b.moving[1],kinematicPTP1b.motion_ref,kinematicPTP1b.noWphase,integrator3.local_reset,integrator2.local_reset,integrator1.local_reset,integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (150): * Single equations (assignments): 150 * 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.0003818/0.6714, allocations: 120.8 kB / 0.6233 GB, free: 3.41 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002877/0.6742, allocations: 1.706 MB / 0.6249 GB, free: 2.438 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002443/0.6745, allocations: 59.25 kB / 0.625 GB, free: 2.379 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002661/0.6748, allocations: 99.66 kB / 0.6251 GB, free: 2.348 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.267e-05/0.6748, allocations: 15.95 kB / 0.6251 GB, free: 2.332 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.037e-05/0.6748, allocations: 0 / 0.6251 GB, free: 2.332 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.21e-05/0.6748, allocations: 7.922 kB / 0.6251 GB, free: 2.324 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00883/0.6837, allocations: 4.564 MB / 0.6296 GB, free: 14.46 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.585e-05/0.6838, allocations: 20 kB / 0.6296 GB, free: 14.44 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001773/0.6855, allocations: 411.8 kB / 0.63 GB, free: 14.04 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.166e-05/0.6856, allocations: 39.95 kB / 0.63 GB, free: 14 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000106/0.6857, allocations: 28 kB / 0.63 GB, free: 13.97 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.842e-05/0.6858, allocations: 39.86 kB / 0.6301 GB, free: 13.93 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-05/0.6858, allocations: 35.81 kB / 0.6301 GB, free: 13.9 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004019/0.6898, allocations: 3.233 MB / 0.6333 GB, free: 9.801 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004605/0.6903, allocations: 248.2 kB / 0.6335 GB, free: 9.539 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001663/0.6905, allocations: 35.92 kB / 0.6335 GB, free: 9.508 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001523/0.692, allocations: 235.8 kB / 0.6338 GB, free: 9.277 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004493/0.6925, allocations: 239.2 kB / 0.634 GB, free: 9.043 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001078/0.6926, allocations: 56 kB / 0.6341 GB, free: 8.988 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003845/0.693, allocations: 260.6 kB / 0.6343 GB, free: 8.734 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.693, allocations: 0 / 0.6343 GB, free: 8.734 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001164/0.6942, allocations: 200 kB / 0.6345 GB, free: 8.539 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 94 * Number of states: 4 (integrator2.y,integrator3.y,integrator.y,integrator1.y) * Number of discrete variables: 8 (kinematicPTP2b.moving[1],kinematicPTP2b.motion_ref,kinematicPTP1b.moving[1],kinematicPTP1b.motion_ref,kinematicPTP2b.noWphase,kinematicPTP2a.noWphase,kinematicPTP1b.noWphase,kinematicPTP1a.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (122): * Single equations (assignments): 122 * 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.006117/0.7003, allocations: 10.22 MB / 0.6445 GB, free: 13.66 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002596/0.7029, allocations: 1.619 MB / 0.646 GB, free: 12.05 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.275e-06/0.703, allocations: 8.062 kB / 0.6461 GB, free: 12.04 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001845/0.7048, allocations: 0.7313 MB / 0.6468 GB, free: 11.31 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008713/0.7057, allocations: 112.2 kB / 0.6469 GB, free: 11.2 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00396/0.7097, allocations: 1.734 MB / 0.6486 GB, free: 9.137 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005651/0.7102, allocations: 0.944 MB / 0.6495 GB, free: 8.164 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001271/0.7115, allocations: 194.2 kB / 0.6497 GB, free: 7.973 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007215/0.7123, allocations: 215.4 kB / 0.6499 GB, free: 7.762 MB / 442.7 MB Notification: Performance of SimCode: time 6.81e-07/0.7123, allocations: 0 / 0.6499 GB, free: 7.762 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04651/0.7588, allocations: 19.42 MB / 0.6688 GB, free: 4.359 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002102/0.759, allocations: 120.3 kB / 0.669 GB, free: 4.168 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.576/3.335, allocations: 4 kB / 0.669 GB, free: 4.164 MB / 458.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_KinematicPTP_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_KinematicPTP.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP_res.mat does not exist to compare? outputFormat=mat