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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001831/0.001831, allocations: 97.31 kB / 19.73 MB, free: 2.117 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002162/0.002162, allocations: 219.2 kB / 23.03 MB, free: 4.922 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.592/1.592, allocations: 230.6 MB / 256.8 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.053/0.053, allocations: 9.23 MB / 322.5 MB, free: 9.836 MB / 254.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PlanarMechanics.Examples.CraneCrabTo3D,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_CraneCrabTo3D",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.CraneCrabTo3D,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_CraneCrabTo3D",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PlanarMechanics requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002403/0.002403, allocations: 67.89 kB / 448.5 MB, free: 14.56 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1223, allocations: 55.47 MB / 0.4921 GB, free: 7 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrabTo3D): time 0.01723/0.1395, allocations: 12.41 MB / 0.5042 GB, free: 10.53 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01196/0.1515, allocations: 4.415 MB / 0.5086 GB, free: 6.102 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002459/0.1539, allocations: 87.62 kB / 0.5086 GB, free: 6.016 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00443/0.1584, allocations: 1.591 MB / 0.5102 GB, free: 4.418 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007618/0.166, allocations: 2.611 MB / 0.5127 GB, free: 1.797 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001825/0.1678, allocations: 0.5693 MB / 0.5133 GB, free: 1.227 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2329/0.4007, allocations: 5.19 MB / 0.5184 GB, free: 8.094 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004988/0.4057, allocations: 2.7 MB / 0.521 GB, free: 7.906 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004655/0.4104, allocations: 1.801 MB / 0.5228 GB, free: 7.664 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006295/0.4167, allocations: 2.733 MB / 0.5254 GB, free: 7.34 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001572/0.4182, allocations: 383.8 kB / 0.5258 GB, free: 7.34 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002797/0.421, allocations: 1.105 MB / 0.5269 GB, free: 7.336 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002476/0.4235, allocations: 2.311 MB / 0.5291 GB, free: 7.023 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003123/0.4266, allocations: 1.991 MB / 0.5311 GB, free: 6.238 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008674/0.4353, allocations: 8.78 MB / 0.5397 GB, free: 3.469 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.4353, allocations: 0 / 0.5397 GB, free: 3.469 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.4353, allocations: 1.094 kB / 0.5397 GB, free: 3.469 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002308/0.4355, allocations: 0 / 0.5397 GB, free: 3.469 MB / 382.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.01795/0.4535, allocations: 6.662 MB / 0.5462 GB, free: 15.09 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.529e-05/0.4535, allocations: 9.656 kB / 0.5462 GB, free: 15.09 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002163/0.4538, allocations: 132.2 kB / 0.5463 GB, free: 15.08 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003253/0.457, allocations: 0.9457 MB / 0.5472 GB, free: 14.49 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01387/0.4709, allocations: 3.445 MB / 0.5506 GB, free: 12.66 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008439/0.4793, allocations: 2.953 MB / 0.5535 GB, free: 11.06 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003611/0.4797, allocations: 273.7 kB / 0.5537 GB, free: 10.99 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002279/0.482, allocations: 361.6 kB / 0.5541 GB, free: 10.92 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02844/0.5104, allocations: 14.02 MB / 0.5678 GB, free: 13.6 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001463/0.5105, allocations: 56.31 kB / 0.5678 GB, free: 13.57 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006737/0.5112, allocations: 173.5 kB / 0.568 GB, free: 13.46 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00541/0.5166, allocations: 3.14 MB / 0.5711 GB, free: 10.36 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02566/0.5423, allocations: 12.21 MB / 0.583 GB, free: 14.38 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08424/0.6265, allocations: 49.6 MB / 0.6314 GB, free: 11.83 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01168/0.6382, allocations: 4.092 MB / 0.6354 GB, free: 7.719 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003021/0.6412, allocations: 1.697 MB / 0.6371 GB, free: 6.016 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01561/0.6568, allocations: 6.323 MB / 0.6432 GB, free: 15.72 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.951e-05/0.6569, allocations: 55.88 kB / 0.6433 GB, free: 15.66 MB / 494.1 MB Notification: Performance of pre-optimization done (n=242): time 6.993e-06/0.6569, allocations: 0 / 0.6433 GB, free: 15.66 MB / 494.1 MB Notification: Performance of matching and sorting (n=272): time 0.03854/0.6954, allocations: 14.62 MB / 0.6576 GB, free: 1.039 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001175/0.6956, allocations: 154.5 kB / 0.6577 GB, free: 0.8555 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01118/0.7067, allocations: 5.403 MB / 0.663 GB, free: 11.46 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0005937/0.7073, allocations: 65.7 kB / 0.6631 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.005051/0.7124, allocations: 4.264 MB / 0.6672 GB, free: 7.145 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001898/0.7143, allocations: 1.08 MB / 0.6683 GB, free: 6.078 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003532/0.7178, allocations: 1.644 MB / 0.6699 GB, free: 4.426 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001325/0.7179, allocations: 301.1 kB / 0.6702 GB, free: 4.129 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005168/0.7231, allocations: 2.538 MB / 0.6726 GB, free: 1.582 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01098/0.7341, allocations: 7.358 MB / 0.6798 GB, free: 7.848 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01608/0.7502, allocations: 10.74 MB / 0.6903 GB, free: 10.76 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002282/0.7504, allocations: 55.94 kB / 0.6904 GB, free: 10.7 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1082) (initialization): time 0.02246/0.7729, allocations: 9.921 MB / 0.7001 GB, free: 0.7734 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003019/0.7732, allocations: 80 kB / 0.7001 GB, free: 0.6953 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003752/0.7735, allocations: 168 kB / 0.7003 GB, free: 0.5312 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001456/0.775, allocations: 0.489 MB / 0.7008 GB, free: 40 kB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006739/0.7817, allocations: 1.844 MB / 0.7026 GB, free: 14.19 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006598/0.7883, allocations: 5.062 MB / 0.7075 GB, free: 8.895 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006181/0.7945, allocations: 421.9 kB / 0.7079 GB, free: 8.484 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001671/0.7962, allocations: 0.4883 MB / 0.7084 GB, free: 7.996 MB / 0.545 GB 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.007259/0.8034, allocations: 2.847 MB / 0.7112 GB, free: 5.137 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001166/0.8046, allocations: 488.8 kB / 0.7116 GB, free: 4.656 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006348/0.811, allocations: 2.964 MB / 0.7145 GB, free: 1.676 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.985e-05/0.811, allocations: 30.73 kB / 0.7146 GB, free: 1.648 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.321e-05/0.811, allocations: 4 kB / 0.7146 GB, free: 1.645 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.833e-05/0.811, allocations: 15.89 kB / 0.7146 GB, free: 1.629 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02002/0.8311, allocations: 8.598 MB / 0.723 GB, free: 8.922 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.105e-05/0.8311, allocations: 12.12 kB / 0.723 GB, free: 8.91 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001704/0.8328, allocations: 383.4 kB / 0.7234 GB, free: 8.535 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007975/0.8336, allocations: 267.6 kB / 0.7236 GB, free: 8.27 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002207/0.8338, allocations: 58.64 kB / 0.7237 GB, free: 8.215 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004997/0.8388, allocations: 4.133 MB / 0.7277 GB, free: 3.855 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.328e-06/0.8388, allocations: 8 kB / 0.7277 GB, free: 3.848 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2307/1.069, allocations: 5.666 MB / 0.7332 GB, free: 187.7 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001453/1.071, allocations: 465.9 kB / 0.7337 GB, free: 187.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000754/1.072, allocations: 51.34 kB / 0.7337 GB, free: 187.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001656/1.073, allocations: 108.9 kB / 0.7338 GB, free: 187.7 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003603/1.074, allocations: 167.7 kB / 0.734 GB, free: 187.7 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002029/1.074, allocations: 80.98 kB / 0.7341 GB, free: 187.7 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.005652/1.08, allocations: 3.386 MB / 0.7374 GB, free: 187.5 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.61e-07/1.08, allocations: 0.6562 kB / 0.7374 GB, free: 187.5 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.007019/1.087, allocations: 1.235 MB / 0.7386 GB, free: 187.5 MB / 0.5606 GB 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.008109/1.095, allocations: 6.337 MB / 0.7448 GB, free: 185.6 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01116/1.106, allocations: 5.953 MB / 0.7506 GB, free: 183.6 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.281e-05/1.106, allocations: 3.375 kB / 0.7506 GB, free: 183.6 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.002398/1.108, allocations: 1.712 MB / 0.7523 GB, free: 182.9 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003787/1.112, allocations: 0.6409 MB / 0.7529 GB, free: 182.6 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08165/1.194, allocations: 58.74 MB / 0.8103 GB, free: 130.6 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004128/1.198, allocations: 3.72 MB / 0.8139 GB, free: 127.4 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.005147/1.203, allocations: 2.709 MB / 0.8165 GB, free: 124.7 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002956/1.206, allocations: 2.612 MB / 0.8191 GB, free: 122 MB / 0.5606 GB Notification: Performance of SimCode: time 1.253e-06/1.206, allocations: 3.938 kB / 0.8191 GB, free: 122 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1276/1.334, allocations: 85.42 MB / 0.9025 GB, free: 37.56 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.04/26.37, allocations: 15.28 kB / 0.9025 GB, free: 37.55 MB / 0.5606 GB " [Timeout remaining time 633] (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 --stepSize=0.004 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_CraneCrabTo3D.fmu > PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 29.39495727501344] Failed to read output from testmodel.py, exit status != 0: 26.609314667992294 26.626208242 26.187627446 Calling exit ...