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.001343/0.001343, 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.00336/0.00336, allocations: 217 kB / 23.04 MB, free: 5.074 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.554/1.554, allocations: 230.6 MB / 256.8 MB, free: 7.98 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.07651/0.07651, allocations: 9.248 MB / 322.5 MB, free: 10.02 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.002036/0.002036, allocations: 59.91 kB / 448.5 MB, free: 15.02 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1396/0.1416, allocations: 55.46 MB / 0.4922 GB, free: 7.477 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.FreeBody): time 0.009272/0.1509, allocations: 5.895 MB / 0.4979 GB, free: 1.555 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005092/0.156, allocations: 2.114 MB / 0.5 GB, free: 15.43 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005641/0.1566, allocations: 23.94 kB / 0.5 GB, free: 15.41 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006758/0.1572, allocations: 274.4 kB / 0.5003 GB, free: 15.14 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002465/0.1597, allocations: 1.133 MB / 0.5014 GB, free: 14 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001433/0.1599, allocations: 39.89 kB / 0.5014 GB, free: 13.96 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002568/0.1624, allocations: 1.868 MB / 0.5032 GB, free: 12.09 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002241/0.1626, allocations: 62.94 kB / 0.5033 GB, free: 12.01 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009065/0.1635, allocations: 0.6498 MB / 0.5039 GB, free: 11.36 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001625/0.1652, allocations: 1.098 MB / 0.505 GB, free: 10.26 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003094/0.1655, allocations: 176 kB / 0.5052 GB, free: 10.09 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001376/0.1669, allocations: 0.7762 MB / 0.5059 GB, free: 9.309 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009134/0.1678, allocations: 0.9619 MB / 0.5069 GB, free: 8.344 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001128/0.1689, allocations: 1.18 MB / 0.508 GB, free: 7.156 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005045/0.1739, allocations: 4.054 MB / 0.512 GB, free: 3.086 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.174, allocations: 0 / 0.512 GB, free: 3.086 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.174, allocations: 0 / 0.512 GB, free: 3.086 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.3e-05/0.174, allocations: 4 kB / 0.512 GB, free: 3.082 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.00578/0.1798, allocations: 2.561 MB / 0.5145 GB, free: 488 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.1799, allocations: 8.031 kB / 0.5145 GB, free: 480 kB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001275/0.18, allocations: 58.72 kB / 0.5146 GB, free: 420 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.2284/0.4084, allocations: 423.9 kB / 0.515 GB, free: 24.33 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006438/0.4148, allocations: 1.689 MB / 0.5166 GB, free: 24.19 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002153/0.417, allocations: 1.031 MB / 0.5176 GB, free: 24.04 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.581e-05/0.4171, allocations: 103.4 kB / 0.5177 GB, free: 24.03 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003145/0.4174, allocations: 134.8 kB / 0.5178 GB, free: 24.03 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008526/0.4259, allocations: 6.502 MB / 0.5242 GB, free: 22.66 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.431e-05/0.4259, allocations: 9.938 kB / 0.5242 GB, free: 22.66 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002142/0.4262, allocations: 62.95 kB / 0.5243 GB, free: 22.64 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002815/0.429, allocations: 1.623 MB / 0.5258 GB, free: 22.32 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01242/0.4414, allocations: 6.043 MB / 0.5318 GB, free: 20.21 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0247/0.4661, allocations: 18.15 MB / 0.5495 GB, free: 7.301 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002138/0.4682, allocations: 1.04 MB / 0.5505 GB, free: 6.699 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005805/0.4688, allocations: 0.4993 MB / 0.551 GB, free: 6.195 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002784/0.4716, allocations: 1.756 MB / 0.5527 GB, free: 4.453 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.803e-05/0.4716, allocations: 39 kB / 0.5527 GB, free: 4.406 MB / 382.1 MB Notification: Performance of pre-optimization done (n=80): time 2.345e-06/0.4716, allocations: 0 / 0.5527 GB, free: 4.406 MB / 382.1 MB Notification: Performance of matching and sorting (n=80): time 0.002455/0.4741, allocations: 1.499 MB / 0.5542 GB, free: 2.906 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.475e-05/0.4741, allocations: 63.77 kB / 0.5543 GB, free: 2.828 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001934/0.476, allocations: 2.008 MB / 0.5562 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.193e-05/0.4761, allocations: 37.7 kB / 0.5563 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009719/0.477, allocations: 1.714 MB / 0.5579 GB, free: 15.04 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002916/0.4773, allocations: 337.4 kB / 0.5583 GB, free: 14.71 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000766/0.4781, allocations: 0.5679 MB / 0.5588 GB, free: 14.13 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002126/0.4783, allocations: 369.9 kB / 0.5592 GB, free: 13.77 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001501/0.4798, allocations: 0.9188 MB / 0.5601 GB, free: 12.84 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002895/0.4827, allocations: 2.567 MB / 0.5626 GB, free: 9.449 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004751/0.4875, allocations: 3.741 MB / 0.5662 GB, free: 4.898 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.913e-05/0.4875, allocations: 16 kB / 0.5662 GB, free: 4.883 MB / 398.1 MB Notification: Performance of matching and sorting (n=360) (initialization): time 0.006101/0.4936, allocations: 3.428 MB / 0.5696 GB, free: 1.449 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.993e-05/0.4936, allocations: 32 kB / 0.5696 GB, free: 1.418 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.382e-05/0.4937, allocations: 57.62 kB / 0.5697 GB, free: 1.363 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.167e-05/0.4938, allocations: 80 kB / 0.5697 GB, free: 1.285 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001803/0.4956, allocations: 0.6082 MB / 0.5703 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001008/0.4957, allocations: 116 kB / 0.5704 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002003/0.4977, allocations: 431.2 kB / 0.5709 GB, free: 144 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002498/0.498, allocations: 183.9 kB / 0.571 GB, free: 15.96 MB / 414.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.002034/0.5, allocations: 1.306 MB / 0.5723 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003283/0.5003, allocations: 158.9 kB / 0.5725 GB, free: 14.49 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002021/0.5024, allocations: 1.059 MB / 0.5735 GB, free: 13.41 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001171/0.5025, allocations: 19.44 kB / 0.5735 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.051e-05/0.5025, allocations: 7.938 kB / 0.5735 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.019e-05/0.5025, allocations: 3.984 kB / 0.5735 GB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006705/0.5092, allocations: 3.56 MB / 0.577 GB, free: 9.762 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.955e-06/0.5092, allocations: 0 / 0.577 GB, free: 9.762 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000537/0.5097, allocations: 103.9 kB / 0.5771 GB, free: 9.66 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.527e-06/0.5098, allocations: 4 kB / 0.5771 GB, free: 9.656 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.092e-05/0.5098, allocations: 16.55 kB / 0.5771 GB, free: 9.641 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.185e-06/0.5098, allocations: 7.938 kB / 0.5771 GB, free: 9.633 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.5098, allocations: 0 / 0.5771 GB, free: 9.633 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002849/0.5127, allocations: 1.748 MB / 0.5788 GB, free: 7.855 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004476/0.5131, allocations: 174.8 kB / 0.579 GB, free: 7.684 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001845/0.5133, allocations: 15.98 kB / 0.579 GB, free: 7.668 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005239/0.5138, allocations: 31.97 kB / 0.579 GB, free: 7.637 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.264e-05/0.5139, allocations: 37.34 kB / 0.5791 GB, free: 7.602 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.131e-05/0.514, allocations: 31.92 kB / 0.5791 GB, free: 7.57 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002284/0.5163, allocations: 1.313 MB / 0.5804 GB, free: 6.262 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5163, allocations: 0 / 0.5804 GB, free: 6.262 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002316/0.5186, allocations: 0.6308 MB / 0.581 GB, free: 5.629 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.003084/0.5217, allocations: 2.359 MB / 0.5833 GB, free: 3.227 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003759/0.5254, allocations: 1.946 MB / 0.5852 GB, free: 1.293 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.5254, allocations: 0 / 0.5852 GB, free: 1.293 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006768/0.5261, allocations: 443.2 kB / 0.5856 GB, free: 0.8594 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001413/0.5275, allocations: 292 kB / 0.5859 GB, free: 0.5898 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03288/0.5604, allocations: 20.06 MB / 0.6055 GB, free: 10.41 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002569/0.563, allocations: 2.162 MB / 0.6076 GB, free: 8.223 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002106/0.5651, allocations: 0.8822 MB / 0.6085 GB, free: 7.336 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001478/0.5665, allocations: 0.9327 MB / 0.6094 GB, free: 6.402 MB / 446.1 MB Notification: Performance of SimCode: time 1.733e-06/0.5665, allocations: 0 / 0.6094 GB, free: 6.402 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07824/0.6448, allocations: 36.05 MB / 0.6446 GB, free: 2.586 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.03/15.67, allocations: 5.719 kB / 0.6446 GB, free: 2.586 MB / 478.1 MB " [Timeout remaining time 644] (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: 18.71494138101116] Failed to read output from testmodel.py, exit status != 0: 15.85503053094726 15.871100034 15.693812282 Calling exit ...