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.001081/0.001081, allocations: 107.3 kB / 15.33 MB, free: 0.5078 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.001115/0.001115, allocations: 191.7 kB / 16.25 MB, free: 6.145 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.301/1.301, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.157/0.157, allocations: 9.103 MB / 299.2 MB, free: 1.824 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 59.91 kB / 361.5 MB, free: 13.33 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.1062, allocations: 51.43 MB / 413 MB, free: 9.859 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrabTo3D): time 0.2195/0.3257, allocations: 47.05 MB / 460 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01952/0.3452, allocations: 10.36 MB / 470.4 MB, free: 7.961 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009504/0.3548, allocations: 191.7 kB / 470.6 MB, free: 7.934 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003523/0.3583, allocations: 1.486 MB / 472 MB, free: 7.297 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006119/0.3645, allocations: 2.401 MB / 474.4 MB, free: 6.254 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001396/0.3659, allocations: 0.5359 MB / 475 MB, free: 6.035 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006415/0.3723, allocations: 5.216 MB / 480.2 MB, free: 4.016 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004517/0.3769, allocations: 3.1 MB / 483.3 MB, free: 2.715 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003559/0.3805, allocations: 1.803 MB / 485.1 MB, free: 1.949 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004727/0.3852, allocations: 2.762 MB / 487.9 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002611/0.3879, allocations: 381.4 kB / 488.2 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004282/0.3922, allocations: 1.203 MB / 489.4 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003588/0.3958, allocations: 2.32 MB / 491.8 MB, free: 15.88 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00605/0.4019, allocations: 2.852 MB / 494.6 MB, free: 13.82 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01288/0.4148, allocations: 8.437 MB / 0.4913 GB, free: 9.867 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.785e-06/0.4148, allocations: 0 / 0.4913 GB, free: 9.867 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.418e-06/0.4149, allocations: 0 / 0.4913 GB, free: 9.867 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000359/0.4152, allocations: 5.406 kB / 0.4913 GB, free: 9.863 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.01889/0.4341, allocations: 6.572 MB / 0.4977 GB, free: 3.988 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.75e-05/0.4342, allocations: 8.031 kB / 0.4977 GB, free: 3.98 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002503/0.4367, allocations: 0.95 MB / 0.4986 GB, free: 3.023 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01261/0.4493, allocations: 3.409 MB / 0.5019 GB, free: 15.6 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006689/0.456, allocations: 3.067 MB / 0.5049 GB, free: 12.47 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002104/0.4563, allocations: 270.7 kB / 0.5052 GB, free: 12.21 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001035/0.4573, allocations: 363.6 kB / 0.5055 GB, free: 11.85 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02361/0.481, allocations: 14.03 MB / 0.5192 GB, free: 12.94 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001542/0.4812, allocations: 51.53 kB / 0.5193 GB, free: 12.89 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006415/0.4818, allocations: 175.8 kB / 0.5195 GB, free: 12.71 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004462/0.4863, allocations: 3.144 MB / 0.5225 GB, free: 9.57 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02366/0.51, allocations: 12.2 MB / 0.5344 GB, free: 13.36 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2515/0.7615, allocations: 52.07 MB / 0.5853 GB, free: 88.64 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009554/0.7711, allocations: 5.076 MB / 0.5902 GB, free: 87.48 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002318/0.7734, allocations: 1.804 MB / 0.592 GB, free: 87.45 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01205/0.7855, allocations: 8.006 MB / 0.5998 GB, free: 85.13 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.611e-05/0.7856, allocations: 55.16 kB / 0.5999 GB, free: 85.09 MB / 446.1 MB Notification: Performance of pre-optimization done (n=242): time 6.953e-06/0.7856, allocations: 3.75 kB / 0.5999 GB, free: 85.09 MB / 446.1 MB Notification: Performance of matching and sorting (n=272): time 0.02889/0.8145, allocations: 14.47 MB / 0.614 GB, free: 78.7 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.727e-05/0.8146, allocations: 154.9 kB / 0.6141 GB, free: 78.55 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008357/0.823, allocations: 5.395 MB / 0.6194 GB, free: 76.62 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004448/0.8234, allocations: 63.34 kB / 0.6195 GB, free: 76.57 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002498/0.8259, allocations: 4.093 MB / 0.6235 GB, free: 73.41 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001161/0.8271, allocations: 1.036 MB / 0.6245 GB, free: 72.65 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002331/0.8295, allocations: 1.637 MB / 0.6261 GB, free: 71.86 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.121e-05/0.8295, allocations: 309.1 kB / 0.6264 GB, free: 71.55 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004136/0.8337, allocations: 2.535 MB / 0.6289 GB, free: 70.75 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006653/0.8403, allocations: 7.358 MB / 0.636 GB, free: 63.53 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01069/0.8511, allocations: 10.74 MB / 0.6465 GB, free: 54.73 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002006/0.8513, allocations: 54.59 kB / 0.6466 GB, free: 54.72 MB / 446.1 MB Notification: Performance of matching and sorting (n=1082) (initialization): time 0.01853/0.8699, allocations: 9.904 MB / 0.6563 GB, free: 50.91 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000274/0.8702, allocations: 82.25 kB / 0.6563 GB, free: 50.91 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002956/0.8705, allocations: 176.6 kB / 0.6565 GB, free: 50.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001135/0.8716, allocations: 0.4899 MB / 0.657 GB, free: 50.84 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005684/0.8773, allocations: 1.844 MB / 0.6588 GB, free: 50.61 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004584/0.8819, allocations: 5.299 MB / 0.664 GB, free: 46.29 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006654/0.8886, allocations: 421.2 kB / 0.6644 GB, free: 45.92 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001505/0.8902, allocations: 491.3 kB / 0.6648 GB, free: 45.45 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.00696/0.8971, allocations: 2.851 MB / 0.6676 GB, free: 42.94 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001303/0.8984, allocations: 463.2 kB / 0.6681 GB, free: 42.48 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005437/0.9039, allocations: 2.975 MB / 0.671 GB, free: 39.92 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-05/0.904, allocations: 31.91 kB / 0.671 GB, free: 39.89 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.88e-05/0.904, allocations: 4 kB / 0.671 GB, free: 39.89 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.343e-05/0.904, allocations: 10.27 kB / 0.671 GB, free: 39.89 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01536/0.9194, allocations: 9.121 MB / 0.6799 GB, free: 32.27 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.718e-05/0.9194, allocations: 8.844 kB / 0.6799 GB, free: 32.27 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001479/0.9209, allocations: 382.5 kB / 0.6803 GB, free: 31.95 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006481/0.9216, allocations: 269.1 kB / 0.6805 GB, free: 31.74 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001415/0.9217, allocations: 51.94 kB / 0.6806 GB, free: 31.69 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003106/0.9249, allocations: 4.384 MB / 0.6849 GB, free: 27.36 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.59e-06/0.9249, allocations: 11.94 kB / 0.6849 GB, free: 27.35 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006071/0.931, allocations: 5.652 MB / 0.6904 GB, free: 21.57 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001394/0.9324, allocations: 0.5141 MB / 0.6909 GB, free: 21.04 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006968/0.9331, allocations: 47.94 kB / 0.6909 GB, free: 20.99 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001629/0.9347, allocations: 111.9 kB / 0.6911 GB, free: 20.88 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000288/0.935, allocations: 153.6 kB / 0.6912 GB, free: 20.73 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001373/0.9352, allocations: 87.42 kB / 0.6913 GB, free: 20.65 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004619/0.9398, allocations: 3.393 MB / 0.6946 GB, free: 17.27 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.41e-07/0.9398, allocations: 0 / 0.6946 GB, free: 17.27 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006911/0.9467, allocations: 1.253 MB / 0.6958 GB, free: 16.02 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.006537/0.9533, allocations: 6.324 MB / 0.702 GB, free: 9.547 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01277/0.9661, allocations: 8.712 MB / 0.7105 GB, free: 0.8711 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.035e-05/0.9661, allocations: 0 / 0.7105 GB, free: 0.8711 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002341/0.9685, allocations: 1.812 MB / 0.7123 GB, free: 15.05 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003995/0.9725, allocations: 0.6519 MB / 0.7129 GB, free: 14.45 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.281/1.254, allocations: 71.08 MB / 0.7823 GB, free: 165.7 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006003/1.26, allocations: 4.239 MB / 0.7865 GB, free: 164.9 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.006214/1.266, allocations: 2.708 MB / 0.7891 GB, free: 164.8 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003435/1.269, allocations: 2.617 MB / 0.7917 GB, free: 162.7 MB / 0.4981 GB Notification: Performance of SimCode: time 9.22e-07/1.269, allocations: 0 / 0.7917 GB, free: 162.7 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1202/1.39, allocations: 90.86 MB / 0.8804 GB, free: 99.47 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001306/1.39, allocations: 206.9 kB / 0.8806 GB, free: 99.21 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.398/5.788, allocations: 0 / 0.8806 GB, free: 99.21 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)