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.001042/0.001042, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001129/0.001129, allocations: 196.8 kB / 16.14 MB, free: 6.715 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.29/1.29, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1492/0.1492, allocations: 9.105 MB / 299.1 MB, free: 1.922 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002093/0.002093, allocations: 60.12 kB / 361.3 MB, free: 13.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1123, allocations: 51.45 MB / 412.8 MB, free: 9.984 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrabTo3D): time 0.1827/0.295, allocations: 47.04 MB / 459.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01934/0.3144, allocations: 10.46 MB / 470.3 MB, free: 8.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007825/0.3223, allocations: 193 kB / 470.5 MB, free: 7.992 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003336/0.3256, allocations: 1.536 MB / 472 MB, free: 7.316 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005328/0.331, allocations: 2.408 MB / 474.4 MB, free: 6.277 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001385/0.3324, allocations: 0.515 MB / 474.9 MB, free: 6.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00706/0.3395, allocations: 7.162 MB / 482.1 MB, free: 3.848 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005396/0.3449, allocations: 2.807 MB / 484.9 MB, free: 2.828 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003233/0.3482, allocations: 1.548 MB / 486.4 MB, free: 2.234 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004488/0.3527, allocations: 2.625 MB / 489.1 MB, free: 1.371 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001583/0.3543, allocations: 251.6 kB / 489.3 MB, free: 1.367 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004784/0.3591, allocations: 1.124 MB / 490.4 MB, free: 1.102 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005175/0.3643, allocations: 2.192 MB / 492.6 MB, free: 396 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006488/0.3708, allocations: 2.711 MB / 495.3 MB, free: 14.47 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01217/0.383, allocations: 8.211 MB / 0.4918 GB, free: 9.867 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.383, allocations: 1.375 kB / 0.4918 GB, free: 9.867 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.383, allocations: 4 kB / 0.4918 GB, free: 9.863 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003916/0.3834, allocations: 0 / 0.4918 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.01765/0.4011, allocations: 6.578 MB / 0.4982 GB, free: 3.438 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.338e-05/0.4011, allocations: 8.594 kB / 0.4982 GB, free: 3.43 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002508/0.4037, allocations: 0.9525 MB / 0.4991 GB, free: 2.469 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01318/0.4168, allocations: 3.405 MB / 0.5024 GB, free: 15.05 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006895/0.4238, allocations: 3.063 MB / 0.5054 GB, free: 11.93 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002867/0.4241, allocations: 274.6 kB / 0.5057 GB, free: 11.66 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001626/0.4257, allocations: 373.1 kB / 0.5061 GB, free: 11.29 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02571/0.4515, allocations: 14.03 MB / 0.5198 GB, free: 12.38 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002659/0.4518, allocations: 47.53 kB / 0.5198 GB, free: 12.33 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001605/0.4534, allocations: 179.8 kB / 0.52 GB, free: 12.15 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005256/0.4587, allocations: 3.132 MB / 0.523 GB, free: 9.02 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02445/0.4831, allocations: 12.2 MB / 0.5349 GB, free: 12.8 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2417/0.7249, allocations: 52.06 MB / 0.5858 GB, free: 87.29 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009648/0.7346, allocations: 5.074 MB / 0.5907 GB, free: 86.14 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002124/0.7367, allocations: 1.799 MB / 0.5925 GB, free: 86.1 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01148/0.7482, allocations: 8.016 MB / 0.6003 GB, free: 83.77 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.63e-05/0.7482, allocations: 58.22 kB / 0.6004 GB, free: 83.73 MB / 446.1 MB Notification: Performance of pre-optimization done (n=242): time 4.178e-06/0.7483, allocations: 0 / 0.6004 GB, free: 83.73 MB / 446.1 MB Notification: Performance of matching and sorting (n=272): time 0.02762/0.7759, allocations: 14.47 MB / 0.6145 GB, free: 77.21 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.67e-05/0.776, allocations: 152.5 kB / 0.6147 GB, free: 77.05 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0081/0.7841, allocations: 5.395 MB / 0.6199 GB, free: 75.13 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003869/0.7845, allocations: 60.3 kB / 0.62 GB, free: 75.07 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002085/0.7866, allocations: 4.105 MB / 0.624 GB, free: 71.91 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001071/0.7877, allocations: 1.033 MB / 0.625 GB, free: 71.16 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001935/0.7896, allocations: 1.639 MB / 0.6266 GB, free: 70.37 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.586e-05/0.7897, allocations: 305.6 kB / 0.6269 GB, free: 70.07 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003686/0.7934, allocations: 2.534 MB / 0.6294 GB, free: 69.26 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005871/0.7993, allocations: 7.353 MB / 0.6365 GB, free: 62.04 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01099/0.8103, allocations: 10.75 MB / 0.647 GB, free: 53.21 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001901/0.8105, allocations: 48.06 kB / 0.6471 GB, free: 53.21 MB / 446.1 MB Notification: Performance of matching and sorting (n=1082) (initialization): time 0.01716/0.8277, allocations: 9.905 MB / 0.6568 GB, free: 49.4 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001756/0.8279, allocations: 80.09 kB / 0.6568 GB, free: 49.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002755/0.8282, allocations: 166.5 kB / 0.657 GB, free: 49.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001161/0.8293, allocations: 0.4923 MB / 0.6575 GB, free: 49.33 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005374/0.8347, allocations: 1.848 MB / 0.6593 GB, free: 49.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004364/0.8391, allocations: 4.893 MB / 0.6641 GB, free: 45.44 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006248/0.8454, allocations: 411.6 kB / 0.6645 GB, free: 45.08 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00107/0.8465, allocations: 0.4914 MB / 0.6649 GB, free: 44.6 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.00488/0.8514, allocations: 2.846 MB / 0.6677 GB, free: 42.09 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00104/0.8524, allocations: 461.9 kB / 0.6682 GB, free: 41.63 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004884/0.8573, allocations: 2.98 MB / 0.6711 GB, free: 39.07 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.424e-05/0.8574, allocations: 28 kB / 0.6711 GB, free: 39.04 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.461e-05/0.8574, allocations: 9.562 kB / 0.6711 GB, free: 39.04 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.992e-05/0.8574, allocations: 15.42 kB / 0.6711 GB, free: 39.04 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01522/0.8726, allocations: 9.118 MB / 0.68 GB, free: 31.42 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.548e-05/0.8727, allocations: 12.19 kB / 0.68 GB, free: 31.41 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001436/0.8741, allocations: 387.4 kB / 0.6804 GB, free: 31.09 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006616/0.8748, allocations: 266 kB / 0.6807 GB, free: 30.88 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001667/0.875, allocations: 55.27 kB / 0.6807 GB, free: 30.84 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003026/0.878, allocations: 4.032 MB / 0.6846 GB, free: 26.84 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.029e-06/0.878, allocations: 11.94 kB / 0.6847 GB, free: 26.83 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006292/0.8843, allocations: 5.654 MB / 0.6902 GB, free: 21.61 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001519/0.8859, allocations: 0.5096 MB / 0.6907 GB, free: 21.1 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001263/0.8871, allocations: 44 kB / 0.6907 GB, free: 21.05 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002467/0.8896, allocations: 114.9 kB / 0.6908 GB, free: 20.98 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002985/0.8899, allocations: 154 kB / 0.691 GB, free: 20.87 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001511/0.8901, allocations: 87.22 kB / 0.6911 GB, free: 20.79 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.006504/0.8966, allocations: 3.391 MB / 0.6944 GB, free: 17.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.41e-07/0.8966, allocations: 0 / 0.6944 GB, free: 17.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.007802/0.9044, allocations: 1.253 MB / 0.6956 GB, free: 16.25 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.007671/0.9121, allocations: 6.332 MB / 0.7018 GB, free: 9.77 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00876/0.9209, allocations: 6.154 MB / 0.7078 GB, free: 3.629 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.107e-06/0.921, allocations: 0 / 0.7078 GB, free: 3.629 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002338/0.9233, allocations: 1.814 MB / 0.7096 GB, free: 1.805 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004754/0.9281, allocations: 0.6064 MB / 0.7101 GB, free: 1.219 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2652/1.193, allocations: 71.09 MB / 0.7796 GB, free: 167.6 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004022/1.197, allocations: 4.233 MB / 0.7837 GB, free: 166.7 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.005879/1.203, allocations: 2.706 MB / 0.7863 GB, free: 166.6 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003149/1.206, allocations: 2.622 MB / 0.7889 GB, free: 164.5 MB / 0.4981 GB Notification: Performance of SimCode: time 7.02e-07/1.206, allocations: 0 / 0.7889 GB, free: 164.5 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1136/1.32, allocations: 89.28 MB / 0.8761 GB, free: 103.5 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001355/1.32, allocations: 212.6 kB / 0.8763 GB, free: 103.2 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.794/5.115, allocations: 4 kB / 0.8763 GB, free: 103.2 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)