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.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.001592/0.001592, 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.002084/0.002084, allocations: 214.9 kB / 23.04 MB, free: 5.07 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.53/1.53, allocations: 230.6 MB / 256.8 MB, free: 8 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.04874/0.04874, allocations: 9.237 MB / 322.5 MB, free: 10.07 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.InvertedCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_InvertedCraneCrab",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.InvertedCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_InvertedCraneCrab",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.002307/0.002307, allocations: 67.91 kB / 448.5 MB, free: 15.09 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1213, allocations: 55.46 MB / 0.4922 GB, free: 7.547 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.InvertedCraneCrab): time 0.01131/0.1326, allocations: 8.722 MB / 0.5007 GB, free: 14.79 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007121/0.1397, allocations: 2.667 MB / 0.5033 GB, free: 12.11 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001585/0.1413, allocations: 43.88 kB / 0.5033 GB, free: 12.07 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001081/0.1424, allocations: 385.4 kB / 0.5037 GB, free: 11.69 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004123/0.1465, allocations: 1.436 MB / 0.5051 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006031/0.1471, allocations: 139.8 kB / 0.5052 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003858/0.151, allocations: 2.518 MB / 0.5077 GB, free: 7.59 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001361/0.1523, allocations: 0.775 MB / 0.5085 GB, free: 6.789 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001649/0.154, allocations: 0.93 MB / 0.5094 GB, free: 5.855 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002312/0.1563, allocations: 1.428 MB / 0.5108 GB, free: 4.422 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006187/0.1569, allocations: 232 kB / 0.511 GB, free: 4.195 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001759/0.1587, allocations: 0.8893 MB / 0.5118 GB, free: 3.305 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001329/0.16, allocations: 1.235 MB / 0.5131 GB, free: 2.066 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00185/0.1619, allocations: 1.553 MB / 0.5146 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2831/0.4449, allocations: 4.983 MB / 0.5194 GB, free: 11.89 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.163e-06/0.4449, allocations: 0 / 0.5194 GB, free: 11.89 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.993e-06/0.4449, allocations: 0 / 0.5194 GB, free: 11.89 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002327/0.4452, allocations: 0 / 0.5194 GB, free: 11.89 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.01355/0.4587, allocations: 3.915 MB / 0.5233 GB, free: 10.5 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.364e-05/0.4588, allocations: 14.84 kB / 0.5233 GB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001049/0.4589, allocations: 68.31 kB / 0.5233 GB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009424/0.4598, allocations: 0.5363 MB / 0.5239 GB, free: 10.43 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007443/0.4673, allocations: 1.79 MB / 0.5256 GB, free: 10.21 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00514/0.4724, allocations: 1.31 MB / 0.5269 GB, free: 9.867 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003627/0.4728, allocations: 150.2 kB / 0.527 GB, free: 9.863 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002086/0.4748, allocations: 206 kB / 0.5272 GB, free: 9.855 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01733/0.4922, allocations: 7.96 MB / 0.535 GB, free: 7.977 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001033/0.4923, allocations: 25.77 kB / 0.535 GB, free: 7.969 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003481/0.4926, allocations: 92.17 kB / 0.5351 GB, free: 7.938 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003303/0.4959, allocations: 1.853 MB / 0.5369 GB, free: 7.578 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01585/0.5118, allocations: 7.161 MB / 0.5439 GB, free: 4.938 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04262/0.5544, allocations: 24.03 MB / 0.5674 GB, free: 15.92 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005642/0.5601, allocations: 1.852 MB / 0.5692 GB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00147/0.5615, allocations: 0.7774 MB / 0.57 GB, free: 13.29 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00803/0.5696, allocations: 3.319 MB / 0.5732 GB, free: 9.992 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.751e-05/0.5696, allocations: 43.56 kB / 0.5732 GB, free: 9.941 MB / 414.1 MB Notification: Performance of pre-optimization done (n=128): time 5.58e-06/0.5696, allocations: 0.5156 kB / 0.5732 GB, free: 9.941 MB / 414.1 MB Notification: Performance of matching and sorting (n=154): time 0.01664/0.5862, allocations: 6.957 MB / 0.58 GB, free: 2.992 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.542e-05/0.5863, allocations: 68.28 kB / 0.5801 GB, free: 2.918 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004555/0.5909, allocations: 2.627 MB / 0.5827 GB, free: 268 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002827/0.5911, allocations: 45.7 kB / 0.5827 GB, free: 216 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001889/0.593, allocations: 2.177 MB / 0.5848 GB, free: 14.08 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007779/0.5938, allocations: 0.6013 MB / 0.5854 GB, free: 13.49 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001203/0.595, allocations: 0.786 MB / 0.5862 GB, free: 12.7 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001403/0.5951, allocations: 301.1 kB / 0.5865 GB, free: 12.4 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002511/0.5977, allocations: 1.304 MB / 0.5877 GB, free: 11.09 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004173/0.6018, allocations: 3.436 MB / 0.5911 GB, free: 6.637 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006948/0.6088, allocations: 5.093 MB / 0.5961 GB, free: 0.8164 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.418e-05/0.6089, allocations: 20 kB / 0.5961 GB, free: 0.7969 MB / 430.1 MB Notification: Performance of matching and sorting (n=512) (initialization): time 0.01171/0.6206, allocations: 4.821 MB / 0.6008 GB, free: 12.22 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.878e-05/0.6206, allocations: 36 kB / 0.6008 GB, free: 12.19 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.741e-05/0.6207, allocations: 77.19 kB / 0.6009 GB, free: 12.11 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005121/0.6212, allocations: 198.6 kB / 0.6011 GB, free: 11.92 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003384/0.6246, allocations: 0.9126 MB / 0.602 GB, free: 11 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003033/0.6277, allocations: 2.216 MB / 0.6042 GB, free: 8.664 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003841/0.6315, allocations: 219.8 kB / 0.6044 GB, free: 8.449 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000716/0.6322, allocations: 224 kB / 0.6046 GB, free: 8.23 MB / 446.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.003619/0.6358, allocations: 1.566 MB / 0.6061 GB, free: 6.652 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005089/0.6363, allocations: 231 kB / 0.6063 GB, free: 6.426 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003695/0.64, allocations: 1.947 MB / 0.6082 GB, free: 4.469 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001101/0.6401, allocations: 23.98 kB / 0.6083 GB, free: 4.445 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.486e-06/0.6402, allocations: 4 kB / 0.6083 GB, free: 4.441 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.659e-05/0.6402, allocations: 7.969 kB / 0.6083 GB, free: 4.434 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01014/0.6503, allocations: 5.555 MB / 0.6137 GB, free: 14.79 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.885e-06/0.6503, allocations: 0.7031 kB / 0.6137 GB, free: 14.79 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009895/0.6513, allocations: 243.8 kB / 0.6139 GB, free: 14.55 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003053/0.6516, allocations: 92.78 kB / 0.614 GB, free: 14.46 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.271e-05/0.6517, allocations: 27.98 kB / 0.614 GB, free: 14.43 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001983/0.6537, allocations: 1.964 MB / 0.616 GB, free: 12.35 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.6537, allocations: 3.938 kB / 0.616 GB, free: 12.34 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004916/0.6586, allocations: 3.037 MB / 0.6189 GB, free: 9.27 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007077/0.6593, allocations: 234.5 kB / 0.6191 GB, free: 9.039 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002756/0.6596, allocations: 23.98 kB / 0.6192 GB, free: 9.016 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008286/0.6604, allocations: 84.64 kB / 0.6193 GB, free: 8.934 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001931/0.6606, allocations: 84.78 kB / 0.6193 GB, free: 8.848 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001043/0.6607, allocations: 42.5 kB / 0.6194 GB, free: 8.809 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002769/0.6635, allocations: 1.695 MB / 0.621 GB, free: 7.098 MB / 462.1 MB Notification: Performance of sort global known variables: time 8e-08/0.6635, allocations: 0 / 0.621 GB, free: 7.098 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002978/0.6665, allocations: 0.6484 MB / 0.6217 GB, free: 6.449 MB / 462.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.00533/0.6718, allocations: 3.678 MB / 0.6253 GB, free: 2.727 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0056/0.6774, allocations: 3.027 MB / 0.6282 GB, free: 15.71 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/0.6774, allocations: 0 / 0.6282 GB, free: 15.71 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001601/0.679, allocations: 0.9268 MB / 0.6291 GB, free: 14.78 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002098/0.6811, allocations: 398.3 kB / 0.6295 GB, free: 14.4 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05342/0.7345, allocations: 27.5 MB / 0.6563 GB, free: 212 kB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003582/0.7381, allocations: 2.572 MB / 0.6589 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.002986/0.7411, allocations: 1.201 MB / 0.66 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002104/0.7432, allocations: 1.28 MB / 0.6613 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of SimCode: time 1.412e-06/0.7432, allocations: 4 kB / 0.6613 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1456/0.8888, allocations: 49.72 MB / 0.7098 GB, free: 9.672 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.25/19.14, allocations: 14.44 kB / 0.7099 GB, free: 9.66 MB / 0.545 GB " [Timeout remaining time 641] (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: 22.436949895927683] Failed to read output from testmodel.py, exit status != 0: 19.336291391053237 19.545787509 19.098124825 Calling exit ...