Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.FreeBody.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.001721/0.001721, 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.002213/0.002213, allocations: 216.1 kB / 22.25 MB, free: 5.078 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.633/1.633, allocations: 230.6 MB / 256 MB, free: 7.988 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.0767/0.0767, allocations: 9.234 MB / 321.7 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.FreeBody,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_FreeBody",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.FreeBody,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_FreeBody",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.002105/0.002105, allocations: 71.89 kB / 447.7 MB, free: 15.04 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1475/0.1497, allocations: 55.47 MB / 0.4914 GB, free: 7.484 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.FreeBody): time 0.008874/0.1585, allocations: 5.884 MB / 0.4972 GB, free: 1.574 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004414/0.1629, allocations: 2.122 MB / 0.4992 GB, free: 15.44 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007949/0.1637, allocations: 23.94 kB / 0.4993 GB, free: 15.42 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008128/0.1645, allocations: 274.3 kB / 0.4995 GB, free: 15.15 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003433/0.168, allocations: 1.137 MB / 0.5006 GB, free: 14.01 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004547/0.1684, allocations: 31.97 kB / 0.5007 GB, free: 13.98 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00331/0.1717, allocations: 1.875 MB / 0.5025 GB, free: 12.1 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002765/0.172, allocations: 55 kB / 0.5025 GB, free: 12.03 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001572/0.1736, allocations: 0.6576 MB / 0.5032 GB, free: 11.37 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002224/0.1758, allocations: 1.09 MB / 0.5042 GB, free: 10.28 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000544/0.1764, allocations: 184 kB / 0.5044 GB, free: 10.1 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001784/0.1781, allocations: 0.7761 MB / 0.5052 GB, free: 9.32 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001431/0.1796, allocations: 0.9619 MB / 0.5061 GB, free: 8.355 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00221/0.1818, allocations: 1.181 MB / 0.5073 GB, free: 7.168 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006436/0.1882, allocations: 4.058 MB / 0.5112 GB, free: 3.094 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.1882, allocations: 3.938 kB / 0.5112 GB, free: 3.09 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1882, allocations: 0 / 0.5112 GB, free: 3.09 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.12e-05/0.1883, allocations: 0 / 0.5112 GB, free: 3.09 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: 902 * Number of variables: 902 Notification: Performance of Generate backend data structure: time 0.005898/0.1942, allocations: 2.557 MB / 0.5137 GB, free: 500 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.1942, allocations: 8.031 kB / 0.5137 GB, free: 492 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000541/0.1948, allocations: 433.1 kB / 0.5142 GB, free: 48 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3197/0.5144, allocations: 1.688 MB / 0.5158 GB, free: 24.25 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002817/0.5173, allocations: 1.029 MB / 0.5168 GB, free: 24.09 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.978e-05/0.5174, allocations: 100.9 kB / 0.5169 GB, free: 24.09 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003022/0.5177, allocations: 133.9 kB / 0.517 GB, free: 24.08 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00924/0.5269, allocations: 6.497 MB / 0.5234 GB, free: 22.72 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.906e-05/0.527, allocations: 18.14 kB / 0.5234 GB, free: 22.71 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002369/0.5272, allocations: 63.58 kB / 0.5235 GB, free: 22.69 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003316/0.5305, allocations: 1.627 MB / 0.525 GB, free: 22.37 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01262/0.5432, allocations: 6.042 MB / 0.5309 GB, free: 20.26 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02787/0.571, allocations: 18.14 MB / 0.5487 GB, free: 7.367 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002318/0.5733, allocations: 1.051 MB / 0.5497 GB, free: 6.805 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005704/0.5739, allocations: 0.4953 MB / 0.5502 GB, free: 6.305 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002873/0.5768, allocations: 1.751 MB / 0.5519 GB, free: 4.566 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.645e-05/0.5768, allocations: 37.5 kB / 0.5519 GB, free: 4.523 MB / 382.1 MB Notification: Performance of pre-optimization done (n=80): time 4.148e-06/0.5768, allocations: 0.5156 kB / 0.5519 GB, free: 4.523 MB / 382.1 MB Notification: Performance of matching and sorting (n=80): time 0.002953/0.5798, allocations: 1.503 MB / 0.5534 GB, free: 3.02 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.016e-05/0.5798, allocations: 63.72 kB / 0.5534 GB, free: 2.941 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002044/0.5818, allocations: 2.017 MB / 0.5554 GB, free: 0.918 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.683e-05/0.5819, allocations: 29.7 kB / 0.5554 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001273/0.5832, allocations: 1.72 MB / 0.5571 GB, free: 15.14 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005092/0.5837, allocations: 341.4 kB / 0.5574 GB, free: 14.8 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008457/0.5845, allocations: 0.564 MB / 0.558 GB, free: 14.23 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002819/0.5848, allocations: 357.9 kB / 0.5583 GB, free: 13.88 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00169/0.5865, allocations: 0.9266 MB / 0.5592 GB, free: 12.95 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003806/0.5903, allocations: 2.571 MB / 0.5618 GB, free: 9.551 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005297/0.5956, allocations: 3.725 MB / 0.5654 GB, free: 5.016 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.653e-05/0.5956, allocations: 20 kB / 0.5654 GB, free: 4.996 MB / 398.1 MB Notification: Performance of matching and sorting (n=360) (initialization): time 0.006215/0.6018, allocations: 3.433 MB / 0.5688 GB, free: 1.562 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.881e-05/0.6019, allocations: 28.56 kB / 0.5688 GB, free: 1.535 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002902/0.6022, allocations: 60.08 kB / 0.5689 GB, free: 1.477 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.889e-05/0.6023, allocations: 76 kB / 0.5689 GB, free: 1.402 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001994/0.6043, allocations: 0.6199 MB / 0.5695 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000108/0.6044, allocations: 115.6 kB / 0.5696 GB, free: 0.668 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002185/0.6066, allocations: 429.4 kB / 0.57 GB, free: 252 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002365/0.6068, allocations: 174.2 kB / 0.5702 GB, free: 80 kB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 266 * Number of states: 0 () * Number of discrete variables: 3 (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 (334): * Single equations (assignments): 330 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002448/0.6092, allocations: 1.318 MB / 0.5715 GB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002122/0.6095, allocations: 154.9 kB / 0.5716 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001977/0.6114, allocations: 1.051 MB / 0.5727 GB, free: 13.53 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001969/0.6116, allocations: 31.89 kB / 0.5727 GB, free: 13.5 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.6116, allocations: 4 kB / 0.5727 GB, free: 13.49 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/0.6116, allocations: 0.6562 kB / 0.5727 GB, free: 13.49 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007024/0.6187, allocations: 3.552 MB / 0.5762 GB, free: 9.879 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.6187, allocations: 0 / 0.5762 GB, free: 9.879 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004943/0.6192, allocations: 108 kB / 0.5763 GB, free: 9.773 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.825e-06/0.6192, allocations: 4 kB / 0.5763 GB, free: 9.77 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.481e-05/0.6192, allocations: 25.53 kB / 0.5763 GB, free: 9.746 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.446e-06/0.6192, allocations: 0 / 0.5763 GB, free: 9.746 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/0.6192, allocations: 4 kB / 0.5763 GB, free: 9.742 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002888/0.6221, allocations: 1.748 MB / 0.578 GB, free: 7.965 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002994/0.6224, allocations: 178.8 kB / 0.5782 GB, free: 7.789 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001558/0.6226, allocations: 9.031 kB / 0.5782 GB, free: 7.781 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004675/0.6231, allocations: 35.95 kB / 0.5782 GB, free: 7.746 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.697e-05/0.6231, allocations: 36.31 kB / 0.5783 GB, free: 7.711 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.611e-05/0.6232, allocations: 31.98 kB / 0.5783 GB, free: 7.68 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001994/0.6252, allocations: 1.313 MB / 0.5796 GB, free: 6.371 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6252, allocations: 0 / 0.5796 GB, free: 6.371 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00238/0.6276, allocations: 0.6353 MB / 0.5802 GB, free: 5.734 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (body.r[1],body.r[2],body.v[1],body.v[2],body.phi,body.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 (55): * Single equations (assignments): 51 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003445/0.631, allocations: 2.355 MB / 0.5825 GB, free: 3.336 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003368/0.6344, allocations: 1.939 MB / 0.5844 GB, free: 1.41 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/0.6344, allocations: 192 / 0.5844 GB, free: 1.41 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006675/0.6351, allocations: 443.6 kB / 0.5848 GB, free: 0.9766 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001399/0.6365, allocations: 305.1 kB / 0.5851 GB, free: 0.6875 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03461/0.6711, allocations: 20.05 MB / 0.6047 GB, free: 10.52 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002867/0.6739, allocations: 2.163 MB / 0.6068 GB, free: 8.332 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002178/0.6761, allocations: 0.8853 MB / 0.6077 GB, free: 7.445 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001448/0.6776, allocations: 0.9366 MB / 0.6086 GB, free: 6.508 MB / 446.1 MB Notification: Performance of SimCode: time 8.21e-07/0.6776, allocations: 0 / 0.6086 GB, free: 6.508 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1006/0.7782, allocations: 36.01 MB / 0.6437 GB, free: 2.727 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.52/17.3, allocations: 4 kB / 0.6437 GB, free: 2.723 MB / 478.1 MB " [Timeout remaining time 643] (rm -f PlanarMechanics_PlanarMechanics.Examples.FreeBody.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.FreeBody.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.FreeBody.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.FreeBody.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_FreeBody_fmu --startTime=0 --stopTime=3 --stepSize=0.0012 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_FreeBody.fmu > PlanarMechanics_PlanarMechanics.Examples.FreeBody.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 20.34277343400754] Failed to read output from testmodel.py, exit status != 0: 17.42122508212924 17.439140701 17.247165844 Calling exit ...