Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.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.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis",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.001382/0.001382, allocations: 202.3 kB / 8.541 MB, free: 1.809 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.239/1.239, allocations: 225.5 MB / 234.4 MB, free: 3.363 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000999/0.000999, allocations: 94.7 kB / 286.3 MB, free: 5.246 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1158/0.1168, allocations: 56.91 MB / 343.2 MB, free: 8.613 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0971/0.2139, allocations: 51.48 MB / 394.7 MB, free: 5.082 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2675/0.4815, allocations: 97.29 MB / 492 MB, free: 11.92 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000326/0.4819, allocations: 85.69 kB / 492.1 MB, free: 11.87 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 391 * Number of variables: 391 Notification: Performance of Generate backend data structure: time 0.09592/0.5778, allocations: 42.45 MB / 0.522 GB, free: 6.863 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.5779, allocations: 11.98 kB / 0.522 GB, free: 6.852 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003858/0.5783, allocations: 185.9 kB / 0.5222 GB, free: 6.668 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001165/0.5795, allocations: 0.8022 MB / 0.523 GB, free: 5.824 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000245/0.5797, allocations: 188.1 kB / 0.5232 GB, free: 5.621 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000192/0.5799, allocations: 91.91 kB / 0.5233 GB, free: 5.531 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002437/0.5824, allocations: 1.307 MB / 0.5245 GB, free: 4.223 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002333/0.5847, allocations: 1.345 MB / 0.5259 GB, free: 2.852 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.99e-05/0.5848, allocations: 15.89 kB / 0.5259 GB, free: 2.836 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001162/0.5849, allocations: 0.5625 kB / 0.5259 GB, free: 2.836 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.164e-05/0.5849, allocations: 36 kB / 0.5259 GB, free: 2.801 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008782/0.5937, allocations: 5.82 MB / 0.5316 GB, free: 12.78 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008958/0.5946, allocations: 0.5482 MB / 0.5321 GB, free: 12.21 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006483/0.5953, allocations: 436.7 kB / 0.5325 GB, free: 11.79 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.565e-05/0.5954, allocations: 16.77 kB / 0.5326 GB, free: 11.77 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007913/0.5962, allocations: 0.5517 MB / 0.5331 GB, free: 11.17 MB / 410.7 MB Notification: Performance of pre-optimization done (n=91): time 2.866e-06/0.5962, allocations: 4 kB / 0.5331 GB, free: 11.17 MB / 410.7 MB Notification: Performance of matching and sorting (n=122): time 0.01201/0.6082, allocations: 5.209 MB / 0.5382 GB, free: 5.859 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001214/0.6083, allocations: 299.7 kB / 0.5385 GB, free: 5.5 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008914/0.6092, allocations: 0.648 MB / 0.5391 GB, free: 4.848 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001052/0.6094, allocations: 29.7 kB / 0.5391 GB, free: 4.812 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004164/0.6098, allocations: 0.5725 MB / 0.5397 GB, free: 4.227 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003026/0.6101, allocations: 402 kB / 0.5401 GB, free: 3.828 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.39e-05/0.6102, allocations: 0 / 0.5401 GB, free: 3.828 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001679/0.6104, allocations: 406.7 kB / 0.5405 GB, free: 3.422 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001015/0.6114, allocations: 0.6133 MB / 0.5411 GB, free: 2.809 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001242/0.6126, allocations: 0.9158 MB / 0.542 GB, free: 1.781 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009478/0.6136, allocations: 0.5919 MB / 0.5425 GB, free: 1.188 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.6136, allocations: 4 kB / 0.5425 GB, free: 1.184 MB / 410.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.002763/0.6164, allocations: 1.605 MB / 0.5441 GB, free: 15.56 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/0.6164, allocations: 13.11 kB / 0.5441 GB, free: 15.55 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/0.6164, allocations: 4 kB / 0.5441 GB, free: 15.55 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003801/0.6168, allocations: 182.9 kB / 0.5443 GB, free: 15.36 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0018/0.6186, allocations: 375.4 kB / 0.5447 GB, free: 14.99 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002997/0.6216, allocations: 4.01 MB / 0.5486 GB, free: 10.63 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001546/0.6232, allocations: 187.9 kB / 0.5487 GB, free: 10.45 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001427/0.6233, allocations: 47.98 kB / 0.5488 GB, free: 10.4 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: axis.gear.bearingFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 13 (axis.gear.bearingFriction.free,$whenCondition1,$PRE.axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startForward,$PRE.axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.locked,$PRE.axis.gear.bearingFriction.mode,axis.gear.bearingFriction.mode,pathPlanning.path.motion_ref,pathPlanning.path.noWphase,pathPlanning.pathToAxis1.moving[1],pathPlanning.terminateSimulation.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (170): * Single equations (assignments): 167 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0003465/0.6237, allocations: 146.6 kB / 0.5489 GB, free: 10.25 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001876/0.6239, allocations: 106.7 kB / 0.549 GB, free: 10.15 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002126/0.6241, allocations: 105.8 kB / 0.5491 GB, free: 10.04 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.928e-06/0.6241, allocations: 12 kB / 0.5491 GB, free: 10.03 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.889e-06/0.6241, allocations: 0 / 0.5491 GB, free: 10.03 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.366e-05/0.6242, allocations: 8.547 kB / 0.5492 GB, free: 10.02 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006577/0.6307, allocations: 3.902 MB / 0.553 GB, free: 5.941 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.19e-05/0.6308, allocations: 12 kB / 0.553 GB, free: 5.93 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001245/0.632, allocations: 295.6 kB / 0.5533 GB, free: 5.641 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004293/0.6325, allocations: 229.5 kB / 0.5535 GB, free: 5.41 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.802e-05/0.6326, allocations: 19.98 kB / 0.5535 GB, free: 5.391 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001605/0.6342, allocations: 2.033 MB / 0.5555 GB, free: 3.219 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.829e-06/0.6342, allocations: 11.94 kB / 0.5555 GB, free: 3.207 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003122/0.6373, allocations: 2.406 MB / 0.5578 GB, free: 440 kB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004259/0.6416, allocations: 3.372 MB / 0.5611 GB, free: 12.68 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006383/0.6423, allocations: 323.7 kB / 0.5614 GB, free: 12.35 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002129/0.6425, allocations: 28.73 kB / 0.5615 GB, free: 12.32 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001118/0.6436, allocations: 151.9 kB / 0.5616 GB, free: 12.17 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003405/0.644, allocations: 172.4 kB / 0.5618 GB, free: 12 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.618e-05/0.6441, allocations: 40 kB / 0.5618 GB, free: 11.96 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0007657/0.6448, allocations: 483 kB / 0.5623 GB, free: 11.49 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001794/0.6466, allocations: 299.9 kB / 0.5626 GB, free: 11.2 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 39 * Number of states: 7 (axis.gear.gear.phi_a,axis.gear.spring.phi_rel,axis.gear.spring.w_rel,axis.motor.La.i,axis.motor.C.v,axis.controller.PI.x,load.w) * Number of discrete variables: 9 (pathPlanning.terminateSimulation.condition,$whenCondition1,axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.locked,axis.gear.bearingFriction.mode,pathPlanning.path.motion_ref,pathPlanning.pathToAxis1.moving[1],pathPlanning.path.noWphase) * Number of discrete states: 3 (axis.gear.bearingFriction.mode,axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 111 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007096/0.6474, allocations: 326 kB / 0.5629 GB, free: 10.95 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00266/0.65, allocations: 1.613 MB / 0.5645 GB, free: 9.312 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.204e-06/0.6501, allocations: 4.688 kB / 0.5645 GB, free: 9.309 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001634/0.6517, allocations: 0.8696 MB / 0.5653 GB, free: 8.43 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009325/0.6526, allocations: 134.8 kB / 0.5654 GB, free: 8.301 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005272/0.6579, allocations: 2.41 MB / 0.5678 GB, free: 5.73 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00142/0.6594, allocations: 1.303 MB / 0.5691 GB, free: 4.406 MB / 442.7 MB Notification: Performance of SimCode: time 1.292e-06/0.6594, allocations: 0 / 0.5691 GB, free: 4.406 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis_fmu --startTime=0 --stopTime=1.6 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.mat does not exist to compare? outputFormat=mat