Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.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.001459/0.001459, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001406/0.001406, allocations: 215.2 kB / 22.25 MB, free: 5.082 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.58/1.58, allocations: 230.6 MB / 256 MB, free: 7.992 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.05182/0.05182, allocations: 9.236 MB / 321.7 MB, free: 10.17 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.ControlledCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_ControlledCraneCrab",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.ControlledCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_ControlledCraneCrab",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.00218/0.00218, allocations: 67.89 kB / 447.7 MB, free: 15.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1543/0.1564, allocations: 55.48 MB / 0.4914 GB, free: 7.594 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.ControlledCraneCrab): time 0.01327/0.1697, allocations: 8.863 MB / 0.5001 GB, free: 14.69 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007351/0.1771, allocations: 2.733 MB / 0.5027 GB, free: 11.95 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001538/0.1786, allocations: 43.81 kB / 0.5028 GB, free: 11.91 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001234/0.1798, allocations: 385.3 kB / 0.5032 GB, free: 11.53 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004404/0.1842, allocations: 1.475 MB / 0.5046 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007037/0.1849, allocations: 175.7 kB / 0.5048 GB, free: 9.875 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004081/0.189, allocations: 2.6 MB / 0.5073 GB, free: 7.27 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001428/0.1905, allocations: 0.8247 MB / 0.5081 GB, free: 6.414 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001481/0.1919, allocations: 0.9532 MB / 0.509 GB, free: 5.457 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002283/0.1942, allocations: 1.463 MB / 0.5105 GB, free: 3.988 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005676/0.1948, allocations: 244 kB / 0.5107 GB, free: 3.75 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001713/0.1965, allocations: 0.8932 MB / 0.5116 GB, free: 2.855 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001275/0.1978, allocations: 1.238 MB / 0.5128 GB, free: 1.613 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002008/0.1998, allocations: 1.584 MB / 0.5143 GB, free: 20 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.309/0.5088, allocations: 5.063 MB / 0.5193 GB, free: 11.41 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.5088, allocations: 2.5 kB / 0.5193 GB, free: 11.41 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.5088, allocations: 0.5312 kB / 0.5193 GB, free: 11.41 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000182/0.509, allocations: 0.8438 kB / 0.5193 GB, free: 11.41 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: 1165 * Number of variables: 1165 Notification: Performance of Generate backend data structure: time 0.01265/0.5216, allocations: 3.974 MB / 0.5232 GB, free: 9.973 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/0.5217, allocations: 9.688 kB / 0.5232 GB, free: 9.973 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009585/0.5226, allocations: 0.547 MB / 0.5237 GB, free: 9.902 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007054/0.5297, allocations: 1.802 MB / 0.5255 GB, free: 9.68 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003524/0.5332, allocations: 1.35 MB / 0.5268 GB, free: 9.316 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001497/0.5333, allocations: 153.7 kB / 0.5269 GB, free: 9.312 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004527/0.5338, allocations: 202.4 kB / 0.5271 GB, free: 9.312 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01541/0.5492, allocations: 8.009 MB / 0.5349 GB, free: 7.75 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.549e-05/0.5493, allocations: 24.92 kB / 0.535 GB, free: 7.746 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003156/0.5496, allocations: 95.22 kB / 0.535 GB, free: 7.711 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003806/0.5534, allocations: 1.852 MB / 0.5369 GB, free: 7.352 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01677/0.5702, allocations: 7.177 MB / 0.5439 GB, free: 4.738 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04176/0.6119, allocations: 24.31 MB / 0.5676 GB, free: 15.29 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005264/0.6172, allocations: 1.853 MB / 0.5694 GB, free: 13.44 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001417/0.6186, allocations: 0.7743 MB / 0.5702 GB, free: 12.66 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00725/0.6259, allocations: 3.235 MB / 0.5733 GB, free: 9.445 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.077e-05/0.6259, allocations: 47.55 kB / 0.5734 GB, free: 9.391 MB / 414.1 MB Notification: Performance of pre-optimization done (n=131): time 3.086e-06/0.6259, allocations: 0 / 0.5734 GB, free: 9.391 MB / 414.1 MB Notification: Performance of matching and sorting (n=153): time 0.01557/0.6415, allocations: 6.821 MB / 0.58 GB, free: 2.574 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.528e-05/0.6415, allocations: 64.72 kB / 0.5801 GB, free: 2.5 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004757/0.6463, allocations: 2.681 MB / 0.5827 GB, free: 15.79 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.736e-05/0.6464, allocations: 45.7 kB / 0.5828 GB, free: 15.74 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002009/0.6484, allocations: 2.201 MB / 0.5849 GB, free: 13.55 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005753/0.649, allocations: 0.595 MB / 0.5855 GB, free: 12.96 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001328/0.6503, allocations: 0.7896 MB / 0.5863 GB, free: 12.16 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.6505, allocations: 304.9 kB / 0.5866 GB, free: 11.86 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002415/0.6529, allocations: 1.3 MB / 0.5878 GB, free: 10.56 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005102/0.658, allocations: 3.429 MB / 0.5912 GB, free: 6.105 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007749/0.6657, allocations: 5.081 MB / 0.5961 GB, free: 300 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.844e-05/0.6658, allocations: 24 kB / 0.5962 GB, free: 276 kB / 430.1 MB Notification: Performance of matching and sorting (n=516) (initialization): time 0.009474/0.6753, allocations: 4.903 MB / 0.6009 GB, free: 11.62 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.593e-05/0.6753, allocations: 38.84 kB / 0.601 GB, free: 11.59 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.803e-05/0.6754, allocations: 80 kB / 0.6011 GB, free: 11.51 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008658/0.6763, allocations: 332.6 kB / 0.6014 GB, free: 11.18 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002927/0.6792, allocations: 0.8617 MB / 0.6022 GB, free: 10.32 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005735/0.6849, allocations: 3.547 MB / 0.6057 GB, free: 6.66 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002788/0.6877, allocations: 207.9 kB / 0.6059 GB, free: 6.457 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003371/0.6881, allocations: 239.9 kB / 0.6061 GB, free: 6.227 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 340 * Number of states: 0 () * Number of discrete variables: 16 (revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],PID.I.local_reset,body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[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 (472): * Single equations (assignments): 467 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003565/0.6916, allocations: 1.569 MB / 0.6076 GB, free: 4.648 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004638/0.6921, allocations: 238.4 kB / 0.6079 GB, free: 4.414 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004124/0.6962, allocations: 2.006 MB / 0.6098 GB, free: 2.395 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002483/0.6965, allocations: 34.48 kB / 0.6099 GB, free: 2.363 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.117e-05/0.6965, allocations: 7.938 kB / 0.6099 GB, free: 2.355 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.583e-05/0.6965, allocations: 7.969 kB / 0.6099 GB, free: 2.348 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01126/0.7077, allocations: 5.651 MB / 0.6154 GB, free: 12.61 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.117e-06/0.7078, allocations: 4.562 kB / 0.6154 GB, free: 12.61 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009623/0.7087, allocations: 203.6 kB / 0.6156 GB, free: 12.41 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006594/0.7094, allocations: 232.7 kB / 0.6158 GB, free: 12.18 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.136e-05/0.7095, allocations: 27.98 kB / 0.6158 GB, free: 12.15 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004174/0.7136, allocations: 2.853 MB / 0.6186 GB, free: 9.195 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.539e-06/0.7136, allocations: 4.219 kB / 0.6186 GB, free: 9.191 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005159/0.7188, allocations: 3.102 MB / 0.6217 GB, free: 6.043 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001015/0.7198, allocations: 398.8 kB / 0.622 GB, free: 5.652 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002402/0.72, allocations: 27.94 kB / 0.6221 GB, free: 5.625 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009092/0.721, allocations: 71.12 kB / 0.6221 GB, free: 5.559 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001795/0.7211, allocations: 89.52 kB / 0.6222 GB, free: 5.469 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.972e-05/0.7212, allocations: 40 kB / 0.6223 GB, free: 5.43 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002979/0.7242, allocations: 1.736 MB / 0.624 GB, free: 3.68 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.7242, allocations: 0 / 0.624 GB, free: 3.68 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003428/0.7276, allocations: 0.6718 MB / 0.6246 GB, free: 3.008 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (PID.I.y,PID.D.x,prismatic.s,prismatic.v,revolute.phi,revolute.w) * 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 (113): * Single equations (assignments): 108 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005921/0.7336, allocations: 3.749 MB / 0.6283 GB, free: 15.21 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006152/0.7397, allocations: 3.068 MB / 0.6313 GB, free: 12.14 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.7397, allocations: 0 / 0.6313 GB, free: 12.14 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001727/0.7414, allocations: 0.9826 MB / 0.6322 GB, free: 11.15 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001991/0.7434, allocations: 407.9 kB / 0.6326 GB, free: 10.76 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05225/0.7957, allocations: 28.12 MB / 0.6601 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003746/0.7994, allocations: 2.597 MB / 0.6626 GB, free: 9.285 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00321/0.8026, allocations: 1.185 MB / 0.6638 GB, free: 8.094 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001941/0.8046, allocations: 1.339 MB / 0.6651 GB, free: 6.754 MB / 0.4981 GB Notification: Performance of SimCode: time 1.313e-06/0.8046, allocations: 4 kB / 0.6651 GB, free: 6.75 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1325/0.9371, allocations: 51.68 MB / 0.7155 GB, free: 3.348 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.56/20.49, allocations: 8.672 kB / 0.7156 GB, free: 3.344 MB / 0.545 GB " [Timeout remaining time 639] (rm -f PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_ControlledCraneCrab_fmu --startTime=0 --stopTime=3 --stepSize=0.0012 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_ControlledCraneCrab.fmu > PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 23.60774840391241] Failed to read output from testmodel.py, exit status != 0: 20.646361798979342 20.860346401 20.348696428 Calling exit ...