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.001374/0.001374, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.001723/0.001723, allocations: 218.4 kB / 23.04 MB, free: 5.074 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.533/1.533, allocations: 230.6 MB / 256.8 MB, free: 7.977 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.0524/0.0524, allocations: 9.24 MB / 322.5 MB, free: 10.12 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.002459/0.002459, allocations: 67.84 kB / 448.5 MB, free: 15.06 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1278/0.1303, allocations: 55.46 MB / 0.4922 GB, free: 7.512 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrabTo3D): time 0.02234/0.1526, allocations: 14.47 MB / 0.5063 GB, free: 8.98 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01288/0.1655, allocations: 4.664 MB / 0.5109 GB, free: 4.301 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003242/0.1688, allocations: 87.62 kB / 0.5109 GB, free: 4.215 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004729/0.1735, allocations: 1.638 MB / 0.5125 GB, free: 2.57 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2191/0.3926, allocations: 2.603 MB / 0.5151 GB, free: 7.805 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00165/0.3942, allocations: 0.5667 MB / 0.5156 GB, free: 7.805 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006718/0.401, allocations: 5.207 MB / 0.5207 GB, free: 7.801 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004132/0.4051, allocations: 2.694 MB / 0.5234 GB, free: 7.574 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003525/0.4086, allocations: 1.807 MB / 0.5251 GB, free: 7.328 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004987/0.4136, allocations: 2.737 MB / 0.5278 GB, free: 7 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00183/0.4154, allocations: 381.7 kB / 0.5282 GB, free: 7 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004171/0.4196, allocations: 1.218 MB / 0.5293 GB, free: 7 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00383/0.4234, allocations: 2.316 MB / 0.5316 GB, free: 6.684 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004388/0.4278, allocations: 2.797 MB / 0.5343 GB, free: 5.234 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01168/0.4395, allocations: 8.737 MB / 0.5429 GB, free: 1.102 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.241e-06/0.4395, allocations: 0 / 0.5429 GB, free: 1.102 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.4395, allocations: 0 / 0.5429 GB, free: 1.102 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000352/0.4399, allocations: 0 / 0.5429 GB, free: 1.102 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.02627/0.4661, allocations: 6.667 MB / 0.5494 GB, free: 12.71 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/0.4662, allocations: 10.25 kB / 0.5494 GB, free: 12.71 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002342/0.4664, allocations: 127.2 kB / 0.5495 GB, free: 12.71 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003922/0.4703, allocations: 0.9563 MB / 0.5504 GB, free: 12.11 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02033/0.4907, allocations: 3.438 MB / 0.5538 GB, free: 10.29 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008073/0.4987, allocations: 2.93 MB / 0.5567 GB, free: 8.691 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003276/0.4991, allocations: 278.8 kB / 0.5569 GB, free: 8.535 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002105/0.5012, allocations: 361.7 kB / 0.5573 GB, free: 8.242 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03071/0.5319, allocations: 14.03 MB / 0.571 GB, free: 9.602 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000255/0.5321, allocations: 47.58 kB / 0.571 GB, free: 9.555 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001439/0.5336, allocations: 180.3 kB / 0.5712 GB, free: 9.438 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006143/0.5397, allocations: 3.142 MB / 0.5743 GB, free: 6.309 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02763/0.5674, allocations: 12.2 MB / 0.5862 GB, free: 10.1 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08016/0.6475, allocations: 51.73 MB / 0.6367 GB, free: 5.371 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01244/0.66, allocations: 4.1 MB / 0.6407 GB, free: 1.25 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002999/0.663, allocations: 1.7 MB / 0.6424 GB, free: 15.54 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0152/0.6782, allocations: 6.791 MB / 0.649 GB, free: 8.789 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.763e-05/0.6782, allocations: 55.81 kB / 0.649 GB, free: 8.727 MB / 494.1 MB Notification: Performance of pre-optimization done (n=242): time 6.432e-06/0.6782, allocations: 0 / 0.649 GB, free: 8.727 MB / 494.1 MB Notification: Performance of matching and sorting (n=272): time 0.036/0.7142, allocations: 14.6 MB / 0.6633 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001063/0.7143, allocations: 162.1 kB / 0.6635 GB, free: 9.934 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008569/0.7229, allocations: 5.403 MB / 0.6687 GB, free: 4.535 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0003468/0.7232, allocations: 64.98 kB / 0.6688 GB, free: 4.469 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.003415/0.7267, allocations: 4.261 MB / 0.673 GB, free: 232 kB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001338/0.728, allocations: 1.084 MB / 0.674 GB, free: 15.16 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002428/0.7304, allocations: 1.642 MB / 0.6756 GB, free: 13.5 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001288/0.7306, allocations: 305.1 kB / 0.6759 GB, free: 13.2 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004291/0.7348, allocations: 2.538 MB / 0.6784 GB, free: 10.66 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008642/0.7435, allocations: 7.351 MB / 0.6856 GB, free: 0.9258 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01458/0.7581, allocations: 10.74 MB / 0.6961 GB, free: 3.828 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001377/0.7582, allocations: 48 kB / 0.6961 GB, free: 3.781 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1082) (initialization): time 0.02026/0.7785, allocations: 9.922 MB / 0.7058 GB, free: 9.852 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001157/0.7786, allocations: 79.94 kB / 0.7059 GB, free: 9.773 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002071/0.7788, allocations: 172 kB / 0.706 GB, free: 9.605 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001194/0.78, allocations: 0.4943 MB / 0.7065 GB, free: 9.105 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006095/0.7861, allocations: 1.84 MB / 0.7083 GB, free: 7.262 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006273/0.7923, allocations: 5.104 MB / 0.7133 GB, free: 1.926 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005543/0.7979, allocations: 422.8 kB / 0.7137 GB, free: 1.516 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009372/0.7988, allocations: 492 kB / 0.7142 GB, free: 1.035 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.004937/0.8038, allocations: 2.853 MB / 0.717 GB, free: 14.17 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008202/0.8046, allocations: 484.7 kB / 0.7174 GB, free: 13.7 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005892/0.8105, allocations: 2.967 MB / 0.7203 GB, free: 10.71 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.329e-05/0.8105, allocations: 31.59 kB / 0.7204 GB, free: 10.68 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.41e-05/0.8105, allocations: 4 kB / 0.7204 GB, free: 10.68 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.23e-05/0.8106, allocations: 11.91 kB / 0.7204 GB, free: 10.66 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01802/0.8286, allocations: 9.039 MB / 0.7292 GB, free: 1.512 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.236e-05/0.8286, allocations: 12.16 kB / 0.7292 GB, free: 1.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001721/0.8303, allocations: 379.4 kB / 0.7296 GB, free: 1.129 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008125/0.8311, allocations: 271.6 kB / 0.7298 GB, free: 0.8594 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001751/0.8313, allocations: 51.98 kB / 0.7299 GB, free: 0.8086 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.234/1.065, allocations: 4.161 MB / 0.7339 GB, free: 186.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.508e-06/1.065, allocations: 11.5 kB / 0.734 GB, free: 186.4 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009276/1.075, allocations: 5.67 MB / 0.7395 GB, free: 185.6 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002256/1.077, allocations: 468.5 kB / 0.7399 GB, free: 185.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001275/1.078, allocations: 45.28 kB / 0.74 GB, free: 185.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002752/1.081, allocations: 113 kB / 0.7401 GB, free: 185.6 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007713/1.082, allocations: 163.2 kB / 0.7402 GB, free: 185.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002397/1.082, allocations: 76.83 kB / 0.7403 GB, free: 185.6 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.01024/1.092, allocations: 3.394 MB / 0.7436 GB, free: 184.8 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.5e-07/1.092, allocations: 2.469 kB / 0.7436 GB, free: 184.8 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00979/1.102, allocations: 1.236 MB / 0.7448 GB, free: 184.6 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.009511/1.111, allocations: 6.338 MB / 0.751 GB, free: 181.8 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01111/1.123, allocations: 5.962 MB / 0.7569 GB, free: 179.8 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.107e-05/1.123, allocations: 0.6562 kB / 0.7569 GB, free: 179.8 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.002765/1.125, allocations: 1.706 MB / 0.7585 GB, free: 179.1 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005143/1.13, allocations: 0.6461 MB / 0.7592 GB, free: 178.8 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1004/1.231, allocations: 58.76 MB / 0.8165 GB, free: 124.1 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006357/1.237, allocations: 4.235 MB / 0.8207 GB, free: 119.8 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.006621/1.244, allocations: 2.71 MB / 0.8233 GB, free: 117.1 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005452/1.249, allocations: 2.612 MB / 0.8259 GB, free: 114.5 MB / 0.5606 GB Notification: Performance of SimCode: time 1.393e-06/1.249, allocations: 4 kB / 0.8259 GB, free: 114.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1673/1.417, allocations: 89.32 MB / 0.9131 GB, free: 25.61 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.07/26.48, allocations: 7.25 kB / 0.9131 GB, free: 25.61 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.371910204994492] Failed to read output from testmodel.py, exit status != 0: 26.717538798926398 26.733470923 26.289790817 Calling exit ...