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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001238/0.001238, allocations: 109.4 kB / 16.45 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001387/0.001387, allocations: 191.8 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.369/1.369, allocations: 225.6 MB / 247.8 MB, free: 13.94 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.04717/0.04717, allocations: 9.248 MB / 311.9 MB, free: 0.75 MB / 238.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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.001827/0.001827, allocations: 71.89 kB / 434 MB, free: 14.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09498/0.0968, allocations: 54.26 MB / 488.3 MB, free: 7.816 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrabTo3D): time 0.01602/0.1128, allocations: 14.44 MB / 0.491 GB, free: 9.309 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009568/0.1224, allocations: 4.676 MB / 0.4955 GB, free: 4.617 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002006/0.1244, allocations: 75.81 kB / 0.4956 GB, free: 4.543 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003314/0.1277, allocations: 1.634 MB / 0.4972 GB, free: 2.902 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00584/0.1335, allocations: 2.63 MB / 0.4998 GB, free: 268 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001283/0.1348, allocations: 0.581 MB / 0.5003 GB, free: 15.68 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006665/0.1415, allocations: 5.189 MB / 0.5054 GB, free: 10.48 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003264/0.1448, allocations: 2.577 MB / 0.5079 GB, free: 7.852 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002489/0.1473, allocations: 1.775 MB / 0.5096 GB, free: 6.07 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003468/0.1507, allocations: 2.752 MB / 0.5123 GB, free: 3.309 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008194/0.1515, allocations: 380 kB / 0.5127 GB, free: 2.938 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002324/0.1539, allocations: 1.233 MB / 0.5139 GB, free: 1.703 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.205/0.3589, allocations: 2.34 MB / 0.5162 GB, free: 9.75 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004645/0.3635, allocations: 2.82 MB / 0.5189 GB, free: 9.102 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01122/0.3747, allocations: 8.82 MB / 0.5276 GB, free: 7.578 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.3747, allocations: 4.391 kB / 0.5276 GB, free: 7.578 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3747, allocations: 0 / 0.5276 GB, free: 7.578 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003143/0.375, allocations: 0 / 0.5276 GB, free: 7.578 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.01839/0.3934, allocations: 6.745 MB / 0.5341 GB, free: 4.984 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/0.3935, allocations: 9.219 kB / 0.5342 GB, free: 4.984 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002315/0.3958, allocations: 0.9464 MB / 0.5351 GB, free: 4.781 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01215/0.4079, allocations: 3.448 MB / 0.5384 GB, free: 4.23 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007806/0.4157, allocations: 3.111 MB / 0.5415 GB, free: 2.883 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002067/0.4159, allocations: 284.9 kB / 0.5418 GB, free: 2.805 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001441/0.4174, allocations: 360.4 kB / 0.5421 GB, free: 2.734 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0255/0.4429, allocations: 14.02 MB / 0.5558 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001553/0.443, allocations: 49.58 kB / 0.5558 GB, free: 10.94 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008478/0.4439, allocations: 180 kB / 0.556 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004884/0.4488, allocations: 3.141 MB / 0.5591 GB, free: 8.715 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02598/0.4748, allocations: 12.21 MB / 0.571 GB, free: 12.74 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08154/0.5563, allocations: 51.88 MB / 0.6217 GB, free: 8.277 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01222/0.5685, allocations: 4.929 MB / 0.6265 GB, free: 3.125 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00345/0.572, allocations: 1.704 MB / 0.6281 GB, free: 1.418 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01846/0.5904, allocations: 8.024 MB / 0.636 GB, free: 9.129 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.052e-05/0.5905, allocations: 65.09 kB / 0.636 GB, free: 9.062 MB / 478.1 MB Notification: Performance of pre-optimization done (n=242): time 5.501e-06/0.5905, allocations: 0 / 0.636 GB, free: 9.062 MB / 478.1 MB Notification: Performance of matching and sorting (n=272): time 0.03739/0.6279, allocations: 14.76 MB / 0.6505 GB, free: 10.3 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001059/0.628, allocations: 153.6 kB / 0.6506 GB, free: 10.12 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009633/0.6376, allocations: 5.404 MB / 0.6559 GB, free: 4.723 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004083/0.638, allocations: 65.53 kB / 0.6559 GB, free: 4.656 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003715/0.6417, allocations: 4.272 MB / 0.6601 GB, free: 412 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001434/0.6432, allocations: 1.081 MB / 0.6612 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002688/0.6459, allocations: 1.647 MB / 0.6628 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001316/0.646, allocations: 301.1 kB / 0.6631 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004715/0.6507, allocations: 2.538 MB / 0.6655 GB, free: 10.83 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0095/0.6602, allocations: 7.359 MB / 0.6727 GB, free: 1.168 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01486/0.6751, allocations: 10.75 MB / 0.6832 GB, free: 4.719 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001537/0.6752, allocations: 52 kB / 0.6833 GB, free: 4.668 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1082) (initialization): time 0.02061/0.6958, allocations: 9.916 MB / 0.693 GB, free: 10.74 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001666/0.696, allocations: 76 kB / 0.693 GB, free: 10.67 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002583/0.6963, allocations: 168 kB / 0.6932 GB, free: 10.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001183/0.6974, allocations: 0.489 MB / 0.6937 GB, free: 10.01 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006173/0.7036, allocations: 1.848 MB / 0.6955 GB, free: 8.16 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006448/0.7101, allocations: 5.297 MB / 0.7006 GB, free: 2.578 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005825/0.7159, allocations: 423.2 kB / 0.7011 GB, free: 2.168 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001371/0.7173, allocations: 496 kB / 0.7015 GB, free: 1.684 MB / 0.5294 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.005964/0.7232, allocations: 2.855 MB / 0.7043 GB, free: 14.82 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001065/0.7243, allocations: 488.7 kB / 0.7048 GB, free: 14.34 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005756/0.73, allocations: 2.956 MB / 0.7077 GB, free: 11.37 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.241e-05/0.7301, allocations: 32 kB / 0.7077 GB, free: 11.34 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.39e-05/0.7301, allocations: 4 kB / 0.7077 GB, free: 11.33 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.787e-05/0.7301, allocations: 15.89 kB / 0.7077 GB, free: 11.32 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02/0.7501, allocations: 9.07 MB / 0.7166 GB, free: 2.121 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.045e-05/0.7502, allocations: 8 kB / 0.7166 GB, free: 2.113 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001631/0.7518, allocations: 380.3 kB / 0.7169 GB, free: 1.742 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007652/0.7526, allocations: 269.3 kB / 0.7172 GB, free: 1.473 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001757/0.7527, allocations: 54.09 kB / 0.7173 GB, free: 1.422 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1968/0.9495, allocations: 4.371 MB / 0.7215 GB, free: 184 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.388e-06/0.9495, allocations: 13.38 kB / 0.7215 GB, free: 184 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007426/0.9569, allocations: 5.669 MB / 0.7271 GB, free: 182.9 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001296/0.9582, allocations: 0.5244 MB / 0.7276 GB, free: 182.8 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005288/0.9587, allocations: 54.55 kB / 0.7276 GB, free: 182.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001467/0.9602, allocations: 107.2 kB / 0.7277 GB, free: 182.7 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002823/0.9605, allocations: 161.2 kB / 0.7279 GB, free: 182.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001472/0.9606, allocations: 76.98 kB / 0.728 GB, free: 182.7 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005035/0.9657, allocations: 3.396 MB / 0.7313 GB, free: 181.5 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9657, allocations: 0 / 0.7313 GB, free: 181.5 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005587/0.9713, allocations: 1.261 MB / 0.7325 GB, free: 181.4 MB / 0.545 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.006105/0.9774, allocations: 6.342 MB / 0.7387 GB, free: 178.5 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.007507/0.9849, allocations: 5.965 MB / 0.7445 GB, free: 176.4 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/0.9849, allocations: 0 / 0.7445 GB, free: 176.4 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00183/0.9867, allocations: 1.7 MB / 0.7462 GB, free: 175.7 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003155/0.9899, allocations: 0.6493 MB / 0.7468 GB, free: 175.4 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05854/1.048, allocations: 58.66 MB / 0.8041 GB, free: 115.3 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005914/1.054, allocations: 4.235 MB / 0.8082 GB, free: 111.1 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004943/1.059, allocations: 2.709 MB / 0.8109 GB, free: 108.3 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002493/1.062, allocations: 2.616 MB / 0.8134 GB, free: 105.7 MB / 0.545 GB Notification: Performance of SimCode: time 1.172e-06/1.062, allocations: 0 / 0.8134 GB, free: 105.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1219/1.184, allocations: 86.34 MB / 0.8978 GB, free: 19.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.16/22.34, allocations: 16.89 kB / 0.8978 GB, free: 19.79 MB / 0.545 GB " [Timeout remaining time 638] (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: 24.82897964399308] Failed to read output from testmodel.py, exit status != 0: 22.48260356206447 22.498853487 22.120847112 Calling exit ...