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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001321/0.001321, allocations: 105.8 kB / 16.45 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00158/0.00158, allocations: 187.7 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.375/1.375, allocations: 225.6 MB / 247.8 MB, free: 3.727 MB / 190.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.06915/0.06915, allocations: 9.228 MB / 311.9 MB, free: 1.906 MB / 238.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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.00191/0.00191, allocations: 59.89 kB / 434 MB, free: 11.32 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2604/0.2623, allocations: 54.25 MB / 488.3 MB, free: 25.24 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.FreeBody): time 0.005729/0.2681, allocations: 5.874 MB / 494.2 MB, free: 21.09 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003527/0.2716, allocations: 2.038 MB / 496.2 MB, free: 19.73 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004919/0.2721, allocations: 20.62 kB / 496.2 MB, free: 19.73 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006358/0.2727, allocations: 282.8 kB / 496.5 MB, free: 19.62 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002029/0.2747, allocations: 1.129 MB / 497.6 MB, free: 19.11 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001178/0.2749, allocations: 33.02 kB / 497.6 MB, free: 19.09 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001655/0.2765, allocations: 1.884 MB / 499.5 MB, free: 18.2 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001747/0.2767, allocations: 71.47 kB / 499.6 MB, free: 18.16 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005982/0.2773, allocations: 0.6478 MB / 0.4885 GB, free: 17.78 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001079/0.2784, allocations: 1.096 MB / 0.4896 GB, free: 17.11 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002864/0.2786, allocations: 181.2 kB / 0.4898 GB, free: 17.11 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00115/0.2798, allocations: 0.771 MB / 0.4905 GB, free: 16.77 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006596/0.2805, allocations: 0.9696 MB / 0.4915 GB, free: 16.21 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007529/0.2812, allocations: 1.19 MB / 0.4926 GB, free: 15.26 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003284/0.2845, allocations: 4.073 MB / 0.4966 GB, free: 12.46 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.2845, allocations: 1.188 kB / 0.4966 GB, free: 12.46 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.2845, allocations: 3.938 kB / 0.4966 GB, free: 12.45 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.043e-05/0.2845, allocations: 4 kB / 0.4966 GB, free: 12.45 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.004272/0.2888, allocations: 2.639 MB / 0.4992 GB, free: 10.46 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.2889, allocations: 9.969 kB / 0.4992 GB, free: 10.46 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004203/0.2893, allocations: 438.3 kB / 0.4996 GB, free: 10.16 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005634/0.2949, allocations: 1.689 MB / 0.5013 GB, free: 9.254 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00263/0.2975, allocations: 1.086 MB / 0.5023 GB, free: 8.449 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.594e-05/0.2976, allocations: 99.02 kB / 0.5024 GB, free: 8.402 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003258/0.298, allocations: 129.4 kB / 0.5026 GB, free: 8.355 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007627/0.3056, allocations: 6.511 MB / 0.5089 GB, free: 2.828 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.613e-05/0.3056, allocations: 15.88 kB / 0.5089 GB, free: 2.812 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001896/0.3058, allocations: 63.89 kB / 0.509 GB, free: 2.75 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002011/0.3078, allocations: 1.621 MB / 0.5106 GB, free: 1.125 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01083/0.3187, allocations: 6.04 MB / 0.5165 GB, free: 11.07 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03267/0.3513, allocations: 18.18 MB / 0.5342 GB, free: 8.559 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003058/0.3544, allocations: 1.504 MB / 0.5357 GB, free: 6.926 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009193/0.3553, allocations: 0.4913 MB / 0.5362 GB, free: 6.434 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004833/0.3602, allocations: 2.156 MB / 0.5383 GB, free: 4.152 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.375e-05/0.3602, allocations: 42.94 kB / 0.5383 GB, free: 4.102 MB / 398.1 MB Notification: Performance of pre-optimization done (n=80): time 5.931e-06/0.3602, allocations: 4 kB / 0.5383 GB, free: 4.098 MB / 398.1 MB Notification: Performance of matching and sorting (n=80): time 0.003272/0.3635, allocations: 1.491 MB / 0.5398 GB, free: 2.605 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.15e-05/0.3635, allocations: 59.78 kB / 0.5398 GB, free: 2.535 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00357/0.3671, allocations: 2.012 MB / 0.5418 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.469e-05/0.3672, allocations: 45.62 kB / 0.5418 GB, free: 476 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001492/0.3686, allocations: 1.705 MB / 0.5435 GB, free: 14.74 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004018/0.3691, allocations: 345.4 kB / 0.5438 GB, free: 14.4 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009157/0.37, allocations: 0.5679 MB / 0.5444 GB, free: 13.82 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001975/0.3702, allocations: 365.9 kB / 0.5447 GB, free: 13.46 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002111/0.3723, allocations: 0.9188 MB / 0.5456 GB, free: 12.54 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004329/0.3766, allocations: 2.577 MB / 0.5481 GB, free: 9.133 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006424/0.383, allocations: 3.729 MB / 0.5518 GB, free: 4.59 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.881e-05/0.3831, allocations: 20 kB / 0.5518 GB, free: 4.57 MB / 414.1 MB Notification: Performance of matching and sorting (n=360) (initialization): time 0.008491/0.3916, allocations: 3.421 MB / 0.5551 GB, free: 1.148 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.987e-05/0.3916, allocations: 35.98 kB / 0.5552 GB, free: 1.113 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.459e-05/0.3917, allocations: 56 kB / 0.5552 GB, free: 1.059 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001256/0.3919, allocations: 80.81 kB / 0.5553 GB, free: 0.9805 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002712/0.3946, allocations: 0.6198 MB / 0.5559 GB, free: 368 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001274/0.3947, allocations: 111.6 kB / 0.556 GB, free: 256 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002967/0.3977, allocations: 421.1 kB / 0.5564 GB, free: 15.83 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003607/0.398, allocations: 172 kB / 0.5566 GB, free: 15.66 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.002777/0.4008, allocations: 1.309 MB / 0.5579 GB, free: 14.34 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003602/0.4012, allocations: 162.9 kB / 0.558 GB, free: 14.18 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00267/0.4038, allocations: 1.067 MB / 0.5591 GB, free: 13.1 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001186/0.404, allocations: 19.73 kB / 0.5591 GB, free: 13.08 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.06e-05/0.404, allocations: 4 kB / 0.5591 GB, free: 13.08 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.324e-05/0.404, allocations: 3.984 kB / 0.5591 GB, free: 13.07 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009477/0.4135, allocations: 3.588 MB / 0.5626 GB, free: 9.414 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.036e-05/0.4135, allocations: 4 kB / 0.5626 GB, free: 9.41 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007168/0.4142, allocations: 103.8 kB / 0.5627 GB, free: 9.309 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.182e-05/0.4142, allocations: 0 / 0.5627 GB, free: 9.309 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.27e-05/0.4143, allocations: 19.98 kB / 0.5627 GB, free: 9.289 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.037e-06/0.4143, allocations: 4.156 kB / 0.5627 GB, free: 9.285 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.4143, allocations: 0 / 0.5627 GB, free: 9.285 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003552/0.4178, allocations: 1.745 MB / 0.5644 GB, free: 7.508 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007513/0.4186, allocations: 259.9 kB / 0.5647 GB, free: 7.234 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004194/0.419, allocations: 20 kB / 0.5647 GB, free: 7.215 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008988/0.4199, allocations: 23.97 kB / 0.5647 GB, free: 7.191 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001064/0.42, allocations: 36.39 kB / 0.5648 GB, free: 7.156 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.984e-05/0.4201, allocations: 28.22 kB / 0.5648 GB, free: 7.129 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002841/0.4229, allocations: 1.317 MB / 0.5661 GB, free: 5.816 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4229, allocations: 0 / 0.5661 GB, free: 5.816 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002576/0.4255, allocations: 0.6386 MB / 0.5667 GB, free: 5.176 MB / 430.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.00326/0.4288, allocations: 2.367 MB / 0.569 GB, free: 2.773 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003572/0.4323, allocations: 1.952 MB / 0.5709 GB, free: 0.8281 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.4323, allocations: 4.062 kB / 0.5709 GB, free: 0.8242 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006541/0.433, allocations: 434.5 kB / 0.5713 GB, free: 408 kB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001467/0.4345, allocations: 292 kB / 0.5716 GB, free: 120 kB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03124/0.4657, allocations: 20.06 MB / 0.5912 GB, free: 9.91 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002864/0.4686, allocations: 2.16 MB / 0.5933 GB, free: 7.719 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002021/0.4706, allocations: 0.8851 MB / 0.5942 GB, free: 6.828 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001381/0.472, allocations: 0.9327 MB / 0.5951 GB, free: 5.895 MB / 462.1 MB Notification: Performance of SimCode: time 7.31e-07/0.472, allocations: 0 / 0.5951 GB, free: 5.895 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2596/0.7316, allocations: 33.64 MB / 0.6279 GB, free: 119.8 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.1/11.83, allocations: 4.062 kB / 0.6279 GB, free: 119.8 MB / 478.1 MB " [Timeout remaining time 648] (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: 14.245311773382127] Failed to read output from testmodel.py, exit status != 0: 11.914615055080503 11.924434438 11.637707735 Calling exit ...