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.001468/0.001468, allocations: 117.1 kB / 17.16 MB, free: 5.895 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.001634/0.001634, allocations: 215 kB / 20.13 MB, free: 2.949 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.533/1.533, allocations: 230.6 MB / 253.5 MB, free: 15.09 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.1005/0.1005, allocations: 9.23 MB / 318.8 MB, free: 15.54 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.FreeBody,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_FreeBody",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.002094/0.002094, allocations: 80.14 kB / 443.2 MB, free: 39.53 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1095, allocations: 55.43 MB / 498.7 MB, free: 6.738 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.FreeBody): time 0.005349/0.1149, allocations: 5.867 MB / 0.4927 GB, free: 0.8398 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003917/0.1188, allocations: 2.095 MB / 0.4948 GB, free: 14.73 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008814/0.1197, allocations: 31.94 kB / 0.4948 GB, free: 14.7 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008634/0.1205, allocations: 270.4 kB / 0.495 GB, free: 14.44 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00284/0.1234, allocations: 1.129 MB / 0.4961 GB, free: 13.3 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002098/0.1236, allocations: 39.89 kB / 0.4962 GB, free: 13.27 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00252/0.1261, allocations: 1.878 MB / 0.498 GB, free: 11.39 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000265/0.1264, allocations: 74.81 kB / 0.4981 GB, free: 11.3 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001263/0.1276, allocations: 0.6498 MB / 0.4987 GB, free: 10.65 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001951/0.1296, allocations: 1.098 MB / 0.4998 GB, free: 9.547 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005897/0.1302, allocations: 176 kB / 0.5 GB, free: 9.375 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001683/0.1319, allocations: 0.7723 MB / 0.5007 GB, free: 8.602 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001166/0.133, allocations: 0.958 MB / 0.5017 GB, free: 7.641 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001381/0.1344, allocations: 1.184 MB / 0.5028 GB, free: 6.449 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004954/0.1394, allocations: 4.054 MB / 0.5068 GB, free: 2.379 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.1394, allocations: 4 kB / 0.5068 GB, free: 2.375 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.1394, allocations: 0 / 0.5068 GB, free: 2.375 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.417e-05/0.1394, allocations: 0 / 0.5068 GB, free: 2.375 MB / 366.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.005573/0.145, allocations: 2.633 MB / 0.5093 GB, free: 15.68 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.022e-05/0.1451, allocations: 8.031 kB / 0.5094 GB, free: 15.67 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 7.958e-05/0.1452, allocations: 58.72 kB / 0.5094 GB, free: 15.61 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005442/0.1457, allocations: 429.1 kB / 0.5098 GB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006896/0.1526, allocations: 1.688 MB / 0.5115 GB, free: 13.49 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00218/0.1548, allocations: 1.089 MB / 0.5125 GB, free: 12.36 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001071/0.1549, allocations: 98.8 kB / 0.5126 GB, free: 12.26 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003533/0.1552, allocations: 132.2 kB / 0.5127 GB, free: 12.13 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01006/0.1653, allocations: 6.5 MB / 0.5191 GB, free: 5.391 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.684e-05/0.1653, allocations: 11.94 kB / 0.5191 GB, free: 5.379 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002294/0.1656, allocations: 63.88 kB / 0.5192 GB, free: 5.316 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003047/0.1686, allocations: 1.621 MB / 0.5208 GB, free: 3.691 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01189/0.1805, allocations: 6.055 MB / 0.5267 GB, free: 13.62 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03181/0.2123, allocations: 18.19 MB / 0.5444 GB, free: 11.1 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00348/0.2158, allocations: 1.5 MB / 0.5459 GB, free: 9.473 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00102/0.2168, allocations: 0.5069 MB / 0.5464 GB, free: 8.965 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00528/0.2221, allocations: 2.132 MB / 0.5485 GB, free: 6.703 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.824e-05/0.2221, allocations: 42.94 kB / 0.5485 GB, free: 6.652 MB / 414.1 MB Notification: Performance of pre-optimization done (n=80): time 3.116e-06/0.2221, allocations: 0 / 0.5485 GB, free: 6.652 MB / 414.1 MB Notification: Performance of matching and sorting (n=80): time 0.003726/0.2259, allocations: 1.502 MB / 0.55 GB, free: 5.145 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.521e-05/0.2259, allocations: 59.84 kB / 0.55 GB, free: 5.074 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004036/0.2299, allocations: 2.012 MB / 0.552 GB, free: 3.055 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.568e-05/0.23, allocations: 37.7 kB / 0.552 GB, free: 3.012 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001583/0.2316, allocations: 1.72 MB / 0.5537 GB, free: 1.273 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004585/0.2321, allocations: 333.4 kB / 0.554 GB, free: 0.9453 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009826/0.2331, allocations: 0.5679 MB / 0.5546 GB, free: 380 kB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002145/0.2333, allocations: 361.9 kB / 0.5549 GB, free: 12 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001833/0.2351, allocations: 0.9149 MB / 0.5558 GB, free: 15.09 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003394/0.2385, allocations: 2.573 MB / 0.5583 GB, free: 11.69 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005236/0.2437, allocations: 3.732 MB / 0.562 GB, free: 7.145 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.76e-05/0.2438, allocations: 16 kB / 0.562 GB, free: 7.129 MB / 430.1 MB Notification: Performance of matching and sorting (n=360) (initialization): time 0.006856/0.2506, allocations: 3.441 MB / 0.5654 GB, free: 3.684 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.376e-05/0.2507, allocations: 36.03 kB / 0.5654 GB, free: 3.648 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.958e-05/0.2508, allocations: 56 kB / 0.5654 GB, free: 3.594 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.89e-05/0.2509, allocations: 83.94 kB / 0.5655 GB, free: 3.512 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00197/0.2529, allocations: 0.6082 MB / 0.5661 GB, free: 2.902 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00011/0.253, allocations: 115.8 kB / 0.5662 GB, free: 2.789 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002269/0.2552, allocations: 428.8 kB / 0.5666 GB, free: 2.367 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003108/0.2555, allocations: 172 kB / 0.5668 GB, free: 2.199 MB / 430.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.002185/0.2577, allocations: 1.313 MB / 0.5681 GB, free: 0.875 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003636/0.2581, allocations: 158.9 kB / 0.5682 GB, free: 0.7188 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002195/0.2603, allocations: 1.06 MB / 0.5693 GB, free: 15.64 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001127/0.2604, allocations: 27.92 kB / 0.5693 GB, free: 15.61 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.805e-06/0.2604, allocations: 0 / 0.5693 GB, free: 15.61 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.012e-05/0.2604, allocations: 3.984 kB / 0.5693 GB, free: 15.61 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008225/0.2686, allocations: 3.584 MB / 0.5728 GB, free: 11.95 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.165e-06/0.2686, allocations: 0 / 0.5728 GB, free: 11.95 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005788/0.2692, allocations: 107.8 kB / 0.5729 GB, free: 11.85 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.53e-05/0.2692, allocations: 8.125 kB / 0.5729 GB, free: 11.84 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.13e-05/0.2693, allocations: 15.98 kB / 0.5729 GB, free: 11.82 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.573e-06/0.2693, allocations: 4 kB / 0.5729 GB, free: 11.82 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/0.2693, allocations: 4 kB / 0.5729 GB, free: 11.82 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0032/0.2725, allocations: 1.745 MB / 0.5746 GB, free: 10.04 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006678/0.2732, allocations: 251.9 kB / 0.5749 GB, free: 9.777 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000376/0.2736, allocations: 16 kB / 0.5749 GB, free: 9.762 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008313/0.2744, allocations: 31.95 kB / 0.5749 GB, free: 9.73 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001152/0.2745, allocations: 32.41 kB / 0.575 GB, free: 9.699 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.147e-05/0.2746, allocations: 31.97 kB / 0.575 GB, free: 9.668 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003072/0.2777, allocations: 1.317 MB / 0.5763 GB, free: 8.355 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2777, allocations: 0 / 0.5763 GB, free: 8.355 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003609/0.2813, allocations: 0.627 MB / 0.5769 GB, free: 7.727 MB / 446.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.003494/0.2848, allocations: 2.355 MB / 0.5792 GB, free: 5.332 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004039/0.2888, allocations: 1.935 MB / 0.5811 GB, free: 3.41 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.2888, allocations: 0 / 0.5811 GB, free: 3.41 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007915/0.2896, allocations: 446.4 kB / 0.5815 GB, free: 2.973 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00196/0.2916, allocations: 303.7 kB / 0.5818 GB, free: 2.684 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.286/0.5776, allocations: 20.05 MB / 0.6014 GB, free: 80.11 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001735/0.5793, allocations: 2.167 MB / 0.6035 GB, free: 79.01 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001708/0.581, allocations: 0.8816 MB / 0.6043 GB, free: 78.95 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001019/0.582, allocations: 0.9333 MB / 0.6053 GB, free: 78.18 MB / 446.1 MB Notification: Performance of SimCode: time 1.262e-06/0.582, allocations: 0 / 0.6053 GB, free: 78.18 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07162/0.6537, allocations: 33.67 MB / 0.6381 GB, free: 46.19 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.14/12.79, allocations: 13.08 kB / 0.6381 GB, free: 46.18 MB / 446.1 MB " [Timeout remaining time 647] (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: 15.753817985008936] Failed to read output from testmodel.py, exit status != 0: 12.940461901016533 12.950879812 12.80918564 Calling exit ...