Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.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.CraneCrabTo3D,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_CraneCrabTo3D",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.CraneCrabTo3D,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_CraneCrabTo3D",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.001025/0.001025, allocations: 99.55 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.0009722/0.0009723, allocations: 177.3 kB / 15.94 MB, free: 228 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.394/1.394, allocations: 223.2 MB / 239.9 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.184/0.184, allocations: 9.107 MB / 300.1 MB, free: 2.699 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003663/0.0003665, allocations: 8 kB / 363.1 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1377/0.1381, allocations: 52.43 MB / 415.5 MB, free: 8.484 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrabTo3D): time 0.2958/0.4339, allocations: 40.21 MB / 455.7 MB, free: 19.31 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02119/0.4552, allocations: 10.32 MB / 466 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007805/0.463, allocations: 189.6 kB / 466.2 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006451/0.4695, allocations: 1.995 MB / 468.2 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02004/0.4896, allocations: 6.154 MB / 474.4 MB, free: 8.656 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002867/0.4925, allocations: 0.5016 MB / 474.9 MB, free: 8.457 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005895/0.4984, allocations: 2.941 MB / 477.8 MB, free: 7.172 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005464/0.5039, allocations: 3.017 MB / 480.8 MB, free: 5.977 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002699/0.5066, allocations: 1.326 MB / 482.2 MB, free: 5.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003287/0.5099, allocations: 1.826 MB / 484 MB, free: 4.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001384/0.5113, allocations: 206.9 kB / 484.2 MB, free: 4.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003318/0.5147, allocations: 0.8899 MB / 485.1 MB, free: 4.754 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003432/0.5181, allocations: 1.953 MB / 487 MB, free: 4.109 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00258/0.5207, allocations: 1.104 MB / 488.1 MB, free: 3.312 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01259/0.5333, allocations: 6.538 MB / 494.7 MB, free: 1.086 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.471e-06/0.5334, allocations: 0 / 494.7 MB, free: 1.086 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.825e-06/0.5334, allocations: 0 / 494.7 MB, free: 1.086 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0004809/0.5339, allocations: 1.5 kB / 494.7 MB, free: 1.086 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: 2075 * Number of variables: 2075 Notification: Performance of Generate backend data structure: time 0.0213/0.5552, allocations: 5.624 MB / 0.4886 GB, free: 13.31 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.756e-05/0.5553, allocations: 10.41 kB / 0.4886 GB, free: 13.31 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003898/0.5592, allocations: 0.9471 MB / 0.4895 GB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01581/0.575, allocations: 4.14 MB / 0.4936 GB, free: 9.785 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008424/0.5835, allocations: 2.793 MB / 0.4963 GB, free: 6.934 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000293/0.5838, allocations: 278.7 kB / 0.4965 GB, free: 6.66 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002561/0.5864, allocations: 359.7 kB / 0.4969 GB, free: 6.309 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03134/0.6177, allocations: 14.05 MB / 0.5106 GB, free: 7.371 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001947/0.618, allocations: 55.47 kB / 0.5107 GB, free: 7.316 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008725/0.6189, allocations: 175.8 kB / 0.5108 GB, free: 7.145 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005357/0.6242, allocations: 3.148 MB / 0.5139 GB, free: 3.992 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02677/0.651, allocations: 12.22 MB / 0.5258 GB, free: 7.762 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08395/0.735, allocations: 52.1 MB / 0.5767 GB, free: 2.332 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2961/1.031, allocations: 5.111 MB / 0.5817 GB, free: 120.4 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01385/1.045, allocations: 7.286 MB / 0.5888 GB, free: 118.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.901e-05/1.045, allocations: 56.34 kB / 0.5889 GB, free: 118.8 MB / 446.1 MB Notification: Performance of pre-optimization done (n=242): time 5.741e-06/1.045, allocations: 5.562 kB / 0.5889 GB, free: 118.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=272): time 0.03211/1.077, allocations: 15 MB / 0.6035 GB, free: 112.3 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.697e-05/1.077, allocations: 156.6 kB / 0.6037 GB, free: 112.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008588/1.086, allocations: 5.477 MB / 0.609 GB, free: 110.2 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006683/1.087, allocations: 65.77 kB / 0.6091 GB, free: 110.2 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002944/1.09, allocations: 4.098 MB / 0.6131 GB, free: 107 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001471/1.091, allocations: 1.03 MB / 0.6141 GB, free: 106.3 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005503/1.092, allocations: 161 kB / 0.6143 GB, free: 106.1 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0005491/1.092, allocations: 0.6575 MB / 0.6149 GB, free: 105.7 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005069/1.097, allocations: 2.51 MB / 0.6174 GB, free: 104.9 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008588/1.106, allocations: 7.292 MB / 0.6245 GB, free: 97.59 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008958/1.115, allocations: 4.287 MB / 0.6287 GB, free: 95.85 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003036/1.115, allocations: 48.41 kB / 0.6287 GB, free: 95.85 MB / 446.1 MB Notification: Performance of matching and sorting (n=1082) (initialization): time 0.02328/1.139, allocations: 9.838 MB / 0.6383 GB, free: 92.04 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001693/1.139, allocations: 85.66 kB / 0.6384 GB, free: 92.03 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002914/1.139, allocations: 168.4 kB / 0.6386 GB, free: 92.03 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001273/1.14, allocations: 0.5183 MB / 0.6391 GB, free: 91.96 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006664/1.147, allocations: 1.841 MB / 0.6409 GB, free: 91.74 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00468/1.152, allocations: 4.982 MB / 0.6457 GB, free: 87.52 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007627/1.159, allocations: 416 kB / 0.6461 GB, free: 87.16 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001784/1.161, allocations: 495 kB / 0.6466 GB, free: 86.68 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 772 * Number of states: 0 () * Number of discrete variables: 36 (fixedRotation3D.color[3],fixedRotation3D.color[2],fixedRotation3D.color[1],body3D.sphereColor[3],body3D.sphereColor[2],body3D.sphereColor[1],prismatic3D.boxColor[3],prismatic3D.boxColor[2],prismatic3D.boxColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (1004): * Single equations (assignments): 994 * Array equations: 8 * 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: 2 {(2,100.0%) 17,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006817/1.168, allocations: 2.846 MB / 0.6494 GB, free: 84.18 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009612/1.169, allocations: 458 kB / 0.6498 GB, free: 83.72 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004459/1.174, allocations: 2.965 MB / 0.6527 GB, free: 81.18 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.254e-05/1.174, allocations: 30.72 kB / 0.6527 GB, free: 81.15 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.548e-05/1.174, allocations: 4.625 kB / 0.6527 GB, free: 81.14 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.239e-05/1.174, allocations: 17.64 kB / 0.6528 GB, free: 81.14 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01594/1.19, allocations: 9.115 MB / 0.6617 GB, free: 73.53 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.98e-05/1.19, allocations: 4 kB / 0.6617 GB, free: 73.53 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001566/1.191, allocations: 381.9 kB / 0.662 GB, free: 73.21 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006716/1.192, allocations: 270 kB / 0.6623 GB, free: 73 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001572/1.192, allocations: 51.8 kB / 0.6623 GB, free: 72.96 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003177/1.195, allocations: 4.128 MB / 0.6664 GB, free: 68.88 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.212e-06/1.195, allocations: 11.94 kB / 0.6664 GB, free: 68.87 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00664/1.202, allocations: 6.699 MB / 0.6729 GB, free: 62.43 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001598/1.204, allocations: 0.5294 MB / 0.6734 GB, free: 61.91 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006694/1.204, allocations: 48 kB / 0.6735 GB, free: 61.86 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001606/1.206, allocations: 109.6 kB / 0.6736 GB, free: 61.79 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002621/1.206, allocations: 163.2 kB / 0.6737 GB, free: 61.68 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001362/1.206, allocations: 75.89 kB / 0.6738 GB, free: 61.61 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00542/1.212, allocations: 3.455 MB / 0.6772 GB, free: 58.35 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.6e-07/1.212, allocations: 0 / 0.6772 GB, free: 58.35 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00839/1.22, allocations: 1.281 MB / 0.6784 GB, free: 57.08 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 6 (revolute.phi,revolute.w,damper1D.s_rel,damper1D.v_rel,prismatic3D.s,prismatic3D.v) * 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 (207): * Single equations (assignments): 199 * Array equations: 6 * 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: 2 {(2,100.0%) 15,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007563/1.228, allocations: 8.741 MB / 0.687 GB, free: 48.07 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009885/1.238, allocations: 6.116 MB / 0.693 GB, free: 41.97 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.387e-06/1.238, allocations: 0 / 0.693 GB, free: 41.97 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002397/1.24, allocations: 1.803 MB / 0.6947 GB, free: 40.16 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003617/1.244, allocations: 0.5846 MB / 0.6953 GB, free: 39.59 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3149/1.559, allocations: 143.3 MB / 0.8353 GB, free: 36.29 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00729/1.566, allocations: 4.352 MB / 0.8395 GB, free: 35.45 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.007061/1.573, allocations: 2.712 MB / 0.8422 GB, free: 35.23 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00468/1.578, allocations: 2.618 MB / 0.8447 GB, free: 35.22 MB / 462.1 MB Notification: Performance of SimCode: time 1.492e-06/1.578, allocations: 0 / 0.8447 GB, free: 35.22 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4296/2.007, allocations: 98.6 MB / 0.941 GB, free: 127.2 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002038/2.008, allocations: 191.7 kB / 0.9412 GB, free: 127 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.608/6.616, allocations: 0 / 0.9412 GB, free: 127 MB / 478.1 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_CraneCrabTo3D_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_CraneCrabTo3D.fmu > PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.pipe 2>&1) Environment - environmentSimulation: