Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.WheelBasedCraneCrab.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo) 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(PlanarMechanics.Examples.WheelBasedCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_WheelBasedCraneCrab",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.WheelBasedCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_WheelBasedCraneCrab",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.0009302/0.0009301, allocations: 99 kB / 15.05 MB, free: 1.105 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.001012/0.001012, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.331/1.331, allocations: 223.2 MB / 239.9 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.162/0.162, allocations: 9.104 MB / 300.1 MB, free: 2.754 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003424/0.0003426, allocations: 8 kB / 363.1 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1092, allocations: 52.43 MB / 415.5 MB, free: 8.48 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.WheelBasedCraneCrab): time 0.2602/0.3694, allocations: 22.89 MB / 438.4 MB, free: 31.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01326/0.3828, allocations: 5.987 MB / 444.4 MB, free: 27.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005033/0.3878, allocations: 98.56 kB / 444.5 MB, free: 27.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003525/0.3914, allocations: 1.119 MB / 445.6 MB, free: 27.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01217/0.4036, allocations: 3.458 MB / 449.1 MB, free: 25.39 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001296/0.4049, allocations: 102.1 kB / 449.2 MB, free: 25.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002506/0.4075, allocations: 1.357 MB / 450.5 MB, free: 24.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008778/0.4084, allocations: 0.7365 MB / 451.3 MB, free: 24.4 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008226/0.4092, allocations: 0.6503 MB / 451.9 MB, free: 24.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001027/0.4102, allocations: 0.9244 MB / 452.8 MB, free: 23.85 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002615/0.4105, allocations: 121.3 kB / 453 MB, free: 23.85 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001301/0.4118, allocations: 0.6483 MB / 453.6 MB, free: 23.72 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008367/0.4127, allocations: 1.017 MB / 454.6 MB, free: 23.37 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004561/0.4131, allocations: 0.6327 MB / 455.3 MB, free: 22.89 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003015/0.4161, allocations: 3.628 MB / 458.9 MB, free: 22.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.4162, allocations: 0 / 458.9 MB, free: 22.07 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.4162, allocations: 0 / 458.9 MB, free: 22.07 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.466e-05/0.4163, allocations: 0 / 458.9 MB, free: 22.07 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1171 * Number of variables: 1171 Notification: Performance of Generate backend data structure: time 0.01036/0.4266, allocations: 4.235 MB / 463.1 MB, free: 20.38 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.571e-05/0.4267, allocations: 13.38 kB / 463.1 MB, free: 20.38 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001033/0.4277, allocations: 0.5396 MB / 463.7 MB, free: 20.1 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008256/0.436, allocations: 2.163 MB / 465.8 MB, free: 19.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00414/0.4402, allocations: 1.295 MB / 467.1 MB, free: 18.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001356/0.4404, allocations: 147.9 kB / 467.3 MB, free: 18.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005569/0.4409, allocations: 186 kB / 467.5 MB, free: 18.78 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01835/0.4593, allocations: 8.385 MB / 475.8 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.832e-05/0.4594, allocations: 27.38 kB / 475.9 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003294/0.4598, allocations: 91.36 kB / 476 MB, free: 14.92 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003933/0.4637, allocations: 1.94 MB / 477.9 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01984/0.4835, allocations: 7.579 MB / 485.5 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04324/0.5268, allocations: 26.36 MB / 0.4998 GB, free: 2.461 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007172/0.5341, allocations: 2.605 MB / 0.5024 GB, free: 15.75 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002425/0.5365, allocations: 2.395 MB / 0.5047 GB, free: 12.97 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.792e-05/0.5366, allocations: 43.88 kB / 0.5048 GB, free: 12.92 MB / 382.1 MB Notification: Performance of pre-optimization done (n=168): time 3.997e-06/0.5366, allocations: 0 / 0.5048 GB, free: 12.92 MB / 382.1 MB Notification: Performance of matching and sorting (n=183): time 0.02086/0.5575, allocations: 8.369 MB / 0.5129 GB, free: 4.391 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.315e-05/0.5576, allocations: 64.72 kB / 0.513 GB, free: 4.312 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003771/0.5613, allocations: 2.497 MB / 0.5154 GB, free: 1.781 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001425/0.5615, allocations: 53.7 kB / 0.5155 GB, free: 1.723 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001513/0.563, allocations: 2.058 MB / 0.5175 GB, free: 15.63 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006307/0.5637, allocations: 0.6745 MB / 0.5182 GB, free: 14.95 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001723/0.5638, allocations: 84 kB / 0.5182 GB, free: 14.87 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002902/0.5641, allocations: 491.4 kB / 0.5187 GB, free: 14.38 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002146/0.5663, allocations: 1.32 MB / 0.52 GB, free: 13.05 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004143/0.5704, allocations: 3.711 MB / 0.5236 GB, free: 8.133 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003443/0.5739, allocations: 2.226 MB / 0.5258 GB, free: 5.906 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.88e-05/0.574, allocations: 27.94 kB / 0.5258 GB, free: 5.879 MB / 398.1 MB Notification: Performance of matching and sorting (n=556) (initialization): time 0.009725/0.5837, allocations: 5.133 MB / 0.5308 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.313e-05/0.5838, allocations: 52.05 kB / 0.5309 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.863e-05/0.5839, allocations: 84 kB / 0.531 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006504/0.5846, allocations: 277.7 kB / 0.5312 GB, free: 344 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002997/0.5876, allocations: 0.9396 MB / 0.5321 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003704/0.5913, allocations: 2.991 MB / 0.5351 GB, free: 12.27 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002935/0.5943, allocations: 191.9 kB / 0.5353 GB, free: 12.08 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005373/0.5948, allocations: 256 kB / 0.5355 GB, free: 11.83 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 384 * Number of states: 0 () * Number of discrete variables: 12 (body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (516): * Single equations (assignments): 511 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003047/0.5979, allocations: 1.616 MB / 0.5371 GB, free: 10.2 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004246/0.5983, allocations: 229.1 kB / 0.5373 GB, free: 9.973 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003911/0.6022, allocations: 2.391 MB / 0.5396 GB, free: 7.559 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001139/0.6024, allocations: 27.98 kB / 0.5397 GB, free: 7.531 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.366e-06/0.6024, allocations: 7.938 kB / 0.5397 GB, free: 7.523 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.938e-05/0.6024, allocations: 7.969 kB / 0.5397 GB, free: 7.516 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01212/0.6145, allocations: 6.79 MB / 0.5463 GB, free: 0.5156 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.84e-05/0.6146, allocations: 15.94 kB / 0.5463 GB, free: 0.5 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009404/0.6155, allocations: 263.6 kB / 0.5466 GB, free: 248 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004697/0.616, allocations: 170 kB / 0.5467 GB, free: 76 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001012/0.6161, allocations: 43.98 kB / 0.5468 GB, free: 32 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002814/0.619, allocations: 2.482 MB / 0.5492 GB, free: 13.42 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.768e-06/0.619, allocations: 15.94 kB / 0.5492 GB, free: 13.4 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005514/0.6245, allocations: 4.281 MB / 0.5534 GB, free: 8.68 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008156/0.6254, allocations: 318.2 kB / 0.5537 GB, free: 8.348 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002559/0.6256, allocations: 35.98 kB / 0.5537 GB, free: 8.312 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008703/0.6265, allocations: 71.84 kB / 0.5538 GB, free: 8.242 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002089/0.6267, allocations: 128.6 kB / 0.5539 GB, free: 8.117 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001008/0.6268, allocations: 67.98 kB / 0.554 GB, free: 8.051 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00256/0.6294, allocations: 1.597 MB / 0.5555 GB, free: 6.438 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.6294, allocations: 0 / 0.5555 GB, free: 6.438 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003996/0.6334, allocations: 0.6914 MB / 0.5562 GB, free: 5.746 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 40 * Number of states: 5 (idealRolling.w,body.r[1],body.phi,revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (142): * Single equations (assignments): 137 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007451/0.6409, allocations: 7.361 MB / 0.5634 GB, free: 14.08 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006256/0.6472, allocations: 3.344 MB / 0.5667 GB, free: 10.74 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.286e-05/0.6472, allocations: 1.562 kB / 0.5667 GB, free: 10.74 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001774/0.649, allocations: 1.131 MB / 0.5678 GB, free: 9.605 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001813/0.6508, allocations: 363 kB / 0.5681 GB, free: 9.258 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2894/0.9403, allocations: 79.28 MB / 0.6455 GB, free: 43.06 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003011/0.9434, allocations: 2.664 MB / 0.6481 GB, free: 42.3 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003558/0.947, allocations: 1.313 MB / 0.6494 GB, free: 42.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002025/0.949, allocations: 1.295 MB / 0.6507 GB, free: 42.19 MB / 446.1 MB Notification: Performance of SimCode: time 3.887e-06/0.949, allocations: 1.125 kB / 0.6507 GB, free: 42.19 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1027/1.052, allocations: 52.47 MB / 0.7019 GB, free: 15.16 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001634/1.052, allocations: 193.7 kB / 0.7021 GB, free: 14.93 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.322/4.374, allocations: 0 / 0.7021 GB, free: 14.93 MB / 446.1 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.WheelBasedCraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.WheelBasedCraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.WheelBasedCraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.WheelBasedCraneCrab.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_WheelBasedCraneCrab_fmu --startTime=0 --stopTime=4.5 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_WheelBasedCraneCrab.fmu > PlanarMechanics_PlanarMechanics.Examples.WheelBasedCraneCrab.pipe 2>&1) Environment - environmentSimulation: