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.0008467/0.0008467, allocations: 80.44 kB / 19.17 MB, free: 0.7461 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.0009508/0.0009508, allocations: 165.9 kB / 22.45 MB, free: 2.109 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.9094/0.9094, allocations: 177.1 MB / 202.8 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.02846/0.02846, allocations: 7.118 MB / 266.3 MB, free: 6.316 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 2.074e-06/2.074e-06, allocations: 0 / 392.4 MB, free: 3.992 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.409e-05/2.616e-05, allocations: 2.281 kB / 392.4 MB, free: 3.988 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.FreeBody): time 0.004927/0.004954, allocations: 5.21 MB / 397.6 MB, free: 14.75 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.00335/0.008304, allocations: 1.981 MB / 399.6 MB, free: 12.76 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007476/0.009051, allocations: 23.94 kB / 399.6 MB, free: 12.73 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000644/0.009695, allocations: 278.2 kB / 399.9 MB, free: 12.46 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002162/0.01186, allocations: 1.163 MB / 401 MB, free: 11.29 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001427/0.012, allocations: 39.83 kB / 401.1 MB, free: 11.25 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002053/0.01405, allocations: 1.917 MB / 403 MB, free: 9.34 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00027/0.01432, allocations: 58.92 kB / 403 MB, free: 9.273 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001448/0.01577, allocations: 0.9898 MB / 404 MB, free: 8.281 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001278/0.01705, allocations: 1.044 MB / 405.1 MB, free: 7.234 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004024/0.01745, allocations: 176 kB / 405.2 MB, free: 7.062 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009917/0.01844, allocations: 0.7176 MB / 406 MB, free: 6.344 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007174/0.01916, allocations: 0.9893 MB / 407 MB, free: 5.352 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000908/0.02007, allocations: 0.6033 MB / 407.6 MB, free: 4.746 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003877/0.02394, allocations: 4.057 MB / 411.6 MB, free: 0.6758 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.02395, allocations: 0 / 411.6 MB, free: 0.6758 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.02395, allocations: 0 / 411.6 MB, free: 0.6758 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001533/0.02411, allocations: 0 / 411.6 MB, free: 0.6758 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.1787/0.2028, allocations: 2.535 MB / 414.2 MB, free: 29.54 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.486e-05/0.2029, allocations: 10.81 kB / 414.2 MB, free: 29.54 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006835/0.2036, allocations: 434 kB / 414.6 MB, free: 29.35 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004176/0.2078, allocations: 1.742 MB / 416.3 MB, free: 29.09 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001905/0.2097, allocations: 1.039 MB / 417.4 MB, free: 28.55 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.067e-05/0.2097, allocations: 107 kB / 417.5 MB, free: 28.53 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003124/0.2101, allocations: 131 kB / 417.6 MB, free: 28.51 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008282/0.2183, allocations: 6.468 MB / 424.1 MB, free: 25.81 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.782e-05/0.2184, allocations: 13.44 kB / 424.1 MB, free: 25.8 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000291/0.2187, allocations: 67.03 kB / 424.1 MB, free: 25.77 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002839/0.2215, allocations: 1.625 MB / 425.8 MB, free: 25.43 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009727/0.2313, allocations: 5.977 MB / 431.7 MB, free: 21.95 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01873/0.25, allocations: 17 MB / 448.7 MB, free: 4.633 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001435/0.2514, allocations: 1.066 MB / 449.8 MB, free: 3.562 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003928/0.2518, allocations: 0.4914 MB / 450.3 MB, free: 3.066 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001839/0.2537, allocations: 1.597 MB / 451.9 MB, free: 1.449 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.582e-05/0.2537, allocations: 35.06 kB / 451.9 MB, free: 1.402 MB / 330.7 MB Notification: Performance of pre-optimization done (n=80): time 4.088e-06/0.2537, allocations: 0 / 451.9 MB, free: 1.402 MB / 330.7 MB Notification: Performance of matching and sorting (n=80): time 0.001719/0.2554, allocations: 1.509 MB / 453.4 MB, free: 15.89 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.54e-05/0.2554, allocations: 55.91 kB / 453.5 MB, free: 15.83 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002093/0.2575, allocations: 2.12 MB / 455.6 MB, free: 13.7 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.822e-05/0.2576, allocations: 34.27 kB / 455.7 MB, free: 13.66 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000835/0.2584, allocations: 1.701 MB / 457.4 MB, free: 11.94 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002147/0.2586, allocations: 336.3 kB / 457.7 MB, free: 11.61 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005295/0.2592, allocations: 0.5562 MB / 458.2 MB, free: 11.05 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.2593, allocations: 361.9 kB / 458.6 MB, free: 10.69 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00101/0.2603, allocations: 0.9149 MB / 459.5 MB, free: 9.773 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001638/0.2619, allocations: 2.567 MB / 462.1 MB, free: 6.379 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003018/0.2649, allocations: 3.698 MB / 465.8 MB, free: 1.867 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.839e-05/0.265, allocations: 19.94 kB / 465.8 MB, free: 1.848 MB / 346.7 MB Notification: Performance of matching and sorting (n=360) (initialization): time 0.004387/0.2694, allocations: 3.424 MB / 469.2 MB, free: 14.43 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.757e-05/0.2694, allocations: 32.19 kB / 469.2 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-05/0.2695, allocations: 64 kB / 469.3 MB, free: 14.33 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.465e-05/0.2695, allocations: 76 kB / 469.4 MB, free: 14.26 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001018/0.2706, allocations: 0.6085 MB / 470 MB, free: 13.65 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.24e-05/0.2706, allocations: 119.6 kB / 470.1 MB, free: 13.53 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00138/0.272, allocations: 416.9 kB / 470.5 MB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001712/0.2722, allocations: 183.8 kB / 470.7 MB, free: 12.94 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.001499/0.2737, allocations: 1.316 MB / 472 MB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001727/0.2738, allocations: 162.9 kB / 472.2 MB, free: 11.45 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001135/0.275, allocations: 1.041 MB / 473.2 MB, free: 10.4 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.505e-05/0.275, allocations: 23.97 kB / 473.2 MB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.275, allocations: 0 / 473.2 MB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.275, allocations: 0 / 473.2 MB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004281/0.2793, allocations: 3.408 MB / 476.6 MB, free: 6.902 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.2793, allocations: 0 / 476.6 MB, free: 6.902 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002869/0.2796, allocations: 107.9 kB / 476.7 MB, free: 6.797 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.235e-06/0.2796, allocations: 7.938 kB / 476.8 MB, free: 6.789 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.481e-05/0.2797, allocations: 19.98 kB / 476.8 MB, free: 6.77 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.568e-06/0.2797, allocations: 128 / 476.8 MB, free: 6.77 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/0.2797, allocations: 8 kB / 476.8 MB, free: 6.762 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001651/0.2813, allocations: 1.717 MB / 478.5 MB, free: 5.016 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003028/0.2816, allocations: 182.8 kB / 478.7 MB, free: 4.836 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001096/0.2817, allocations: 15.94 kB / 478.7 MB, free: 4.82 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002755/0.282, allocations: 31.95 kB / 478.7 MB, free: 4.789 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.695e-05/0.2821, allocations: 36.38 kB / 478.8 MB, free: 4.758 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.863e-05/0.2821, allocations: 24 kB / 478.8 MB, free: 4.734 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001431/0.2835, allocations: 1.317 MB / 480.1 MB, free: 3.422 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.2835, allocations: 0 / 480.1 MB, free: 3.422 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001977/0.2855, allocations: 0.6308 MB / 480.7 MB, free: 2.789 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.002016/0.2875, allocations: 2.337 MB / 483.1 MB, free: 424 kB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002464/0.29, allocations: 1.923 MB / 485 MB, free: 14.5 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.29, allocations: 0 / 485 MB, free: 14.5 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003994/0.2904, allocations: 438.8 kB / 485.4 MB, free: 14.07 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001101/0.2915, allocations: 285.8 kB / 485.7 MB, free: 13.79 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02192/0.3134, 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.001586/0.315, allocations: 1.592 MB / 0.4952 GB, free: 6.238 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001308/0.3163, allocations: 0.8889 MB / 0.4961 GB, free: 5.344 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001156/0.3175, allocations: 0.9299 MB / 0.497 GB, free: 4.414 MB / 394.7 MB Notification: Performance of SimCode: time 1.343e-06/0.3175, allocations: 0 / 0.497 GB, free: 4.414 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05155/0.369, allocations: 34.19 MB / 0.5304 GB, free: 2.582 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.631/8, allocations: 15.91 kB / 0.5304 GB, free: 2.566 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 & /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: 9.77527135424316] Failed to read output from testmodel.py, exit status != 0: 8.100654108449817 8.108646487 8.082464446 Calling exit ...