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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.0009815/0.0009816, allocations: 173.9 kB / 7.648 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.323/1.323, allocations: 221.5 MB / 229.6 MB, free: 3.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009104/0.0009104, allocations: 90.77 kB / 280.5 MB, free: 1.148 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04011/0.04011, allocations: 8.833 MB / 340.1 MB, free: 5.598 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.695e-05/1.698e-05, allocations: 0 / 398.8 MB, free: 66.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1193/0.1194, allocations: 52.39 MB / 451.2 MB, free: 14.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4003/0.5197, allocations: 101.3 MB / 0.5396 GB, free: 7.797 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002106/0.52, allocations: 74.97 kB / 0.5396 GB, free: 7.762 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5627/1.083, allocations: 117.4 MB / 0.6543 GB, free: 99.06 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.056e-06/1.083, allocations: 1.094 kB / 0.6543 GB, free: 99.06 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003571/1.083, allocations: 96.36 kB / 0.6544 GB, free: 99.06 MB / 458.7 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.02169/1.105, allocations: 5.336 MB / 0.6596 GB, free: 97.11 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.215e-05/1.105, allocations: 12.86 kB / 0.6596 GB, free: 97.11 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01958/1.124, allocations: 3.897 MB / 0.6634 GB, free: 96.73 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01405/1.139, allocations: 4.951 MB / 0.6683 GB, free: 96.09 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003129/1.139, allocations: 180.7 kB / 0.6685 GB, free: 96.09 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002682/1.142, allocations: 307.4 kB / 0.6687 GB, free: 96.09 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01607/1.158, allocations: 8.938 MB / 0.6775 GB, free: 96.05 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02585/1.184, allocations: 12.88 MB / 0.69 GB, free: 93 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002454/1.184, allocations: 71 kB / 0.6901 GB, free: 93 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001524/1.185, allocations: 33.47 kB / 0.6901 GB, free: 93 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001951/1.187, allocations: 1.531 MB / 0.6916 GB, free: 92.99 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06704/1.254, allocations: 57.92 MB / 0.7482 GB, free: 53.34 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004798/1.259, allocations: 3.915 MB / 0.752 GB, free: 51.11 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001656/1.261, allocations: 1.353 MB / 0.7533 GB, free: 50.61 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00856/1.27, allocations: 5.068 MB / 0.7583 GB, free: 47.88 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.057e-05/1.27, allocations: 55.58 kB / 0.7583 GB, free: 47.82 MB / 458.7 MB Notification: Performance of pre-optimization done (n=231): time 5.22e-06/1.27, allocations: 0 / 0.7583 GB, free: 47.82 MB / 458.7 MB Notification: Performance of matching and sorting (n=261): time 0.02026/1.29, allocations: 11.62 MB / 0.7697 GB, free: 39.09 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.73e-05/1.29, allocations: 166.4 kB / 0.7699 GB, free: 38.89 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005679/1.296, allocations: 4.026 MB / 0.7738 GB, free: 35.35 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004415/1.296, allocations: 29.7 kB / 0.7738 GB, free: 35.31 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002337/1.299, allocations: 4.223 MB / 0.7779 GB, free: 31.48 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00119/1.3, allocations: 0.9849 MB / 0.7789 GB, free: 30.6 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002957/1.3, allocations: 0 / 0.7789 GB, free: 30.6 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003792/1.3, allocations: 0.6644 MB / 0.7796 GB, free: 30.02 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002977/1.303, allocations: 2.343 MB / 0.7818 GB, free: 27.92 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004789/1.308, allocations: 7.342 MB / 0.789 GB, free: 18.44 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005495/1.314, allocations: 4.2 MB / 0.7931 GB, free: 14.86 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.944e-05/1.314, allocations: 52 kB / 0.7932 GB, free: 14.81 MB / 458.7 MB Notification: Performance of matching and sorting (n=1113) (initialization): time 0.01438/1.328, allocations: 8.804 MB / 0.8018 GB, free: 7.039 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.156e-05/1.328, allocations: 87.95 kB / 0.8018 GB, free: 6.953 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001999/1.329, allocations: 183.9 kB / 0.802 GB, free: 6.773 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008767/1.329, allocations: 484.6 kB / 0.8025 GB, free: 6.34 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005941/1.335, allocations: 1.932 MB / 0.8044 GB, free: 4.645 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00425/1.34, allocations: 4.651 MB / 0.8089 GB, free: 144 kB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007682/1.347, allocations: 353 kB / 0.8092 GB, free: 0 / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002322/1.35, allocations: 0.5035 MB / 0.8097 GB, free: 15.5 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 818 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1045): * Single equations (assignments): 1037 * 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%) 17,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002297/1.352, allocations: 0.5437 MB / 0.8103 GB, free: 14.95 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005395/1.357, allocations: 2.906 MB / 0.8131 GB, free: 12.35 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009563/1.358, allocations: 418.6 kB / 0.8135 GB, free: 11.94 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004883/1.363, allocations: 2.659 MB / 0.8161 GB, free: 9.664 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.922e-05/1.363, allocations: 31.94 kB / 0.8161 GB, free: 9.637 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.132e-05/1.363, allocations: 4 kB / 0.8161 GB, free: 9.633 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.245e-05/1.363, allocations: 14.95 kB / 0.8161 GB, free: 9.633 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01504/1.379, allocations: 7.357 MB / 0.8233 GB, free: 3.535 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-05/1.379, allocations: 4 kB / 0.8233 GB, free: 3.531 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001616/1.38, allocations: 361.3 kB / 0.8237 GB, free: 3.234 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006209/1.381, allocations: 229 kB / 0.8239 GB, free: 3.051 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001571/1.381, allocations: 11.75 kB / 0.8239 GB, free: 3.043 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3186/1.7, allocations: 3.831 MB / 0.8277 GB, free: 99.03 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.098e-05/1.7, allocations: 5.844 kB / 0.8277 GB, free: 99.03 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00966/1.709, allocations: 5.748 MB / 0.8333 GB, free: 97.68 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001735/1.711, allocations: 473.9 kB / 0.8337 GB, free: 97.59 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005982/1.712, allocations: 10.38 kB / 0.8337 GB, free: 97.59 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001639/1.713, allocations: 85.28 kB / 0.8338 GB, free: 97.58 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003763/1.714, allocations: 144.6 kB / 0.834 GB, free: 97.58 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001746/1.714, allocations: 72.59 kB / 0.834 GB, free: 97.58 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.005958/1.72, allocations: 2.667 MB / 0.8366 GB, free: 97.4 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.81e-07/1.72, allocations: 3.5 kB / 0.8366 GB, free: 97.4 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008419/1.728, allocations: 1.069 MB / 0.8377 GB, free: 97.4 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (196): * Single equations (assignments): 188 * 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.009504/1.738, allocations: 7.433 MB / 0.8449 GB, free: 94.56 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.009782/1.748, allocations: 5.661 MB / 0.8505 GB, free: 94.31 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.079e-05/1.748, allocations: 0 / 0.8505 GB, free: 94.31 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002459/1.75, allocations: 1.664 MB / 0.8521 GB, free: 94.08 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002971/1.753, allocations: 416.4 kB / 0.8525 GB, free: 94.06 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03127/1.784, allocations: 11.51 MB / 0.8637 GB, free: 91.87 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005422/1.79, allocations: 4.341 MB / 0.868 GB, free: 91.05 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.007117/1.797, allocations: 2.762 MB / 0.8707 GB, free: 91 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004351/1.802, allocations: 2.606 MB / 0.8732 GB, free: 90.99 MB / 474.7 MB Notification: Performance of SimCode: time 9.32e-07/1.802, allocations: 0 / 0.8732 GB, free: 90.99 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1442/1.946, allocations: 90.22 MB / 0.9613 GB, free: 35.25 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001913/1.946, allocations: 124.1 kB / 0.9614 GB, free: 35.06 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.891/6.837, allocations: 0 / 0.9614 GB, free: 35.06 MB / 474.7 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)