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.001433/0.001433, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001589/0.001589, allocations: 213.3 kB / 22.24 MB, free: 5.258 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.472/1.472, allocations: 230.6 MB / 256 MB, free: 7.797 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.0489/0.0489, allocations: 9.241 MB / 321.7 MB, free: 9.855 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.002168/0.002168, allocations: 67.89 kB / 447.7 MB, free: 14.6 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09653/0.0987, allocations: 55.47 MB / 0.4913 GB, free: 7.047 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrabTo3D): time 0.01525/0.114, allocations: 12.5 MB / 0.5035 GB, free: 10.49 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.009029/0.123, allocations: 4.415 MB / 0.5079 GB, free: 6.062 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00175/0.1247, allocations: 87.62 kB / 0.5079 GB, free: 5.977 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003538/0.1283, allocations: 1.595 MB / 0.5095 GB, free: 4.375 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006137/0.1344, allocations: 2.61 MB / 0.5121 GB, free: 1.758 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001438/0.1358, allocations: 0.5693 MB / 0.5126 GB, free: 1.188 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.1947/0.3305, allocations: 5.2 MB / 0.5177 GB, free: 8.098 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003632/0.3341, allocations: 2.686 MB / 0.5203 GB, free: 7.906 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00276/0.3369, allocations: 1.806 MB / 0.5221 GB, free: 7.66 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004141/0.341, allocations: 2.623 MB / 0.5246 GB, free: 7.34 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001302/0.3423, allocations: 381.4 kB / 0.525 GB, free: 7.34 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002756/0.3451, allocations: 1.082 MB / 0.5261 GB, free: 7.34 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002583/0.3477, allocations: 2.32 MB / 0.5283 GB, free: 7.023 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003771/0.3514, allocations: 1.984 MB / 0.5303 GB, free: 6.242 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009908/0.3614, allocations: 8.782 MB / 0.5388 GB, free: 3.609 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.3614, allocations: 0 / 0.5388 GB, free: 3.609 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.3614, allocations: 4.828 kB / 0.5388 GB, free: 3.605 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002794/0.3616, allocations: 0 / 0.5388 GB, free: 3.605 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.0179/0.3795, allocations: 6.663 MB / 0.5453 GB, free: 15.23 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/0.3796, allocations: 15.12 kB / 0.5454 GB, free: 15.22 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0025/0.3821, allocations: 0.9468 MB / 0.5463 GB, free: 14.63 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01347/0.3955, allocations: 3.444 MB / 0.5496 GB, free: 12.81 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007968/0.4035, allocations: 2.948 MB / 0.5525 GB, free: 11.21 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000227/0.4037, allocations: 273.8 kB / 0.5528 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001345/0.4051, allocations: 353.2 kB / 0.5531 GB, free: 11.08 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02651/0.4316, allocations: 14.04 MB / 0.5668 GB, free: 13.88 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001877/0.4318, allocations: 53.17 kB / 0.5669 GB, free: 13.86 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001318/0.4331, allocations: 179 kB / 0.5671 GB, free: 13.74 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00589/0.439, allocations: 3.144 MB / 0.5701 GB, free: 10.64 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02703/0.466, allocations: 12.18 MB / 0.582 GB, free: 14.68 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07848/0.5445, allocations: 49.58 MB / 0.6304 GB, free: 12.12 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01151/0.556, allocations: 4.099 MB / 0.6344 GB, free: 8.008 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003043/0.5591, allocations: 1.698 MB / 0.6361 GB, free: 6.305 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01594/0.575, allocations: 6.336 MB / 0.6423 GB, free: 4 kB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.276e-05/0.5751, allocations: 55.88 kB / 0.6423 GB, free: 15.94 MB / 494.1 MB Notification: Performance of pre-optimization done (n=242): time 7.193e-06/0.5751, allocations: 0 / 0.6423 GB, free: 15.94 MB / 494.1 MB Notification: Performance of matching and sorting (n=272): time 0.035/0.6101, allocations: 14.62 MB / 0.6566 GB, free: 1.32 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001111/0.6102, allocations: 150.5 kB / 0.6568 GB, free: 1.141 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009773/0.62, allocations: 5.689 MB / 0.6623 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.000447/0.6204, allocations: 67.58 kB / 0.6624 GB, free: 11.38 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.004123/0.6245, allocations: 4.259 MB / 0.6665 GB, free: 7.145 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001676/0.6262, allocations: 1.082 MB / 0.6676 GB, free: 6.074 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003121/0.6293, allocations: 1.653 MB / 0.6692 GB, free: 4.414 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001353/0.6295, allocations: 309 kB / 0.6695 GB, free: 4.113 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004902/0.6344, allocations: 2.53 MB / 0.672 GB, free: 1.574 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01043/0.6448, allocations: 7.355 MB / 0.6792 GB, free: 7.84 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01549/0.6603, allocations: 10.75 MB / 0.6897 GB, free: 10.74 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001786/0.6605, allocations: 48 kB / 0.6897 GB, free: 10.7 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1082) (initialization): time 0.02233/0.6828, allocations: 9.917 MB / 0.6994 GB, free: 0.7695 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001464/0.6829, allocations: 76 kB / 0.6995 GB, free: 0.6953 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002992/0.6832, allocations: 176 kB / 0.6996 GB, free: 0.5234 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001259/0.6845, allocations: 0.4927 MB / 0.7001 GB, free: 28 kB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006767/0.6913, allocations: 1.844 MB / 0.7019 GB, free: 14.18 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006622/0.6979, allocations: 5.065 MB / 0.7069 GB, free: 8.879 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005996/0.7039, allocations: 417.8 kB / 0.7072 GB, free: 8.473 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001596/0.7055, allocations: 496 kB / 0.7077 GB, free: 7.988 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.005996/0.7115, allocations: 2.852 MB / 0.7105 GB, free: 5.125 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000981/0.7125, allocations: 492.7 kB / 0.711 GB, free: 4.641 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005746/0.7182, allocations: 2.957 MB / 0.7139 GB, free: 1.668 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.145e-05/0.7182, allocations: 34.56 kB / 0.7139 GB, free: 1.637 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.124e-05/0.7183, allocations: 4 kB / 0.7139 GB, free: 1.633 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.382e-05/0.7183, allocations: 11.97 kB / 0.7139 GB, free: 1.621 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01925/0.7375, allocations: 8.587 MB / 0.7223 GB, free: 8.926 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.921e-05/0.7375, allocations: 12.03 kB / 0.7223 GB, free: 8.914 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001747/0.7393, allocations: 387.4 kB / 0.7227 GB, free: 8.535 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007945/0.7401, allocations: 267.5 kB / 0.7229 GB, free: 8.27 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002164/0.7403, allocations: 51.36 kB / 0.723 GB, free: 8.223 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004996/0.7453, allocations: 4.137 MB / 0.727 GB, free: 3.859 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.006e-05/0.7453, allocations: 11.94 kB / 0.727 GB, free: 3.848 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2091/0.9544, allocations: 5.671 MB / 0.7326 GB, free: 186.3 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001431/0.9558, allocations: 459.2 kB / 0.733 GB, free: 186.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000981/0.9568, allocations: 48.06 kB / 0.7331 GB, free: 186.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001743/0.9585, allocations: 107.7 kB / 0.7332 GB, free: 186.3 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003275/0.9589, allocations: 172.1 kB / 0.7333 GB, free: 186.3 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000151/0.959, allocations: 79 kB / 0.7334 GB, free: 186.3 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.005604/0.9646, allocations: 3.386 MB / 0.7367 GB, free: 186.1 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.61e-07/0.9646, allocations: 4.031 kB / 0.7367 GB, free: 186.1 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006597/0.9712, allocations: 1.233 MB / 0.7379 GB, free: 186.1 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.007908/0.9791, allocations: 6.335 MB / 0.7441 GB, free: 184.2 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01033/0.9894, allocations: 5.956 MB / 0.7499 GB, free: 182.2 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.22e-05/0.9895, allocations: 1.219 kB / 0.7499 GB, free: 182.2 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.002574/0.992, allocations: 1.712 MB / 0.7516 GB, free: 181.5 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003814/0.9958, allocations: 0.6386 MB / 0.7522 GB, free: 181.2 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09696/1.093, allocations: 58.74 MB / 0.8096 GB, free: 129.7 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006638/1.099, allocations: 3.724 MB / 0.8132 GB, free: 126.9 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.005684/1.105, allocations: 2.709 MB / 0.8159 GB, free: 124.4 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003407/1.109, allocations: 2.612 MB / 0.8184 GB, free: 121.8 MB / 0.5606 GB Notification: Performance of SimCode: time 9.52e-07/1.109, allocations: 0 / 0.8184 GB, free: 121.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1647/1.273, allocations: 85.6 MB / 0.902 GB, free: 37.03 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.64/20.92, allocations: 4.062 kB / 0.902 GB, free: 37.03 MB / 0.5606 GB " [Timeout remaining time 639] (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: 23.587863414082676] Failed to read output from testmodel.py, exit status != 0: 21.092386067844927 21.112314578 20.746761749 Calling exit ...