Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.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.001342/0.001342, allocations: 107.2 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.001237/0.001237, 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.351/1.351, 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.04703/0.04703, allocations: 9.244 MB / 311.9 MB, free: 0.7422 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.InvertedCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_InvertedCraneCrab",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.InvertedCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_InvertedCraneCrab",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001846/0.001846, allocations: 59.91 kB / 434 MB, free: 14.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1129, allocations: 54.26 MB / 488.3 MB, free: 7.707 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.InvertedCraneCrab): time 0.01013/0.123, allocations: 8.687 MB / 497 MB, free: 14.97 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005856/0.1289, allocations: 2.616 MB / 499.6 MB, free: 12.35 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007446/0.1296, allocations: 31.94 kB / 499.6 MB, free: 12.32 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008088/0.1304, allocations: 385.4 kB / 0.4883 GB, free: 11.94 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003047/0.1335, allocations: 1.44 MB / 0.4897 GB, free: 10.49 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003938/0.1339, allocations: 151.7 kB / 0.4898 GB, free: 10.34 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002896/0.1367, allocations: 2.533 MB / 0.4923 GB, free: 7.805 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001162/0.1379, allocations: 0.7943 MB / 0.4931 GB, free: 6.98 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001468/0.1394, allocations: 0.9027 MB / 0.494 GB, free: 6.074 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002015/0.1414, allocations: 1.436 MB / 0.4954 GB, free: 4.633 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004548/0.1418, allocations: 240 kB / 0.4956 GB, free: 4.398 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001556/0.1434, allocations: 0.8698 MB / 0.4964 GB, free: 3.527 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001177/0.1446, allocations: 1.242 MB / 0.4977 GB, free: 2.281 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001753/0.1463, allocations: 1.573 MB / 0.4992 GB, free: 0.6992 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005916/0.1522, allocations: 5.011 MB / 0.5041 GB, free: 11.67 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.1523, allocations: 0 / 0.5041 GB, free: 11.67 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.687e-06/0.1523, allocations: 3.984 kB / 0.5041 GB, free: 11.66 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001238/0.1524, allocations: 4 kB / 0.5041 GB, free: 11.66 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: 1155 * Number of variables: 1155 Notification: Performance of Generate backend data structure: time 0.008289/0.1607, allocations: 3.965 MB / 0.508 GB, free: 7.625 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/0.1607, allocations: 8.031 kB / 0.508 GB, free: 7.617 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006327/0.1613, allocations: 0.5388 MB / 0.5085 GB, free: 7.066 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006309/0.1677, allocations: 1.785 MB / 0.5102 GB, free: 5.277 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003035/0.1707, allocations: 1.379 MB / 0.5116 GB, free: 3.855 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001565/0.1708, allocations: 156 kB / 0.5117 GB, free: 3.703 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000473/0.1713, allocations: 199.8 kB / 0.5119 GB, free: 3.508 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2055/0.3768, allocations: 7.96 MB / 0.5197 GB, free: 31.55 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.419e-05/0.3769, allocations: 22.86 kB / 0.5197 GB, free: 31.54 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000276/0.3772, allocations: 95.2 kB / 0.5198 GB, free: 31.51 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002547/0.3797, allocations: 1.845 MB / 0.5216 GB, free: 31.15 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01218/0.3919, allocations: 7.164 MB / 0.5286 GB, free: 28.72 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02564/0.4176, allocations: 24.13 MB / 0.5522 GB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003995/0.4215, allocations: 2.281 MB / 0.5544 GB, free: 8.805 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009291/0.4225, allocations: 0.7782 MB / 0.5552 GB, free: 8.023 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005868/0.4283, allocations: 4.751 MB / 0.5598 GB, free: 3.004 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.43e-05/0.4284, allocations: 44.59 kB / 0.5599 GB, free: 2.949 MB / 382.1 MB Notification: Performance of pre-optimization done (n=128): time 3.507e-06/0.4284, allocations: 0 / 0.5599 GB, free: 2.949 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.01355/0.4419, allocations: 7.108 MB / 0.5668 GB, free: 11.94 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.245e-05/0.442, allocations: 68.72 kB / 0.5669 GB, free: 11.86 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003931/0.4459, allocations: 2.63 MB / 0.5694 GB, free: 9.199 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001929/0.4461, allocations: 47.03 kB / 0.5695 GB, free: 9.148 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001756/0.4479, allocations: 2.157 MB / 0.5716 GB, free: 6.973 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006713/0.4485, allocations: 0.5968 MB / 0.5722 GB, free: 6.371 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001114/0.4497, allocations: 0.7903 MB / 0.5729 GB, free: 5.57 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.4498, allocations: 301.1 kB / 0.5732 GB, free: 5.273 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002252/0.452, allocations: 1.311 MB / 0.5745 GB, free: 3.957 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003924/0.456, allocations: 3.43 MB / 0.5779 GB, free: 15.47 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006484/0.4624, allocations: 5.097 MB / 0.5828 GB, free: 9.336 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-05/0.4625, allocations: 20 kB / 0.5828 GB, free: 9.316 MB / 414.1 MB Notification: Performance of matching and sorting (n=512) (initialization): time 0.008086/0.4706, allocations: 4.814 MB / 0.5875 GB, free: 4.496 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.739e-05/0.4706, allocations: 39.94 kB / 0.5876 GB, free: 4.457 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.7e-05/0.4707, allocations: 76.88 kB / 0.5877 GB, free: 4.383 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004485/0.4711, allocations: 203.1 kB / 0.5879 GB, free: 4.184 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002718/0.4739, allocations: 0.9084 MB / 0.5887 GB, free: 3.273 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002424/0.4763, allocations: 2.328 MB / 0.591 GB, free: 0.8008 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002339/0.4786, allocations: 219.9 kB / 0.5912 GB, free: 0.5859 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002883/0.4789, allocations: 224.5 kB / 0.5914 GB, free: 376 kB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 338 * Number of states: 0 () * Number of discrete variables: 15 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],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 (478): * Single equations (assignments): 473 * 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 {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002176/0.4811, allocations: 1.554 MB / 0.593 GB, free: 14.8 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003323/0.4814, allocations: 234.4 kB / 0.5932 GB, free: 14.57 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003367/0.4848, allocations: 1.947 MB / 0.5951 GB, free: 12.6 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001001/0.4849, allocations: 23.98 kB / 0.5951 GB, free: 12.58 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.802e-06/0.4849, allocations: 7.938 kB / 0.5951 GB, free: 12.57 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.599e-05/0.4849, allocations: 15.91 kB / 0.5951 GB, free: 12.55 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00964/0.4945, allocations: 5.572 MB / 0.6006 GB, free: 6.859 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.546e-06/0.4946, allocations: 0 / 0.6006 GB, free: 6.859 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000965/0.4955, allocations: 239.7 kB / 0.6008 GB, free: 6.625 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003034/0.4958, allocations: 96.77 kB / 0.6009 GB, free: 6.527 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.298e-05/0.4959, allocations: 28.19 kB / 0.6009 GB, free: 6.5 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001981/0.4979, allocations: 2.075 MB / 0.6029 GB, free: 4.277 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.4979, allocations: 0 / 0.6029 GB, free: 4.277 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004698/0.5026, allocations: 3.046 MB / 0.6059 GB, free: 1.191 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000715/0.5033, allocations: 303.6 kB / 0.6062 GB, free: 0.875 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002518/0.5035, allocations: 27.94 kB / 0.6062 GB, free: 0.8477 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007967/0.5043, allocations: 71.91 kB / 0.6063 GB, free: 0.7773 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001792/0.5045, allocations: 80.83 kB / 0.6064 GB, free: 0.6992 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.039e-05/0.5046, allocations: 52.05 kB / 0.6064 GB, free: 0.6484 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002529/0.5071, allocations: 1.695 MB / 0.6081 GB, free: 14.94 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5071, allocations: 3.938 kB / 0.6081 GB, free: 14.93 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002755/0.5099, allocations: 0.6601 MB / 0.6087 GB, free: 14.27 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (revolute.phi,prismatic.s,prismatic.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 (124): * Single equations (assignments): 119 * 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 {(1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00518/0.5151, allocations: 3.68 MB / 0.6123 GB, free: 10.54 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005432/0.5205, allocations: 3.025 MB / 0.6153 GB, free: 7.52 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.631e-06/0.5205, allocations: 0 / 0.6153 GB, free: 7.52 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001478/0.522, allocations: 0.9342 MB / 0.6162 GB, free: 6.574 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001835/0.5238, allocations: 388.1 kB / 0.6166 GB, free: 6.207 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04048/0.5643, allocations: 27.45 MB / 0.6434 GB, free: 8.035 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003035/0.5673, allocations: 2.57 MB / 0.6459 GB, free: 5.434 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002768/0.5701, allocations: 1.192 MB / 0.647 GB, free: 4.234 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001819/0.5719, allocations: 1.288 MB / 0.6483 GB, free: 2.945 MB / 478.1 MB Notification: Performance of SimCode: time 8.52e-07/0.5719, allocations: 0 / 0.6483 GB, free: 2.945 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09151/0.6634, allocations: 46.52 MB / 0.6937 GB, free: 4.625 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.09/15.76, allocations: 10.72 kB / 0.6937 GB, free: 4.617 MB / 0.5137 GB " [Timeout remaining time 644] (rm -f PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_InvertedCraneCrab_fmu --startTime=0 --stopTime=3 --stepSize=0.0012 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_InvertedCraneCrab.fmu > PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 18.295695486012846] Failed to read output from testmodel.py, exit status != 0: 15.867341555189341 15.882448401 15.727281277 Calling exit ...