Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.WheelBasedCraneCrab.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.001299/0.001299, 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.001414/0.001414, allocations: 217.5 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.48/1.48, allocations: 230.6 MB / 256.8 MB, free: 7.984 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.05243/0.05243, allocations: 9.245 MB / 322.5 MB, free: 10.03 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.WheelBasedCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_WheelBasedCraneCrab",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.WheelBasedCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_WheelBasedCraneCrab",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.00203/0.00203, allocations: 65.94 kB / 448.5 MB, free: 15.04 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09701/0.09904, allocations: 55.47 MB / 0.4922 GB, free: 7.484 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.WheelBasedCraneCrab): time 0.01028/0.1093, allocations: 8.244 MB / 0.5002 GB, free: 15.2 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005261/0.1146, allocations: 2.581 MB / 0.5028 GB, free: 12.61 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006954/0.1153, allocations: 39.88 kB / 0.5028 GB, free: 12.57 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000799/0.1161, allocations: 377.5 kB / 0.5031 GB, free: 12.2 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002995/0.1191, allocations: 1.436 MB / 0.5046 GB, free: 10.76 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002906/0.1194, allocations: 95.81 kB / 0.5046 GB, free: 10.67 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00285/0.1222, allocations: 2.416 MB / 0.507 GB, free: 8.246 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009167/0.1231, allocations: 0.6772 MB / 0.5077 GB, free: 7.543 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001128/0.1243, allocations: 0.8871 MB / 0.5085 GB, free: 6.652 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001784/0.126, allocations: 1.378 MB / 0.5099 GB, free: 5.27 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003384/0.1264, allocations: 220 kB / 0.5101 GB, free: 5.055 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001412/0.1278, allocations: 0.8581 MB / 0.5109 GB, free: 4.195 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001145/0.1289, allocations: 1.227 MB / 0.5121 GB, free: 2.965 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00145/0.1304, allocations: 1.506 MB / 0.5136 GB, free: 1.449 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1987/0.3291, allocations: 4.944 MB / 0.5184 GB, free: 12.45 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.416e-06/0.3291, allocations: 2.047 kB / 0.5184 GB, free: 12.45 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3291, allocations: 0 / 0.5184 GB, free: 12.45 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001979/0.3293, allocations: 0 / 0.5184 GB, free: 12.45 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: 1171 * Number of variables: 1171 Notification: Performance of Generate backend data structure: time 0.01359/0.3429, allocations: 4.783 MB / 0.5231 GB, free: 11.07 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.357e-05/0.3429, allocations: 9.219 kB / 0.5231 GB, free: 11.07 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 9.557e-05/0.343, allocations: 69.58 kB / 0.5232 GB, free: 11.07 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007294/0.3437, allocations: 0.5423 MB / 0.5237 GB, free: 11 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006929/0.3507, allocations: 1.776 MB / 0.5254 GB, free: 10.79 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002701/0.3534, allocations: 1.273 MB / 0.5267 GB, free: 10.45 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001182/0.3535, allocations: 145 kB / 0.5268 GB, free: 10.44 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000599/0.3541, allocations: 188.3 kB / 0.527 GB, free: 10.43 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01368/0.3678, allocations: 8.354 MB / 0.5352 GB, free: 8.547 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.777e-05/0.3678, allocations: 31.58 kB / 0.5352 GB, free: 8.543 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003546/0.3682, allocations: 88.62 kB / 0.5353 GB, free: 8.516 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003062/0.3713, allocations: 1.936 MB / 0.5372 GB, free: 8.141 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0144/0.3857, allocations: 7.549 MB / 0.5445 GB, free: 5.07 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03972/0.4254, allocations: 26.26 MB / 0.5702 GB, free: 13.25 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007546/0.4329, allocations: 2.081 MB / 0.5722 GB, free: 11.17 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001709/0.4346, allocations: 0.8212 MB / 0.573 GB, free: 10.35 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008063/0.4427, allocations: 3.306 MB / 0.5762 GB, free: 7.074 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.836e-05/0.4428, allocations: 49.53 kB / 0.5763 GB, free: 7.016 MB / 414.1 MB Notification: Performance of pre-optimization done (n=141): time 4.489e-06/0.4428, allocations: 0 / 0.5763 GB, free: 7.016 MB / 414.1 MB Notification: Performance of matching and sorting (n=156): time 0.01893/0.4617, allocations: 6.843 MB / 0.583 GB, free: 168 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.233e-05/0.4618, allocations: 72.33 kB / 0.583 GB, free: 88 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00531/0.4671, allocations: 2.618 MB / 0.5856 GB, free: 13.44 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002411/0.4673, allocations: 45.7 kB / 0.5856 GB, free: 13.39 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002047/0.4694, allocations: 2.23 MB / 0.5878 GB, free: 11.17 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008384/0.4702, allocations: 0.6105 MB / 0.5884 GB, free: 10.57 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00179/0.472, allocations: 0.8381 MB / 0.5892 GB, free: 9.719 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.4721, allocations: 310.5 kB / 0.5895 GB, free: 9.418 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002475/0.4746, allocations: 1.312 MB / 0.5908 GB, free: 8.098 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004644/0.4792, allocations: 3.715 MB / 0.5944 GB, free: 3.219 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007776/0.487, allocations: 5.447 MB / 0.5998 GB, free: 12.94 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.281e-05/0.4871, allocations: 27.94 kB / 0.5998 GB, free: 12.91 MB / 446.1 MB Notification: Performance of matching and sorting (n=550) (initialization): time 0.01153/0.4986, allocations: 5.098 MB / 0.6048 GB, free: 8.031 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001022/0.4987, allocations: 40 kB / 0.6048 GB, free: 7.992 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001455/0.4989, allocations: 91.77 kB / 0.6049 GB, free: 7.906 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008166/0.4997, allocations: 274.4 kB / 0.6051 GB, free: 7.637 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003435/0.5031, allocations: 0.9279 MB / 0.6061 GB, free: 6.707 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004763/0.5079, allocations: 3.099 MB / 0.6091 GB, free: 3.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003323/0.5112, allocations: 200 kB / 0.6093 GB, free: 3.305 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008036/0.512, allocations: 255.1 kB / 0.6095 GB, free: 3.059 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 384 * Number of states: 0 () * Number of discrete variables: 12 (body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[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 (510): * Single equations (assignments): 505 * 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,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003333/0.5153, allocations: 1.61 MB / 0.6111 GB, free: 1.438 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005412/0.5159, allocations: 235.3 kB / 0.6113 GB, free: 1.207 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003922/0.5198, allocations: 1.964 MB / 0.6132 GB, free: 15.23 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001112/0.5199, allocations: 23.98 kB / 0.6133 GB, free: 15.21 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.716e-06/0.5199, allocations: 4 kB / 0.6133 GB, free: 15.2 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.588e-05/0.5199, allocations: 7.969 kB / 0.6133 GB, free: 15.2 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0115/0.5314, allocations: 5.884 MB / 0.619 GB, free: 9.184 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.22e-05/0.5315, allocations: 4 kB / 0.619 GB, free: 9.18 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009222/0.5324, allocations: 217.2 kB / 0.6192 GB, free: 8.969 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004993/0.5329, allocations: 175.3 kB / 0.6194 GB, free: 8.797 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001026/0.533, allocations: 32.5 kB / 0.6194 GB, free: 8.766 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003312/0.5363, allocations: 2.509 MB / 0.6219 GB, free: 6.16 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.58e-06/0.5363, allocations: 4 kB / 0.6219 GB, free: 6.156 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005101/0.5414, allocations: 3.139 MB / 0.6249 GB, free: 2.934 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006895/0.5421, allocations: 234.8 kB / 0.6252 GB, free: 2.703 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003477/0.5424, allocations: 24 kB / 0.6252 GB, free: 2.68 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008795/0.5433, allocations: 63.72 kB / 0.6252 GB, free: 2.621 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000202/0.5435, allocations: 111.9 kB / 0.6254 GB, free: 2.516 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000107/0.5436, allocations: 51.98 kB / 0.6254 GB, free: 2.465 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00282/0.5464, allocations: 1.672 MB / 0.627 GB, free: 0.7773 MB / 462.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.5464, allocations: 0 / 0.627 GB, free: 0.7773 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003154/0.5496, allocations: 0.6718 MB / 0.6277 GB, free: 108 kB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 5 (idealRolling.w,body.r[1],body.phi,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 (118): * Single equations (assignments): 113 * 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,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005699/0.5553, allocations: 3.778 MB / 0.6314 GB, free: 12.24 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006042/0.5613, allocations: 3.142 MB / 0.6344 GB, free: 9.098 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.685e-06/0.5613, allocations: 0 / 0.6344 GB, free: 9.098 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001679/0.563, allocations: 0.9621 MB / 0.6354 GB, free: 8.129 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002189/0.5652, allocations: 388.3 kB / 0.6358 GB, free: 7.762 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04902/0.6142, allocations: 28.83 MB / 0.6639 GB, free: 7.672 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003786/0.618, allocations: 2.583 MB / 0.6664 GB, free: 5.062 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003167/0.6212, allocations: 1.263 MB / 0.6677 GB, free: 3.793 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002166/0.6233, allocations: 1.284 MB / 0.6689 GB, free: 2.508 MB / 0.4981 GB Notification: Performance of SimCode: time 8.82e-07/0.6234, allocations: 0 / 0.6689 GB, free: 2.508 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1034/0.7267, allocations: 48.98 MB / 0.7168 GB, free: 1.84 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.97/19.69, allocations: 10.72 kB / 0.7168 GB, free: 1.832 MB / 0.545 GB " [Timeout remaining time 640] (rm -f PlanarMechanics_PlanarMechanics.Examples.WheelBasedCraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.WheelBasedCraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.WheelBasedCraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.WheelBasedCraneCrab.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_WheelBasedCraneCrab_fmu --startTime=0 --stopTime=4.5 --stepSize=0.0018 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_WheelBasedCraneCrab.fmu > PlanarMechanics_PlanarMechanics.Examples.WheelBasedCraneCrab.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 22.807182373013347] Failed to read output from testmodel.py, exit status != 0: 19.89413044101093 20.099767472 19.767914947 Calling exit ...