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.0007606/0.0007606, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.0008219/0.0008219, allocations: 172.7 kB / 15.95 MB, free: 208 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.311/1.311, allocations: 223.3 MB / 240 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.1785/0.1785, allocations: 9.111 MB / 300.2 MB, free: 2.84 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003078/0.000308, allocations: 8 kB / 363.2 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09324/0.09357, allocations: 52.44 MB / 415.6 MB, free: 8.473 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrabTo3D): time 0.2185/0.3121, allocations: 42.65 MB / 458.3 MB, free: 17.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02123/0.3334, allocations: 9.906 MB / 468.2 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009926/0.3433, allocations: 193.9 kB / 468.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006463/0.3498, allocations: 2.14 MB / 470.5 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01683/0.3667, allocations: 7.234 MB / 477.8 MB, free: 6.961 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003055/0.3698, allocations: 0.5132 MB / 478.3 MB, free: 6.758 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008637/0.3784, allocations: 5.668 MB / 483.9 MB, free: 4.777 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005458/0.3839, allocations: 3.034 MB / 487 MB, free: 3.566 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003181/0.3872, allocations: 1.579 MB / 488.6 MB, free: 3.047 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004176/0.3914, allocations: 2.482 MB / 491 MB, free: 2.293 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00115/0.3925, allocations: 209.6 kB / 491.2 MB, free: 2.293 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002682/0.3952, allocations: 0.9038 MB / 492.1 MB, free: 2.109 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002686/0.3979, allocations: 2.096 MB / 494.2 MB, free: 1.457 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002049/0.4, allocations: 1.103 MB / 495.3 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009137/0.4091, allocations: 6.549 MB / 0.4901 GB, free: 12.49 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.4092, allocations: 0 / 0.4901 GB, free: 12.49 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.4092, allocations: 1 kB / 0.4901 GB, free: 12.49 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000338/0.4095, allocations: 0 / 0.4901 GB, free: 12.49 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.01585/0.4254, allocations: 5.517 MB / 0.4955 GB, free: 7.984 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.329e-05/0.4254, allocations: 8.031 kB / 0.4955 GB, free: 7.977 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00371/0.4292, allocations: 0.9484 MB / 0.4964 GB, free: 7.02 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01315/0.4423, allocations: 3.492 MB / 0.4999 GB, free: 3.516 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006659/0.449, allocations: 3.005 MB / 0.5028 GB, free: 460 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002825/0.4493, allocations: 272.9 kB / 0.5031 GB, free: 188 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001514/0.4509, allocations: 371.6 kB / 0.5034 GB, free: 15.82 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02197/0.4729, allocations: 14 MB / 0.5171 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001436/0.473, allocations: 59.45 kB / 0.5171 GB, free: 0.875 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006743/0.4737, allocations: 179.8 kB / 0.5173 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004346/0.4781, allocations: 3.136 MB / 0.5204 GB, free: 13.56 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02247/0.5006, allocations: 12.16 MB / 0.5322 GB, free: 1.398 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2634/0.764, allocations: 52.04 MB / 0.5831 GB, free: 105.5 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009786/0.7739, allocations: 5.058 MB / 0.588 GB, free: 104.3 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002509/0.7764, allocations: 1.795 MB / 0.5898 GB, free: 104.3 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01186/0.7883, allocations: 8.01 MB / 0.5976 GB, free: 102 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.997e-05/0.7884, allocations: 55.17 kB / 0.5976 GB, free: 101.9 MB / 446.1 MB Notification: Performance of pre-optimization done (n=242): time 4.869e-06/0.7884, allocations: 0 / 0.5976 GB, free: 101.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=272): time 0.02521/0.8136, allocations: 14.46 MB / 0.6118 GB, free: 96.95 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.728e-05/0.8137, allocations: 157.5 kB / 0.6119 GB, free: 96.79 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007418/0.8211, allocations: 5.369 MB / 0.6171 GB, free: 94.86 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003556/0.8215, allocations: 61.58 kB / 0.6172 GB, free: 94.8 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002058/0.8236, allocations: 4.098 MB / 0.6212 GB, free: 91.65 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009829/0.8246, allocations: 1.037 MB / 0.6222 GB, free: 90.9 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003122/0.8249, allocations: 157.2 kB / 0.6224 GB, free: 90.78 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0003578/0.8252, allocations: 0.6585 MB / 0.623 GB, free: 90.32 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003974/0.8292, allocations: 2.509 MB / 0.6255 GB, free: 89.52 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005516/0.8348, allocations: 7.323 MB / 0.6326 GB, free: 82.29 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005859/0.8406, allocations: 4.29 MB / 0.6368 GB, free: 80.75 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001078/0.8408, allocations: 47.38 kB / 0.6368 GB, free: 80.75 MB / 446.1 MB Notification: Performance of matching and sorting (n=1082) (initialization): time 0.01386/0.8546, allocations: 9.837 MB / 0.6465 GB, free: 76.95 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.021e-05/0.8547, allocations: 82.44 kB / 0.6465 GB, free: 76.95 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000154/0.8549, allocations: 169.9 kB / 0.6467 GB, free: 76.95 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009597/0.8559, allocations: 0.5125 MB / 0.6472 GB, free: 76.88 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004801/0.8607, allocations: 1.846 MB / 0.649 GB, free: 76.66 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004851/0.8656, allocations: 4.879 MB / 0.6538 GB, free: 73.14 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00529/0.8709, allocations: 425 kB / 0.6542 GB, free: 72.99 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007037/0.8716, allocations: 496.8 kB / 0.6546 GB, free: 72.93 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.004261/0.8758, allocations: 2.85 MB / 0.6574 GB, free: 71.58 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007888/0.8766, allocations: 461 kB / 0.6579 GB, free: 71.22 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004237/0.8809, allocations: 2.962 MB / 0.6608 GB, free: 68.68 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.598e-05/0.8809, allocations: 35.44 kB / 0.6608 GB, free: 68.64 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.319e-05/0.881, allocations: 4.812 kB / 0.6608 GB, free: 68.64 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.929e-05/0.881, allocations: 15.39 kB / 0.6608 GB, free: 68.64 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01422/0.8952, allocations: 9.098 MB / 0.6697 GB, free: 61.04 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-05/0.8953, allocations: 8 kB / 0.6697 GB, free: 61.03 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001396/0.8967, allocations: 381.2 kB / 0.6701 GB, free: 60.72 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006062/0.8973, allocations: 278 kB / 0.6703 GB, free: 60.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001225/0.8974, allocations: 51.66 kB / 0.6704 GB, free: 60.45 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003018/0.9004, allocations: 4.035 MB / 0.6743 GB, free: 56.46 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.971e-06/0.9005, allocations: 11.94 kB / 0.6743 GB, free: 56.45 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006044/0.9065, allocations: 5.626 MB / 0.6798 GB, free: 51.25 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00128/0.9078, allocations: 0.5209 MB / 0.6803 GB, free: 50.73 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009533/0.9088, allocations: 51.94 kB / 0.6804 GB, free: 50.69 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001872/0.9107, allocations: 105.3 kB / 0.6805 GB, free: 50.62 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002289/0.9109, allocations: 167.1 kB / 0.6806 GB, free: 50.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001281/0.911, allocations: 83.2 kB / 0.6807 GB, free: 50.43 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004367/0.9154, allocations: 3.367 MB / 0.684 GB, free: 47.66 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.9154, allocations: 4 kB / 0.684 GB, free: 47.66 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006573/0.922, allocations: 1.258 MB / 0.6852 GB, free: 46.41 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.006218/0.9283, allocations: 6.311 MB / 0.6914 GB, free: 40.22 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008415/0.9367, allocations: 6.122 MB / 0.6974 GB, free: 34.12 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.702e-06/0.9367, allocations: 0 / 0.6974 GB, free: 34.12 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002045/0.9388, allocations: 1.799 MB / 0.6991 GB, free: 32.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004395/0.9432, allocations: 0.6047 MB / 0.6997 GB, free: 31.71 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07884/1.022, allocations: 45.49 MB / 0.7442 GB, free: 13.52 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006428/1.029, allocations: 4.231 MB / 0.7483 GB, free: 9.262 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006684/1.035, allocations: 2.705 MB / 0.7509 GB, free: 6.547 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003554/1.039, allocations: 2.62 MB / 0.7535 GB, free: 3.926 MB / 478.1 MB Notification: Performance of SimCode: time 8.81e-07/1.039, allocations: 4 kB / 0.7535 GB, free: 3.922 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.341/1.38, allocations: 99.05 MB / 0.8502 GB, free: 83.95 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001258/1.38, allocations: 195.5 kB / 0.8504 GB, free: 83.71 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.94/5.321, allocations: 0 / 0.8504 GB, free: 83.71 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: