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.0008088/0.0008088, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0008737/0.0008737, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.9189/0.9189, allocations: 177.1 MB / 202.7 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] 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.0285/0.0285, allocations: 7.115 MB / 266.3 MB, free: 6.32 MB / 250.7 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: Performance of FrontEnd - loaded program: time 3.126e-06/3.126e-06, allocations: 4 kB / 392.4 MB, free: 3.996 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.819e-05/2.132e-05, allocations: 2.281 kB / 392.4 MB, free: 3.992 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.FreeBody): time 0.005117/0.005138, allocations: 5.214 MB / 397.6 MB, free: 14.75 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.002628/0.007766, allocations: 1.977 MB / 399.6 MB, free: 12.76 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003414/0.008108, allocations: 23.94 kB / 399.6 MB, free: 12.74 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004956/0.008603, allocations: 274.2 kB / 399.9 MB, free: 12.47 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001596/0.0102, allocations: 1.171 MB / 401 MB, free: 11.29 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 7.679e-05/0.01028, allocations: 35.89 kB / 401.1 MB, free: 11.26 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001243/0.01152, allocations: 1.91 MB / 403 MB, free: 9.348 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000148/0.01167, allocations: 62.98 kB / 403 MB, free: 9.277 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008688/0.01254, allocations: 0.9898 MB / 404 MB, free: 8.285 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009655/0.0135, allocations: 1.044 MB / 405.1 MB, free: 7.238 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001842/0.01369, allocations: 176 kB / 405.2 MB, free: 7.066 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008993/0.01459, allocations: 0.7176 MB / 406 MB, free: 6.348 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005106/0.0151, allocations: 0.9893 MB / 407 MB, free: 5.355 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003913/0.01549, allocations: 0.6033 MB / 407.6 MB, free: 4.75 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0029/0.01839, allocations: 4.057 MB / 411.6 MB, free: 0.6797 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.01839, allocations: 0 / 411.6 MB, free: 0.6797 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.01839, allocations: 0 / 411.6 MB, free: 0.6797 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.249e-05/0.01842, allocations: 0 / 411.6 MB, free: 0.6797 MB / 330.7 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.145/0.1634, allocations: 2.535 MB / 414.2 MB, free: 29.54 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.213e-05/0.1635, allocations: 10.06 kB / 414.2 MB, free: 29.54 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006477/0.1641, allocations: 435.2 kB / 414.6 MB, free: 29.35 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004693/0.1688, allocations: 1.741 MB / 416.3 MB, free: 29.09 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001369/0.1702, allocations: 1.043 MB / 417.4 MB, free: 28.55 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.264e-05/0.1703, allocations: 97.77 kB / 417.5 MB, free: 28.54 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002115/0.1705, allocations: 135.6 kB / 417.6 MB, free: 28.51 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005794/0.1763, allocations: 6.472 MB / 424.1 MB, free: 25.81 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.603e-05/0.1763, allocations: 14.34 kB / 424.1 MB, free: 25.8 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001579/0.1765, allocations: 67.67 kB / 424.1 MB, free: 25.77 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001596/0.1781, allocations: 1.625 MB / 425.8 MB, free: 25.43 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006113/0.1842, allocations: 5.973 MB / 431.7 MB, free: 21.96 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01108/0.1952, allocations: 17 MB / 448.7 MB, free: 4.641 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001302/0.1965, allocations: 1.064 MB / 449.8 MB, free: 3.57 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004025/0.1969, allocations: 495.2 kB / 450.3 MB, free: 3.082 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001659/0.1986, allocations: 1.601 MB / 451.9 MB, free: 1.461 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.69e-05/0.1986, allocations: 39.06 kB / 451.9 MB, free: 1.41 MB / 330.7 MB Notification: Performance of pre-optimization done (n=80): time 2.195e-06/0.1986, allocations: 0 / 451.9 MB, free: 1.41 MB / 330.7 MB Notification: Performance of matching and sorting (n=80): time 0.001708/0.2003, allocations: 1.505 MB / 453.4 MB, free: 15.91 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.364e-05/0.2004, allocations: 59.91 kB / 453.5 MB, free: 15.84 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001838/0.2022, allocations: 2.108 MB / 455.6 MB, free: 13.72 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.397e-05/0.2022, allocations: 33.7 kB / 455.6 MB, free: 13.68 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007544/0.203, allocations: 1.71 MB / 457.3 MB, free: 11.95 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001809/0.2032, allocations: 329.4 kB / 457.7 MB, free: 11.63 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004772/0.2037, allocations: 0.5574 MB / 458.2 MB, free: 11.07 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001091/0.2038, allocations: 365.9 kB / 458.6 MB, free: 10.7 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009498/0.2047, allocations: 0.9116 MB / 459.5 MB, free: 9.789 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0016/0.2063, allocations: 2.57 MB / 462.1 MB, free: 6.391 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002639/0.209, allocations: 3.697 MB / 465.8 MB, free: 1.879 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.162e-05/0.209, allocations: 20 kB / 465.8 MB, free: 1.859 MB / 346.7 MB Notification: Performance of matching and sorting (n=360) (initialization): time 0.003367/0.2123, allocations: 3.427 MB / 469.2 MB, free: 14.43 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.191e-05/0.2124, allocations: 32.22 kB / 469.2 MB, free: 14.4 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.262e-05/0.2124, allocations: 60 kB / 469.3 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.461e-05/0.2125, allocations: 79.98 kB / 469.4 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009606/0.2134, allocations: 0.6124 MB / 470 MB, free: 13.65 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.566e-05/0.2135, allocations: 111.6 kB / 470.1 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009775/0.2145, allocations: 424.9 kB / 470.5 MB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001457/0.2146, allocations: 179.9 kB / 470.7 MB, free: 12.95 MB / 362.7 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.001101/0.2157, allocations: 1.312 MB / 472 MB, free: 11.63 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001294/0.2158, allocations: 162.9 kB / 472.2 MB, free: 11.47 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001059/0.2169, allocations: 1.044 MB / 473.2 MB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.49e-05/0.2169, allocations: 27.91 kB / 473.2 MB, free: 10.39 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.2169, allocations: 0 / 473.2 MB, free: 10.39 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.217, allocations: 4.984 kB / 473.2 MB, free: 10.39 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003423/0.2204, allocations: 3.404 MB / 476.6 MB, free: 6.914 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.2204, allocations: 4 kB / 476.6 MB, free: 6.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002631/0.2206, allocations: 103.9 kB / 476.7 MB, free: 6.809 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.649e-06/0.2207, allocations: 3.938 kB / 476.7 MB, free: 6.805 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.255e-05/0.2207, allocations: 23.97 kB / 476.8 MB, free: 6.781 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/0.2207, allocations: 4.125 kB / 476.8 MB, free: 6.777 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.2207, allocations: 4 kB / 476.8 MB, free: 6.773 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001467/0.2222, allocations: 1.717 MB / 478.5 MB, free: 5.027 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001713/0.2223, allocations: 182.7 kB / 478.7 MB, free: 4.848 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.269e-05/0.2224, allocations: 8 kB / 478.7 MB, free: 4.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002548/0.2227, allocations: 35.95 kB / 478.7 MB, free: 4.805 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.785e-05/0.2227, allocations: 36.44 kB / 478.8 MB, free: 4.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.302e-05/0.2228, allocations: 27.98 kB / 478.8 MB, free: 4.742 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001121/0.2239, allocations: 1.31 MB / 480.1 MB, free: 3.438 MB / 362.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2239, allocations: 4 kB / 480.1 MB, free: 3.434 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001232/0.2251, allocations: 0.6308 MB / 480.7 MB, free: 2.801 MB / 362.7 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.001752/0.2269, allocations: 2.339 MB / 483.1 MB, free: 432 kB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001742/0.2286, allocations: 1.926 MB / 485 MB, free: 14.5 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.2286, allocations: 0 / 485 MB, free: 14.5 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003835/0.229, allocations: 430.8 kB / 485.4 MB, free: 14.08 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007744/0.2298, allocations: 294.2 kB / 485.7 MB, free: 13.8 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01656/0.2463, allocations: 19.79 MB / 0.4936 GB, free: 7.863 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001307/0.2476, allocations: 1.589 MB / 0.4952 GB, free: 6.242 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001137/0.2488, allocations: 0.8889 MB / 0.4961 GB, free: 5.348 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007912/0.2496, allocations: 0.9338 MB / 0.497 GB, free: 4.414 MB / 394.7 MB Notification: Performance of SimCode: time 7.61e-07/0.2496, allocations: 0 / 0.497 GB, free: 4.414 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04182/0.2914, allocations: 34.19 MB / 0.5304 GB, free: 2.582 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.756/8.048, allocations: 11.84 kB / 0.5304 GB, free: 2.57 MB / 426.7 MB " [Timeout remaining time 652] (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 & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.FreeBody_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 PlanarMechanics_PlanarMechanics_Examples_FreeBody.fmu > PlanarMechanics_PlanarMechanics.Examples.FreeBody.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.884836280718446] Failed to read output from testmodel.py, exit status != 0: 8.145652245730162 8.153155913 8.133140224 Calling exit ...