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.001614/0.001614, allocations: 114.3 kB / 18.94 MB, free: 2.957 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.001769/0.001769, allocations: 215.3 kB / 22.25 MB, free: 5.113 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 MB, free: 8.031 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.05261/0.05261, allocations: 9.235 MB / 321.7 MB, free: 10.09 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.CraneCrabTo3D,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_CraneCrabTo3D",fmuType="me",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.002299/0.002299, allocations: 67.91 kB / 447.7 MB, free: 15.09 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1225/0.1248, allocations: 55.46 MB / 0.4914 GB, free: 7.539 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrabTo3D): time 0.01847/0.1433, allocations: 14.45 MB / 0.5055 GB, free: 9.023 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01178/0.155, allocations: 4.676 MB / 0.5101 GB, free: 4.332 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002743/0.1578, allocations: 87.62 kB / 0.5102 GB, free: 4.246 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004136/0.1619, allocations: 1.63 MB / 0.5118 GB, free: 2.609 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2752/0.4371, allocations: 2.609 MB / 0.5143 GB, free: 7.793 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002129/0.4392, allocations: 0.5657 MB / 0.5149 GB, free: 7.793 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007971/0.4472, allocations: 5.208 MB / 0.52 GB, free: 7.789 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004704/0.4519, allocations: 2.701 MB / 0.5226 GB, free: 7.555 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004891/0.4568, allocations: 1.798 MB / 0.5243 GB, free: 7.312 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005582/0.4624, allocations: 2.735 MB / 0.527 GB, free: 6.988 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001571/0.464, allocations: 382.3 kB / 0.5274 GB, free: 6.988 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003256/0.4672, allocations: 1.221 MB / 0.5286 GB, free: 6.988 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00335/0.4706, allocations: 2.32 MB / 0.5308 GB, free: 6.672 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003902/0.4745, allocations: 2.784 MB / 0.5336 GB, free: 5.266 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01301/0.4875, allocations: 8.746 MB / 0.5421 GB, free: 1.117 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.697e-06/0.4875, allocations: 1.125 kB / 0.5421 GB, free: 1.117 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.106e-06/0.4875, allocations: 0 / 0.5421 GB, free: 1.117 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004539/0.4879, allocations: 0 / 0.5421 GB, free: 1.117 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.02085/0.5088, allocations: 6.668 MB / 0.5486 GB, free: 12.73 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.996e-05/0.5088, allocations: 9.281 kB / 0.5486 GB, free: 12.73 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002204/0.511, allocations: 0.9466 MB / 0.5496 GB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01363/0.5247, allocations: 3.445 MB / 0.5529 GB, free: 10.32 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009006/0.5337, allocations: 2.919 MB / 0.5558 GB, free: 8.727 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003845/0.5341, allocations: 276.4 kB / 0.556 GB, free: 8.652 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001738/0.5358, allocations: 360.6 kB / 0.5564 GB, free: 8.43 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02896/0.5648, allocations: 14.03 MB / 0.5701 GB, free: 9.805 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001568/0.5649, allocations: 56.09 kB / 0.5701 GB, free: 9.762 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005826/0.5655, allocations: 170.3 kB / 0.5703 GB, free: 9.652 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005433/0.5709, allocations: 3.147 MB / 0.5734 GB, free: 6.523 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02788/0.5988, allocations: 12.21 MB / 0.5853 GB, free: 10.31 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0823/0.6811, allocations: 51.73 MB / 0.6358 GB, free: 5.586 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01183/0.693, allocations: 4.099 MB / 0.6398 GB, free: 1.461 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002898/0.6958, allocations: 1.704 MB / 0.6415 GB, free: 15.75 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0155/0.7113, allocations: 6.786 MB / 0.6481 GB, free: 9.004 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.069e-05/0.7114, allocations: 55.81 kB / 0.6482 GB, free: 8.941 MB / 494.1 MB Notification: Performance of pre-optimization done (n=242): time 6.001e-06/0.7114, allocations: 8 kB / 0.6482 GB, free: 8.934 MB / 494.1 MB Notification: Performance of matching and sorting (n=272): time 0.03482/0.7462, allocations: 14.61 MB / 0.6624 GB, free: 10.33 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001185/0.7463, allocations: 162.4 kB / 0.6626 GB, free: 10.14 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008983/0.7553, allocations: 5.395 MB / 0.6678 GB, free: 4.746 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0005498/0.7559, allocations: 63.3 kB / 0.6679 GB, free: 4.68 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.003695/0.7596, allocations: 4.263 MB / 0.6721 GB, free: 448 kB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001289/0.7609, allocations: 1.085 MB / 0.6731 GB, free: 15.36 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002382/0.7632, allocations: 1.647 MB / 0.6747 GB, free: 13.71 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001486/0.7634, allocations: 301.1 kB / 0.675 GB, free: 13.41 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004613/0.768, allocations: 2.538 MB / 0.6775 GB, free: 10.86 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009051/0.7771, allocations: 7.36 MB / 0.6847 GB, free: 1.125 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01438/0.7914, allocations: 10.74 MB / 0.6952 GB, free: 4.035 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001281/0.7916, allocations: 51.94 kB / 0.6952 GB, free: 3.984 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1082) (initialization): time 0.01899/0.8105, allocations: 9.927 MB / 0.7049 GB, free: 10.05 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.496e-05/0.8106, allocations: 76 kB / 0.705 GB, free: 9.977 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003073/0.8109, allocations: 168 kB / 0.7052 GB, free: 9.812 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001112/0.8121, allocations: 0.4899 MB / 0.7056 GB, free: 9.316 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005707/0.8178, allocations: 1.844 MB / 0.7074 GB, free: 7.469 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00663/0.8244, allocations: 5.094 MB / 0.7124 GB, free: 2.141 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005981/0.8304, allocations: 418.5 kB / 0.7128 GB, free: 1.734 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008901/0.8313, allocations: 496 kB / 0.7133 GB, free: 1.25 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.005769/0.837, allocations: 2.858 MB / 0.7161 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001033/0.8381, allocations: 484.7 kB / 0.7165 GB, free: 13.91 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00566/0.8437, allocations: 2.97 MB / 0.7194 GB, free: 10.92 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-05/0.8438, allocations: 32 kB / 0.7195 GB, free: 10.89 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.241e-05/0.8438, allocations: 4 kB / 0.7195 GB, free: 10.88 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.278e-05/0.8438, allocations: 11.91 kB / 0.7195 GB, free: 10.87 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01797/0.8618, allocations: 9.031 MB / 0.7283 GB, free: 1.727 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.707e-05/0.8618, allocations: 8 kB / 0.7283 GB, free: 1.719 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001774/0.8636, allocations: 383.4 kB / 0.7287 GB, free: 1.344 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008142/0.8644, allocations: 280.7 kB / 0.7289 GB, free: 1.066 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001514/0.8645, allocations: 48 kB / 0.729 GB, free: 1.02 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2375/1.102, allocations: 4.156 MB / 0.733 GB, free: 185.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.151e-06/1.102, allocations: 15.97 kB / 0.7331 GB, free: 185.1 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007328/1.109, allocations: 5.673 MB / 0.7386 GB, free: 184.3 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001304/1.111, allocations: 466 kB / 0.739 GB, free: 184.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005475/1.111, allocations: 48.09 kB / 0.7391 GB, free: 184.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001585/1.113, allocations: 110.5 kB / 0.7392 GB, free: 184.3 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003245/1.113, allocations: 166.6 kB / 0.7394 GB, free: 184.3 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001513/1.113, allocations: 80.06 kB / 0.7394 GB, free: 184.3 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.006694/1.12, allocations: 3.392 MB / 0.7427 GB, free: 183.5 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.01e-07/1.12, allocations: 0 / 0.7427 GB, free: 183.5 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006619/1.127, allocations: 1.233 MB / 0.744 GB, free: 183.3 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.008788/1.135, allocations: 6.333 MB / 0.7501 GB, free: 180.5 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01046/1.146, allocations: 5.964 MB / 0.756 GB, free: 178.5 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.055e-05/1.146, allocations: 5.938 kB / 0.756 GB, free: 178.5 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.002434/1.148, allocations: 1.703 MB / 0.7576 GB, free: 177.8 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003532/1.152, allocations: 0.654 MB / 0.7583 GB, free: 177.5 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07074/1.223, allocations: 58.74 MB / 0.8156 GB, free: 123.8 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005253/1.228, allocations: 4.232 MB / 0.8198 GB, free: 119.8 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.00551/1.233, allocations: 2.711 MB / 0.8224 GB, free: 117.1 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002954/1.236, allocations: 2.612 MB / 0.825 GB, free: 114.5 MB / 0.5606 GB Notification: Performance of SimCode: time 9.52e-07/1.236, allocations: 0 / 0.825 GB, free: 114.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1456/1.382, allocations: 89.31 MB / 0.9122 GB, free: 25.62 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.53/24.91, allocations: 4 kB / 0.9122 GB, free: 25.61 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.738546699984] Failed to read output from testmodel.py, exit status != 0: 25.07937730709091 25.098761124 24.606991999999998 Calling exit ...