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.001582/0.001582, allocations: 174.6 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.399/1.399, allocations: 221.4 MB / 234.6 MB, free: 14.45 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009292/0.0009292, allocations: 84.03 kB / 285.6 MB, free: 13 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.05569/0.05569, allocations: 8.831 MB / 345.3 MB, free: 1.316 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.852e-05/2.891e-05, allocations: 7.984 kB / 405.7 MB, free: 61.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09273/0.09278, allocations: 52.39 MB / 458.1 MB, free: 8.957 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.376/0.4688, allocations: 101.7 MB / 0.5466 GB, free: 360 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002131/0.4691, allocations: 73.34 kB / 0.5467 GB, free: 328 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5624/1.032, allocations: 119.9 MB / 0.6638 GB, free: 100.7 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.463e-06/1.032, allocations: 3.562 kB / 0.6638 GB, free: 100.7 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003039/1.032, allocations: 100.2 kB / 0.6639 GB, free: 100.7 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.0224/1.054, allocations: 5.336 MB / 0.6691 GB, free: 98.53 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.619e-05/1.054, allocations: 11.31 kB / 0.6691 GB, free: 98.53 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005622/1.06, allocations: 1.024 MB / 0.6701 GB, free: 98.45 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01823/1.078, allocations: 3.902 MB / 0.6739 GB, free: 98.07 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01407/1.092, allocations: 4.95 MB / 0.6787 GB, free: 97.43 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003874/1.093, allocations: 408.1 kB / 0.6791 GB, free: 97.42 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002698/1.096, allocations: 0.5126 MB / 0.6796 GB, free: 97.41 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03107/1.127, allocations: 13.9 MB / 0.6932 GB, free: 94.34 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002525/1.127, allocations: 69.72 kB / 0.6933 GB, free: 94.34 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001945/1.129, allocations: 256.3 kB / 0.6935 GB, free: 94.34 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002021/1.131, allocations: 1.531 MB / 0.695 GB, free: 94.32 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02192/1.153, allocations: 12.02 MB / 0.7068 GB, free: 92.04 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06809/1.221, allocations: 58.88 MB / 0.7643 GB, free: 45.46 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00974/1.231, allocations: 5.056 MB / 0.7692 GB, free: 40.79 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002501/1.233, allocations: 1.765 MB / 0.7709 GB, free: 39.18 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01452/1.248, allocations: 7.999 MB / 0.7787 GB, free: 32.18 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.915e-05/1.248, allocations: 67.56 kB / 0.7788 GB, free: 32.11 MB / 458.7 MB Notification: Performance of pre-optimization done (n=239): time 6.512e-06/1.248, allocations: 0 / 0.7788 GB, free: 32.11 MB / 458.7 MB Notification: Performance of matching and sorting (n=269): time 0.02984/1.278, allocations: 13.05 MB / 0.7915 GB, free: 20.09 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.02e-05/1.278, allocations: 154.5 kB / 0.7917 GB, free: 19.9 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007973/1.286, allocations: 4.689 MB / 0.7963 GB, free: 15.22 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004706/1.286, allocations: 61.7 kB / 0.7963 GB, free: 15.15 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002107/1.289, allocations: 4.111 MB / 0.8003 GB, free: 11.04 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00104/1.29, allocations: 1.031 MB / 0.8013 GB, free: 10.02 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004782/1.29, allocations: 160 kB / 0.8015 GB, free: 9.863 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003709/1.29, allocations: 0.6609 MB / 0.8021 GB, free: 9.195 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003647/1.294, allocations: 2.394 MB / 0.8045 GB, free: 6.797 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007653/1.302, allocations: 7.17 MB / 0.8115 GB, free: 13.25 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007544/1.309, allocations: 4.215 MB / 0.8156 GB, free: 9.027 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001342/1.31, allocations: 48 kB / 0.8156 GB, free: 8.98 MB / 474.7 MB Notification: Performance of matching and sorting (n=1069) (initialization): time 0.2913/1.601, allocations: 9.597 MB / 0.825 GB, free: 96.39 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001855/1.601, allocations: 77.78 kB / 0.8251 GB, free: 96.39 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004194/1.602, allocations: 169.3 kB / 0.8252 GB, free: 96.39 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001516/1.603, allocations: 477.1 kB / 0.8257 GB, free: 96.38 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007468/1.611, allocations: 1.855 MB / 0.8275 GB, free: 96.38 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006378/1.617, allocations: 4.801 MB / 0.8322 GB, free: 93.77 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008216/1.625, allocations: 449.4 kB / 0.8326 GB, free: 93.77 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002187/1.627, allocations: 491 kB / 0.8331 GB, free: 93.77 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 773 * 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 (1001): * Single equations (assignments): 993 * 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.001822/1.629, allocations: 0.7085 MB / 0.8338 GB, free: 93.66 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001036/1.63, allocations: 463.8 kB / 0.8342 GB, free: 93.66 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005781/1.636, allocations: 2.903 MB / 0.8371 GB, free: 93.5 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.071e-05/1.636, allocations: 30.89 kB / 0.8371 GB, free: 93.5 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.334e-05/1.636, allocations: 4.656 kB / 0.8371 GB, free: 93.5 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.874e-05/1.636, allocations: 11.06 kB / 0.8371 GB, free: 93.5 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01887/1.655, allocations: 8.948 MB / 0.8459 GB, free: 92.73 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-05/1.655, allocations: 6.656 kB / 0.8459 GB, free: 92.73 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001532/1.657, allocations: 380.6 kB / 0.8462 GB, free: 92.73 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000557/1.657, allocations: 231.5 kB / 0.8464 GB, free: 92.71 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001621/1.657, allocations: 56.81 kB / 0.8465 GB, free: 92.71 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003117/1.661, allocations: 4 MB / 0.8504 GB, free: 90.22 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.611e-06/1.661, allocations: 10.69 kB / 0.8504 GB, free: 90.22 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007094/1.668, allocations: 6.487 MB / 0.8567 GB, free: 88.39 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001584/1.669, allocations: 0.5274 MB / 0.8573 GB, free: 88.15 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006547/1.67, allocations: 48.83 kB / 0.8573 GB, free: 88.15 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001762/1.672, allocations: 125.4 kB / 0.8574 GB, free: 88.15 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003177/1.672, allocations: 152.2 kB / 0.8576 GB, free: 88.14 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000149/1.672, allocations: 79.2 kB / 0.8577 GB, free: 88.14 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.006266/1.679, allocations: 3.268 MB / 0.8608 GB, free: 87.94 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.01e-07/1.679, allocations: 0 / 0.8608 GB, free: 87.94 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008607/1.687, allocations: 1.263 MB / 0.8621 GB, free: 87.94 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (204): * Single equations (assignments): 196 * 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.007871/1.695, allocations: 8.384 MB / 0.8703 GB, free: 84.2 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.009803/1.705, allocations: 5.948 MB / 0.8761 GB, free: 83.07 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.192e-05/1.705, allocations: 3.188 kB / 0.8761 GB, free: 83.07 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002599/1.708, allocations: 1.774 MB / 0.8778 GB, free: 82.38 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00438/1.712, allocations: 0.5661 MB / 0.8784 GB, free: 82.15 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03153/1.744, allocations: 11.89 MB / 0.89 GB, free: 77.91 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005502/1.749, allocations: 4.358 MB / 0.8942 GB, free: 76.39 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.007625/1.757, allocations: 2.704 MB / 0.8969 GB, free: 76.34 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004169/1.761, allocations: 2.624 MB / 0.8994 GB, free: 74.21 MB / 474.7 MB Notification: Performance of SimCode: time 1.343e-06/1.761, allocations: 1.531 kB / 0.8994 GB, free: 74.21 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1468/1.908, allocations: 99.54 MB / 0.9966 GB, free: 10.28 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001705/1.908, allocations: 158.5 kB / 0.9968 GB, free: 10.06 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.318/7.226, allocations: 0 / 0.9968 GB, free: 10.06 MB / 490.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)