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.001349/0.001349, allocations: 116.8 kB / 17.17 MB, free: 5.977 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.001451/0.001451, allocations: 209.5 kB / 20.13 MB, free: 3.035 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.557/1.557, allocations: 230.6 MB / 253.5 MB, free: 15.1 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.05016/0.05016, allocations: 9.229 MB / 318.8 MB, free: 15.51 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.002451/0.002451, allocations: 69.28 kB / 443.2 MB, free: 39.34 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1033, allocations: 55.42 MB / 498.7 MB, free: 6.602 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrabTo3D): time 0.01536/0.1187, allocations: 14.43 MB / 0.5011 GB, free: 8.109 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01197/0.1306, allocations: 4.645 MB / 0.5056 GB, free: 3.445 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002979/0.1336, allocations: 87.62 kB / 0.5057 GB, free: 3.359 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004514/0.1381, allocations: 1.634 MB / 0.5073 GB, free: 1.719 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008476/0.1466, allocations: 2.605 MB / 0.5098 GB, free: 15.11 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002203/0.1488, allocations: 0.5693 MB / 0.5104 GB, free: 14.54 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008794/0.1576, allocations: 5.195 MB / 0.5155 GB, free: 9.332 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004475/0.1621, allocations: 2.574 MB / 0.518 GB, free: 6.711 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003441/0.1655, allocations: 1.802 MB / 0.5197 GB, free: 4.898 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004693/0.1702, allocations: 2.729 MB / 0.5224 GB, free: 2.16 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001514/0.1717, allocations: 384 kB / 0.5228 GB, free: 1.785 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003156/0.1749, allocations: 1.221 MB / 0.524 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003423/0.1783, allocations: 2.317 MB / 0.5262 GB, free: 14.24 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004878/0.1832, allocations: 2.788 MB / 0.5289 GB, free: 11.43 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01293/0.1961, allocations: 8.737 MB / 0.5375 GB, free: 2.66 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.303e-06/0.1961, allocations: 3.938 kB / 0.5375 GB, free: 2.656 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1961, allocations: 0 / 0.5375 GB, free: 2.656 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002883/0.1964, allocations: 0 / 0.5375 GB, free: 2.656 MB / 398.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.01799/0.2144, allocations: 6.739 MB / 0.5441 GB, free: 11.83 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.973e-05/0.2144, allocations: 12.03 kB / 0.5441 GB, free: 11.82 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001799/0.2146, allocations: 127.1 kB / 0.5442 GB, free: 11.7 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002348/0.217, allocations: 0.9486 MB / 0.5451 GB, free: 10.74 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01416/0.2311, allocations: 3.448 MB / 0.5485 GB, free: 7.281 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00725/0.2384, allocations: 2.998 MB / 0.5514 GB, free: 4.223 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003468/0.2387, allocations: 274.7 kB / 0.5517 GB, free: 3.953 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001537/0.2403, allocations: 359.7 kB / 0.552 GB, free: 3.602 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02614/0.2664, allocations: 14.03 MB / 0.5657 GB, free: 4.684 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001802/0.2666, allocations: 51.52 kB / 0.5658 GB, free: 4.633 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001004/0.2676, allocations: 179.8 kB / 0.5659 GB, free: 4.457 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005623/0.2732, allocations: 3.144 MB / 0.569 GB, free: 1.309 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02519/0.2984, allocations: 12.2 MB / 0.5809 GB, free: 5.098 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2783/0.5767, allocations: 51.89 MB / 0.6316 GB, free: 46.05 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009996/0.5867, allocations: 4.935 MB / 0.6364 GB, free: 43.03 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002137/0.5888, allocations: 1.704 MB / 0.6381 GB, free: 42.17 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01165/0.6004, allocations: 8.008 MB / 0.6459 GB, free: 34.62 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.665e-05/0.6005, allocations: 55.88 kB / 0.646 GB, free: 34.55 MB / 446.1 MB Notification: Performance of pre-optimization done (n=242): time 5.15e-06/0.6005, allocations: 0 / 0.646 GB, free: 34.55 MB / 446.1 MB Notification: Performance of matching and sorting (n=272): time 0.02797/0.6284, allocations: 14.76 MB / 0.6604 GB, free: 20.05 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.78e-05/0.6285, allocations: 154.5 kB / 0.6605 GB, free: 19.87 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005944/0.6344, allocations: 5.404 MB / 0.6658 GB, free: 14.57 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003035/0.6347, allocations: 57.7 kB / 0.6659 GB, free: 14.51 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001731/0.6365, allocations: 4.259 MB / 0.67 GB, free: 10.43 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007939/0.6373, allocations: 1.084 MB / 0.6711 GB, free: 9.359 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001627/0.6389, allocations: 1.651 MB / 0.6727 GB, free: 7.699 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.108e-05/0.6389, allocations: 305.1 kB / 0.673 GB, free: 7.398 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003146/0.6421, allocations: 2.538 MB / 0.6755 GB, free: 4.852 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006791/0.6489, allocations: 7.361 MB / 0.6826 GB, free: 11.1 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0154/0.6643, allocations: 10.74 MB / 0.6931 GB, free: 13.99 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001383/0.6644, allocations: 48 kB / 0.6932 GB, free: 13.95 MB / 478.1 MB Notification: Performance of matching and sorting (n=1082) (initialization): time 0.01878/0.6832, allocations: 9.923 MB / 0.7029 GB, free: 4.012 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001178/0.6833, allocations: 81.88 kB / 0.7029 GB, free: 3.934 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001983/0.6835, allocations: 168 kB / 0.7031 GB, free: 3.77 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001188/0.6847, allocations: 0.4925 MB / 0.7036 GB, free: 3.273 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005708/0.6904, allocations: 1.848 MB / 0.7054 GB, free: 1.422 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006982/0.6974, allocations: 5.297 MB / 0.7106 GB, free: 11.85 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00638/0.7038, allocations: 415.6 kB / 0.711 GB, free: 11.44 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001398/0.7052, allocations: 496 kB / 0.7114 GB, free: 10.96 MB / 494.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.005418/0.7106, allocations: 2.857 MB / 0.7142 GB, free: 8.086 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000931/0.7115, allocations: 484.7 kB / 0.7147 GB, free: 7.609 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005504/0.717, allocations: 2.967 MB / 0.7176 GB, free: 4.621 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.22e-05/0.7171, allocations: 31.98 kB / 0.7176 GB, free: 4.59 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.108e-05/0.7171, allocations: 8 kB / 0.7176 GB, free: 4.582 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.503e-05/0.7171, allocations: 11.95 kB / 0.7176 GB, free: 4.57 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01812/0.7352, allocations: 9.06 MB / 0.7265 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.293e-05/0.7352, allocations: 8 kB / 0.7265 GB, free: 11.33 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001878/0.7371, allocations: 383.4 kB / 0.7269 GB, free: 10.95 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008614/0.738, allocations: 271.6 kB / 0.7271 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001785/0.7382, allocations: 48 kB / 0.7272 GB, free: 10.64 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005233/0.7434, allocations: 4.379 MB / 0.7314 GB, free: 5.98 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.015e-05/0.7434, allocations: 11.98 kB / 0.7314 GB, free: 5.969 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008869/0.7523, allocations: 5.678 MB / 0.737 GB, free: 140 kB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00159/0.7539, allocations: 0.5329 MB / 0.7375 GB, free: 15.58 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000647/0.7545, allocations: 51.97 kB / 0.7376 GB, free: 15.53 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001643/0.7561, allocations: 107.9 kB / 0.7377 GB, free: 15.43 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003484/0.7565, allocations: 149.7 kB / 0.7378 GB, free: 15.28 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001675/0.7567, allocations: 83.92 kB / 0.7379 GB, free: 15.2 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.006397/0.7631, allocations: 3.389 MB / 0.7412 GB, free: 11.82 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.01e-07/0.7631, allocations: 0 / 0.7412 GB, free: 11.82 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00664/0.7697, allocations: 1.242 MB / 0.7424 GB, free: 10.58 MB / 0.5137 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.009353/0.7791, allocations: 6.334 MB / 0.7486 GB, free: 4.086 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0113/0.7904, allocations: 5.961 MB / 0.7544 GB, free: 14.13 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.118e-05/0.7904, allocations: 4.062 kB / 0.7544 GB, free: 14.13 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002849/0.7932, allocations: 1.712 MB / 0.7561 GB, free: 12.39 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003599/0.7968, allocations: 0.6388 MB / 0.7567 GB, free: 11.76 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3017/1.098, allocations: 58.61 MB / 0.814 GB, free: 180.2 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004284/1.103, allocations: 4.229 MB / 0.8181 GB, free: 178.7 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.005413/1.108, allocations: 2.708 MB / 0.8207 GB, free: 178.6 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002876/1.111, allocations: 2.607 MB / 0.8233 GB, free: 176.5 MB / 0.5606 GB Notification: Performance of SimCode: time 1.293e-06/1.111, allocations: 0 / 0.8233 GB, free: 176.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1628/1.274, allocations: 86.28 MB / 0.9075 GB, free: 96.22 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.19/24.46, allocations: 15.78 kB / 0.9076 GB, free: 96.2 MB / 0.5606 GB " [Timeout remaining time 635] (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: 27.338642531016376] Failed to read output from testmodel.py, exit status != 0: 24.669808948994614 24.681976495 24.48297545 Calling exit ...