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.004478/0.004478, allocations: 171.1 kB / 15.11 MB, free: 5.969 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.231/1.231, allocations: 223.2 MB / 239 MB, free: 80 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008436/0.0008436, allocations: 98.5 kB / 290.2 MB, free: 4.488 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03928/0.03928, allocations: 8.935 MB / 350.2 MB, free: 4.191 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002782/0.0002782, allocations: 12 kB / 413.2 MB, free: 5.164 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1966/0.1969, allocations: 52.38 MB / 465.6 MB, free: 69.14 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2781/0.4751, allocations: 101.7 MB / 0.554 GB, free: 36.97 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002216/0.4753, allocations: 77.38 kB / 0.5541 GB, free: 36.97 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2589/0.7343, allocations: 119.8 MB / 0.6711 GB, free: 4.633 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.7343, allocations: 0 / 0.6711 GB, free: 4.633 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002289/0.7345, allocations: 100 kB / 0.6712 GB, free: 4.535 MB / 410.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.01616/0.7507, allocations: 5.577 MB / 0.6767 GB, free: 14.88 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.7507, allocations: 8.031 kB / 0.6767 GB, free: 14.88 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003181/0.7539, allocations: 1.03 MB / 0.6777 GB, free: 13.84 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01633/0.7703, allocations: 3.888 MB / 0.6815 GB, free: 9.934 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01299/0.7833, allocations: 4.99 MB / 0.6863 GB, free: 4.879 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003702/0.7837, allocations: 406.4 kB / 0.6867 GB, free: 4.48 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002016/0.7857, allocations: 0.5193 MB / 0.6872 GB, free: 3.961 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02506/0.8108, allocations: 14.03 MB / 0.7009 GB, free: 4.777 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002245/0.811, allocations: 67.39 kB / 0.701 GB, free: 4.711 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001389/0.8124, allocations: 263.7 kB / 0.7013 GB, free: 4.453 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002188/0.8146, allocations: 1.528 MB / 0.7028 GB, free: 2.926 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0217/0.8363, allocations: 12.29 MB / 0.7148 GB, free: 6.629 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2371/1.073, allocations: 58.87 MB / 0.7722 GB, free: 50.66 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009027/1.083, allocations: 5.083 MB / 0.7772 GB, free: 49.5 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01093/1.093, allocations: 8.004 MB / 0.785 GB, free: 47.11 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.622e-05/1.094, allocations: 56.69 kB / 0.7851 GB, free: 47.07 MB / 458.7 MB Notification: Performance of pre-optimization done (n=239): time 4.088e-06/1.094, allocations: 0 / 0.7851 GB, free: 47.07 MB / 458.7 MB Notification: Performance of matching and sorting (n=269): time 0.02486/1.118, allocations: 14.88 MB / 0.7996 GB, free: 42.71 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.093e-05/1.118, allocations: 154.8 kB / 0.7997 GB, free: 42.55 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006029/1.124, allocations: 4.78 MB / 0.8044 GB, free: 42.14 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001107/1.125, allocations: 63.25 kB / 0.8045 GB, free: 42.11 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001874/1.126, allocations: 4.113 MB / 0.8085 GB, free: 39.43 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006496/1.127, allocations: 1.029 MB / 0.8095 GB, free: 38.7 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003543/1.128, allocations: 163 kB / 0.8097 GB, free: 38.57 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003478/1.128, allocations: 0.6542 MB / 0.8103 GB, free: 38.12 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003223/1.131, allocations: 2.484 MB / 0.8127 GB, free: 37.33 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004459/1.136, allocations: 7.273 MB / 0.8198 GB, free: 30.12 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004609/1.14, allocations: 4.254 MB / 0.824 GB, free: 28.73 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.482e-05/1.14, allocations: 48.97 kB / 0.824 GB, free: 28.73 MB / 458.7 MB Notification: Performance of matching and sorting (n=1069) (initialization): time 0.01179/1.152, allocations: 9.785 MB / 0.8336 GB, free: 25.3 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.882e-05/1.152, allocations: 80.31 kB / 0.8337 GB, free: 25.3 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001563/1.152, allocations: 169.6 kB / 0.8338 GB, free: 25.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007747/1.153, allocations: 481.1 kB / 0.8343 GB, free: 25.24 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004537/1.158, allocations: 1.855 MB / 0.8361 GB, free: 25.02 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00382/1.162, allocations: 4.908 MB / 0.8409 GB, free: 21.47 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004432/1.166, allocations: 453.3 kB / 0.8413 GB, free: 21.32 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004935/1.166, allocations: 490 kB / 0.8418 GB, free: 21.26 MB / 458.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 () * Number of clocked 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.003326/1.17, allocations: 2.853 MB / 0.8446 GB, free: 19.67 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005886/1.17, allocations: 458 kB / 0.845 GB, free: 19.21 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003955/1.174, allocations: 2.933 MB / 0.8479 GB, free: 16.69 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.871e-05/1.174, allocations: 28 kB / 0.8479 GB, free: 16.66 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.05e-05/1.174, allocations: 4 kB / 0.8479 GB, free: 16.66 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.607e-05/1.174, allocations: 13.83 kB / 0.8479 GB, free: 16.66 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0133/1.188, allocations: 8.973 MB / 0.8567 GB, free: 9.188 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.857e-05/1.188, allocations: 4 kB / 0.8567 GB, free: 9.184 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00143/1.189, allocations: 375.6 kB / 0.857 GB, free: 8.875 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005542/1.19, allocations: 236.1 kB / 0.8573 GB, free: 8.688 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001574/1.19, allocations: 49.17 kB / 0.8573 GB, free: 8.641 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003075/1.193, allocations: 4.116 MB / 0.8613 GB, free: 4.574 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/1.193, allocations: 11.94 kB / 0.8613 GB, free: 4.562 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006761/1.2, allocations: 6.58 MB / 0.8678 GB, free: 14.37 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001345/1.201, allocations: 0.5186 MB / 0.8683 GB, free: 13.85 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007885/1.202, allocations: 48.69 kB / 0.8683 GB, free: 13.8 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001839/1.204, allocations: 120.8 kB / 0.8684 GB, free: 13.72 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002404/1.204, allocations: 151.2 kB / 0.8686 GB, free: 13.62 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001561/1.204, allocations: 81.62 kB / 0.8687 GB, free: 13.55 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.00592/1.21, allocations: 3.361 MB / 0.8719 GB, free: 10.8 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.6e-07/1.21, allocations: 0 / 0.8719 GB, free: 10.8 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00575/1.216, allocations: 1.263 MB / 0.8732 GB, free: 9.547 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 () * Number of clocked 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.008138/1.224, allocations: 8.427 MB / 0.8814 GB, free: 1.453 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01058/1.235, allocations: 6.182 MB / 0.8874 GB, free: 12.32 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.825e-06/1.235, allocations: 0 / 0.8874 GB, free: 12.32 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002338/1.237, allocations: 1.797 MB / 0.8892 GB, free: 10.7 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002681/1.24, allocations: 0.5681 MB / 0.8897 GB, free: 10.23 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2746/1.514, allocations: 161.7 MB / 1.048 GB, free: 42.72 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006597/1.521, allocations: 4.349 MB / 1.052 GB, free: 41.89 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.006496/1.528, allocations: 2.709 MB / 1.055 GB, free: 41.7 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003329/1.531, allocations: 2.625 MB / 1.057 GB, free: 41.69 MB / 0.5417 GB Notification: Performance of SimCode: time 6.21e-07/1.531, allocations: 0 / 1.057 GB, free: 41.69 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.302/1.833, allocations: 99.09 MB / 1.154 GB, free: 161 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001256/1.833, allocations: 185.8 kB / 1.154 GB, free: 160.8 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.4/6.234, allocations: 0 / 1.154 GB, free: 160.8 MB / 0.5417 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/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)