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.6.0/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/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.0006673/0.0006672, allocations: 97.33 kB / 15.36 MB, free: 0.7344 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.004713/0.004713, allocations: 169.1 kB / 16.26 MB, free: 6.652 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.254/1.254, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.139/0.139, allocations: 9.102 MB / 300.5 MB, free: 2.66 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002822/0.0002821, allocations: 12 kB / 363.8 MB, free: 12.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08808/0.08838, allocations: 52.43 MB / 416.2 MB, free: 8.078 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrabTo3D): time 0.1831/0.2716, allocations: 45.83 MB / 462.1 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01695/0.2885, allocations: 10.38 MB / 472.4 MB, free: 7.484 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006406/0.295, allocations: 189.7 kB / 472.6 MB, free: 7.457 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001518/0.2965, allocations: 0.5612 MB / 473.2 MB, free: 7.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004806/0.3014, allocations: 2.416 MB / 475.6 MB, free: 6.207 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009793/0.3023, allocations: 0.5253 MB / 476.1 MB, free: 5.992 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00614/0.3085, allocations: 7.147 MB / 483.3 MB, free: 3.785 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003822/0.3123, allocations: 3.32 MB / 486.6 MB, free: 2.406 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001971/0.3143, allocations: 1.451 MB / 488 MB, free: 1.863 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003056/0.3174, allocations: 2.507 MB / 490.6 MB, free: 1.062 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006316/0.318, allocations: 206.6 kB / 490.8 MB, free: 1.062 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002091/0.3201, allocations: 1.087 MB / 491.8 MB, free: 0.793 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002132/0.3223, allocations: 2.15 MB / 494 MB, free: 108 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002779/0.3251, allocations: 2.666 MB / 496.7 MB, free: 14.2 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008486/0.3336, allocations: 8.025 MB / 0.4929 GB, free: 10.19 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.3336, allocations: 0 / 0.4929 GB, free: 10.19 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.3336, allocations: 4 kB / 0.4929 GB, free: 10.19 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001442/0.3337, allocations: 0 / 0.4929 GB, free: 10.19 MB / 366.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.01059/0.3443, allocations: 5.444 MB / 0.4982 GB, free: 5.426 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.752e-05/0.3444, allocations: 12.59 kB / 0.4982 GB, free: 5.414 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001054/0.3454, allocations: 0.9486 MB / 0.4991 GB, free: 4.457 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01188/0.3573, allocations: 3.495 MB / 0.5025 GB, free: 0.9492 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004761/0.3621, allocations: 3.071 MB / 0.5055 GB, free: 13.82 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001954/0.3623, allocations: 274.7 kB / 0.5058 GB, free: 13.55 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006884/0.363, allocations: 359.7 kB / 0.5061 GB, free: 13.2 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01917/0.3822, allocations: 14.03 MB / 0.5198 GB, free: 14.27 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001285/0.3823, allocations: 59.47 kB / 0.5199 GB, free: 14.21 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000517/0.3829, allocations: 175.8 kB / 0.5201 GB, free: 14.04 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004687/0.3876, allocations: 3.14 MB / 0.5231 GB, free: 10.9 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02129/0.4089, allocations: 12.21 MB / 0.5351 GB, free: 14.68 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2334/0.6423, allocations: 52.07 MB / 0.5859 GB, free: 86.01 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00929/0.6516, allocations: 5.074 MB / 0.5909 GB, free: 84.85 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001976/0.6536, allocations: 1.803 MB / 0.5926 GB, free: 84.81 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01/0.6636, allocations: 8.001 MB / 0.6004 GB, free: 82.45 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.5e-05/0.6637, allocations: 59.16 kB / 0.6005 GB, free: 82.41 MB / 446.1 MB Notification: Performance of pre-optimization done (n=242): time 3.737e-06/0.6637, allocations: 0 / 0.6005 GB, free: 82.41 MB / 446.1 MB Notification: Performance of matching and sorting (n=272): time 0.02548/0.6892, allocations: 14.49 MB / 0.6146 GB, free: 77.41 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.992e-05/0.6893, allocations: 156 kB / 0.6148 GB, free: 77.26 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007162/0.6964, allocations: 5.389 MB / 0.6201 GB, free: 75.34 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003044/0.6968, allocations: 61.17 kB / 0.6201 GB, free: 75.28 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001873/0.6986, allocations: 4.099 MB / 0.6241 GB, free: 72.12 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007845/0.6994, allocations: 1.041 MB / 0.6251 GB, free: 71.37 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000723/0.7002, allocations: 0.6838 MB / 0.6258 GB, free: 71.07 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.679e-05/0.7002, allocations: 305.1 kB / 0.6261 GB, free: 70.77 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003567/0.7038, allocations: 2.535 MB / 0.6286 GB, free: 69.97 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005104/0.7089, allocations: 7.355 MB / 0.6357 GB, free: 62.75 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008917/0.7178, allocations: 10.75 MB / 0.6462 GB, free: 53.79 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001055/0.718, allocations: 48.06 kB / 0.6463 GB, free: 53.79 MB / 446.1 MB Notification: Performance of matching and sorting (n=1082) (initialization): time 0.0135/0.7315, allocations: 9.911 MB / 0.656 GB, free: 49.96 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.708e-05/0.7316, allocations: 80.84 kB / 0.656 GB, free: 49.96 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001566/0.7317, allocations: 169.6 kB / 0.6562 GB, free: 49.96 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009316/0.7327, allocations: 0.4903 MB / 0.6567 GB, free: 49.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004722/0.7374, allocations: 1.846 MB / 0.6585 GB, free: 49.67 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004062/0.7415, allocations: 4.891 MB / 0.6633 GB, free: 46.14 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005465/0.747, allocations: 410.6 kB / 0.6637 GB, free: 45.78 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005434/0.7475, allocations: 496.3 kB / 0.6641 GB, free: 45.3 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 (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): 2 systems {(2,17,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003824/0.7514, allocations: 2.857 MB / 0.6669 GB, free: 42.79 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000596/0.752, allocations: 465.9 kB / 0.6674 GB, free: 42.33 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003922/0.7559, allocations: 2.973 MB / 0.6703 GB, free: 39.77 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.77e-05/0.7559, allocations: 34.67 kB / 0.6703 GB, free: 39.74 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.126e-05/0.756, allocations: 7.125 kB / 0.6703 GB, free: 39.73 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.749e-05/0.756, allocations: 14.72 kB / 0.6703 GB, free: 39.73 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01176/0.7677, allocations: 9.113 MB / 0.6792 GB, free: 32.12 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.359e-05/0.7678, allocations: 8.844 kB / 0.6792 GB, free: 32.11 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001443/0.7692, allocations: 382.4 kB / 0.6796 GB, free: 31.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006302/0.7699, allocations: 269.1 kB / 0.6799 GB, free: 31.59 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001149/0.77, allocations: 54.5 kB / 0.6799 GB, free: 31.54 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002886/0.7729, allocations: 4.045 MB / 0.6839 GB, free: 27.54 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/0.7729, allocations: 11.94 kB / 0.6839 GB, free: 27.52 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00575/0.7787, allocations: 5.654 MB / 0.6894 GB, free: 22.14 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00106/0.7797, allocations: 0.5263 MB / 0.6899 GB, free: 21.59 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004254/0.7802, allocations: 46.8 kB / 0.6899 GB, free: 21.55 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001453/0.7816, allocations: 111.9 kB / 0.6901 GB, free: 21.44 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002508/0.7819, allocations: 157.6 kB / 0.6902 GB, free: 21.28 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001256/0.782, allocations: 83.53 kB / 0.6903 GB, free: 21.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004088/0.7861, allocations: 3.393 MB / 0.6936 GB, free: 17.82 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.7861, allocations: 0 / 0.6936 GB, free: 17.82 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005291/0.7914, allocations: 1.26 MB / 0.6948 GB, free: 16.57 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 (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): 2 systems {(2,15,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005892/0.7973, allocations: 6.328 MB / 0.701 GB, free: 10.09 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008344/0.8057, allocations: 6.153 MB / 0.707 GB, free: 3.953 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.73e-06/0.8057, allocations: 0 / 0.707 GB, free: 3.953 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001913/0.8076, allocations: 1.818 MB / 0.7088 GB, free: 2.125 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00748/0.8151, allocations: 0.6022 MB / 0.7094 GB, free: 1.535 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2552/1.07, allocations: 71.22 MB / 0.7789 GB, free: 166.4 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004059/1.074, allocations: 4.233 MB / 0.7831 GB, free: 165.6 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.005391/1.08, allocations: 2.706 MB / 0.7857 GB, free: 165.5 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002507/1.082, allocations: 2.623 MB / 0.7883 GB, free: 164.4 MB / 0.4981 GB Notification: Performance of SimCode: time 9.31e-07/1.082, allocations: 0 / 0.7883 GB, free: 164.4 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.86/1.942, allocations: 88.57 MB / 0.8748 GB, free: 103.5 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000148/1.943, allocations: 202 kB / 0.875 GB, free: 103.3 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.941/5.884, allocations: 0 / 0.875 GB, free: 103.3 MB / 0.4981 GB (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/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)