Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001418/0.001423, allocations: 114 kB / 17.06 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001204/0.001204, allocations: 191 kB / 18 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.328/1.328, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001064/0.001064, allocations: 43.94 kB / 350.8 MB, free: 3.781 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2886/0.2897, allocations: 49.44 MB / 400.2 MB, free: 8.438 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.009659/0.2994, allocations: 9.281 MB / 409.5 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004886/0.3043, allocations: 2.279 MB / 411.8 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00154/0.3059, allocations: 31.88 kB / 411.8 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009201/0.3069, allocations: 325.1 kB / 412.2 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001491/0.3084, allocations: 0.4997 MB / 412.7 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001295/0.3097, allocations: 0.6477 MB / 413.3 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002288/0.312, allocations: 2.352 MB / 415.7 MB, free: 9.367 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001451/0.3135, allocations: 1.115 MB / 416.8 MB, free: 8.203 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001313/0.3148, allocations: 0.8607 MB / 417.6 MB, free: 7.34 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001149/0.316, allocations: 0.8871 MB / 418.5 MB, free: 6.449 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003717/0.3164, allocations: 272 kB / 418.8 MB, free: 6.184 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004854/0.3169, allocations: 331.9 kB / 419.1 MB, free: 5.859 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003931/0.3173, allocations: 0.4948 MB / 419.6 MB, free: 5.363 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009616/0.3182, allocations: 0.9764 MB / 420.6 MB, free: 4.383 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00319/0.3214, allocations: 3.359 MB / 423.9 MB, free: 1.016 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.743e-06/0.3215, allocations: 0 / 423.9 MB, free: 1.016 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3215, allocations: 3.938 kB / 423.9 MB, free: 1.012 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.375e-05/0.3215, allocations: 0 / 423.9 MB, free: 1.012 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 389 * Number of variables: 389 Notification: Performance of Generate backend data structure: time 0.003549/0.3251, allocations: 1.965 MB / 425.9 MB, free: 14.99 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/0.3251, allocations: 8.031 kB / 425.9 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002492/0.3254, allocations: 224 kB / 426.1 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002707/0.3257, allocations: 187.8 kB / 426.3 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001223/0.3269, allocations: 0.8464 MB / 427.2 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000264/0.3272, allocations: 244.4 kB / 427.4 MB, free: 13.42 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002259/0.3274, allocations: 156 kB / 427.6 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002908/0.3303, allocations: 1.682 MB / 429.2 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.701e-05/0.3304, allocations: 7.984 kB / 429.2 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000135/0.3305, allocations: 60 kB / 429.3 MB, free: 11.49 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.746e-05/0.3306, allocations: 44 kB / 429.3 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003102/0.3337, allocations: 1.558 MB / 430.9 MB, free: 9.887 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008623/0.3423, allocations: 5.839 MB / 436.7 MB, free: 3.832 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001885/0.3443, allocations: 0.9364 MB / 437.7 MB, free: 2.875 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009745/0.3453, allocations: 0.5249 MB / 438.2 MB, free: 2.348 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.152e-05/0.3453, allocations: 17 kB / 438.2 MB, free: 2.332 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00117/0.3465, allocations: 0.6644 MB / 438.9 MB, free: 1.625 MB / 350.1 MB Notification: Performance of pre-optimization done (n=90): time 2.565e-06/0.3465, allocations: 0 / 438.9 MB, free: 1.625 MB / 350.1 MB Notification: Performance of matching and sorting (n=120): time 0.03763/0.3842, allocations: 8.971 MB / 447.9 MB, free: 8.527 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001404/0.3843, allocations: 295.7 kB / 448.1 MB, free: 8.172 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001163/0.3855, allocations: 0.7935 MB / 448.9 MB, free: 7.371 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001346/0.3857, allocations: 53.7 kB / 449 MB, free: 7.312 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000711/0.3864, allocations: 0.6761 MB / 449.7 MB, free: 6.625 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005391/0.3869, allocations: 428.4 kB / 450.1 MB, free: 6.203 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007089/0.3877, allocations: 243.5 kB / 450.3 MB, free: 5.957 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002628/0.3879, allocations: 414.7 kB / 450.7 MB, free: 5.543 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003139/0.3911, allocations: 0.812 MB / 451.5 MB, free: 4.73 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00342/0.3945, allocations: 1.13 MB / 452.7 MB, free: 3.488 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004116/0.3987, allocations: 1.65 MB / 454.3 MB, free: 1.746 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.734e-06/0.3987, allocations: 4 kB / 454.3 MB, free: 1.742 MB / 366.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.005206/0.4039, allocations: 2.077 MB / 456.4 MB, free: 15.65 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.145e-05/0.404, allocations: 8 kB / 456.4 MB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.661e-05/0.404, allocations: 7.938 kB / 456.4 MB, free: 15.63 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004773/0.4045, allocations: 182.5 kB / 456.6 MB, free: 15.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001652/0.4062, allocations: 355.4 kB / 456.9 MB, free: 15.1 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003726/0.4099, allocations: 4.815 MB / 461.8 MB, free: 9.863 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001598/0.4115, allocations: 171.8 kB / 461.9 MB, free: 9.695 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001357/0.4117, allocations: 48.08 kB / 462 MB, free: 9.648 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 12 (axis.gear.bearingFriction.free,pathPlanning.terminateSimulation.condition,pathPlanning.pathToAxis1.moving[1],pathPlanning.path.noWphase,axis.gear.bearingFriction.mode,$PRE.axis.gear.bearingFriction.mode,axis.gear.bearingFriction.locked,axis.gear.bearingFriction.startBackward,$PRE.axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.startForward,$PRE.axis.gear.bearingFriction.startForward,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (168): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0007358/0.4124, allocations: 383.2 kB / 462.3 MB, free: 9.262 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002113/0.4127, allocations: 115.3 kB / 462.5 MB, free: 9.148 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002215/0.4129, allocations: 130 kB / 462.6 MB, free: 9.016 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.907e-06/0.4129, allocations: 16 kB / 462.6 MB, free: 9 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.04e-05/0.4129, allocations: 0 / 462.6 MB, free: 9 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.056e-05/0.4129, allocations: 11.97 kB / 462.6 MB, free: 8.988 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007539/0.4205, allocations: 4.412 MB / 467 MB, free: 4.383 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.19e-05/0.4205, allocations: 8 kB / 467 MB, free: 4.375 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00112/0.4217, allocations: 268.4 kB / 467.3 MB, free: 4.113 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005624/0.4222, allocations: 361.5 kB / 467.6 MB, free: 3.754 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.847e-05/0.4223, allocations: 47.98 kB / 467.7 MB, free: 3.707 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001675/0.424, allocations: 2.279 MB / 470 MB, free: 1.266 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.486e-06/0.4241, allocations: 11.94 kB / 470 MB, free: 1.254 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004701/0.4288, allocations: 2.498 MB / 472.5 MB, free: 14.6 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006048/0.4294, allocations: 324.3 kB / 472.8 MB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002004/0.4296, allocations: 48 kB / 472.8 MB, free: 14.22 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00104/0.4307, allocations: 139.8 kB / 473 MB, free: 14.08 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003056/0.431, allocations: 168.2 kB / 473.1 MB, free: 13.92 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.545e-05/0.4311, allocations: 47.98 kB / 473.2 MB, free: 13.87 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007029/0.4318, allocations: 0.5303 MB / 473.7 MB, free: 13.34 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4318, allocations: 0 / 473.7 MB, free: 13.34 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001199/0.433, allocations: 351.9 kB / 474.1 MB, free: 13 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * Number of states: 7 (axis.gear.spring.phi_rel,axis.gear.spring.w_rel,axis.motor.La.i,axis.motor.C.v,axis.motor.Jmotor.w,axis.controller.PI.x,axis.initializeFlange.phi_flange) * Number of discrete variables: 8 (pathPlanning.terminateSimulation.condition,$whenCondition1,axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.locked,axis.gear.bearingFriction.mode,pathPlanning.pathToAxis1.moving[1],pathPlanning.path.noWphase) * Number of discrete states: 3 (axis.gear.bearingFriction.mode,axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004995/0.438, allocations: 3.113 MB / 477.2 MB, free: 9.73 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004069/0.4421, allocations: 2.047 MB / 479.2 MB, free: 7.645 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.274e-06/0.4421, allocations: 0 / 479.2 MB, free: 7.645 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002075/0.4442, allocations: 1.063 MB / 480.3 MB, free: 6.574 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001256/0.4455, allocations: 196.4 kB / 480.5 MB, free: 6.387 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02091/0.4664, allocations: 12.22 MB / 492.7 MB, free: 9.605 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009661/0.4674, allocations: 1.186 MB / 493.9 MB, free: 8.391 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0008525/0.4683, allocations: 164.4 kB / 494 MB, free: 8.227 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008502/0.4691, allocations: 0.5149 MB / 494.6 MB, free: 7.711 MB / 414.1 MB Notification: Performance of SimCode: time 2.775e-06/0.4691, allocations: 0 / 494.6 MB, free: 7.711 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06556/0.5347, allocations: 29.4 MB / 0.5117 GB, free: 10.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.58/14.12, allocations: 11.62 kB / 0.5117 GB, free: 10.59 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.csv --start-time 0 --stop-time 1.6 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00064 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1)