Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.CounterSpin.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.0008146/0.0008146, 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.0008634/0.0008634, 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.8946/0.8946, allocations: 177.1 MB / 202.8 MB, free: 5.738 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.02756/0.02756, allocations: 7.125 MB / 266.3 MB, free: 6.305 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.CounterSpin,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_CounterSpin",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.CounterSpin,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_CounterSpin",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.044e-06/2.044e-06, allocations: 0 / 392.4 MB, free: 3.992 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.158e-05/2.363e-05, allocations: 5.234 kB / 392.4 MB, free: 3.988 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CounterSpin): time 0.007069/0.007093, allocations: 6.078 MB / 398.5 MB, free: 13.88 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.003534/0.01063, allocations: 2.296 MB / 400.8 MB, free: 11.57 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004598/0.01109, allocations: 27.94 kB / 400.8 MB, free: 11.54 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005237/0.01161, allocations: 306 kB / 401.1 MB, free: 11.24 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002273/0.01388, allocations: 1.198 MB / 402.3 MB, free: 10.04 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002503/0.01413, allocations: 83.77 kB / 402.4 MB, free: 9.957 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.00241/0.01654, allocations: 2.063 MB / 404.4 MB, free: 7.891 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002667/0.01681, allocations: 71.36 kB / 404.5 MB, free: 7.812 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001892/0.0187, allocations: 1.095 MB / 405.6 MB, free: 6.715 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001722/0.02042, allocations: 1.099 MB / 406.7 MB, free: 5.613 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003902/0.02081, allocations: 188 kB / 406.9 MB, free: 5.43 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001019/0.02183, allocations: 0.7254 MB / 407.6 MB, free: 4.703 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005759/0.02241, allocations: 1.055 MB / 408.7 MB, free: 3.645 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000533/0.02294, allocations: 0.6462 MB / 409.3 MB, free: 2.996 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1488/0.1717, allocations: 4.329 MB / 413.6 MB, free: 18.42 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.1717, allocations: 1.375 kB / 413.6 MB, free: 18.42 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1717, allocations: 0 / 413.6 MB, free: 18.42 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001058/0.1718, allocations: 1.859 kB / 413.6 MB, free: 18.42 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: 981 * Number of variables: 981 Notification: Performance of Generate backend data structure: time 0.005593/0.1774, allocations: 3.583 MB / 417.2 MB, free: 17.22 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.119e-05/0.1775, allocations: 10.22 kB / 417.2 MB, free: 17.22 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004526/0.1779, allocations: 466.3 kB / 417.7 MB, free: 17.16 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003849/0.1818, allocations: 1.766 MB / 419.4 MB, free: 16.98 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001493/0.1832, allocations: 1.123 MB / 420.6 MB, free: 16.67 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.197e-05/0.1833, allocations: 117.2 kB / 420.7 MB, free: 16.66 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002524/0.1836, allocations: 148.9 kB / 420.8 MB, free: 16.66 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006291/0.1899, allocations: 7.023 MB / 427.9 MB, free: 14.25 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.005e-05/0.1899, allocations: 21.11 kB / 427.9 MB, free: 14.25 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001881/0.1901, allocations: 77.77 kB / 427.9 MB, free: 14.23 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001707/0.1918, allocations: 1.731 MB / 429.7 MB, free: 13.89 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006722/0.1985, allocations: 6.39 MB / 436.1 MB, free: 11.42 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01575/0.2143, allocations: 19.62 MB / 455.7 MB, free: 8.461 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002426/0.2167, allocations: 1.465 MB / 457.2 MB, free: 7.004 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005692/0.2173, allocations: 0.5542 MB / 457.7 MB, free: 6.449 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002405/0.2197, allocations: 2.039 MB / 459.7 MB, free: 4.41 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.613e-05/0.2197, allocations: 39.22 kB / 459.8 MB, free: 4.363 MB / 346.7 MB Notification: Performance of pre-optimization done (n=93): time 3.226e-06/0.2197, allocations: 0 / 459.8 MB, free: 4.363 MB / 346.7 MB Notification: Performance of matching and sorting (n=93): time 0.002385/0.2221, allocations: 1.863 MB / 461.7 MB, free: 2.5 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.315e-05/0.2221, allocations: 67.28 kB / 461.7 MB, free: 2.426 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001847/0.224, allocations: 2.308 MB / 464 MB, free: 120 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.71e-05/0.224, allocations: 37.7 kB / 464.1 MB, free: 76 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007756/0.2248, allocations: 1.881 MB / 465.9 MB, free: 14.2 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001893/0.225, allocations: 379.3 kB / 466.3 MB, free: 13.83 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000521/0.2255, allocations: 0.6382 MB / 467 MB, free: 13.19 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.822e-05/0.2256, allocations: 301.1 kB / 467.2 MB, free: 12.89 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009893/0.2265, allocations: 0.9938 MB / 468.2 MB, free: 11.89 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001787/0.2283, allocations: 2.898 MB / 471.1 MB, free: 8.086 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002886/0.2312, allocations: 4.187 MB / 475.3 MB, free: 3.105 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.938e-05/0.2312, allocations: 20 kB / 475.3 MB, free: 3.086 MB / 362.7 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.003693/0.2349, allocations: 3.816 MB / 479.2 MB, free: 15.28 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.457e-05/0.235, allocations: 33.88 kB / 479.2 MB, free: 15.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.775e-05/0.235, allocations: 68 kB / 479.3 MB, free: 15.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.476e-05/0.2351, allocations: 88 kB / 479.3 MB, free: 15.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001106/0.2362, allocations: 0.7141 MB / 480.1 MB, free: 14.38 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.44e-05/0.2362, allocations: 143.4 kB / 480.2 MB, free: 14.24 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001224/0.2374, allocations: 480 kB / 480.7 MB, free: 13.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001686/0.2376, allocations: 200 kB / 480.9 MB, free: 13.57 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 306 * 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 (387): * Single equations (assignments): 383 * 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.001426/0.239, allocations: 1.392 MB / 482.3 MB, free: 12.17 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001324/0.2392, allocations: 178.8 kB / 482.4 MB, free: 12 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001202/0.2404, allocations: 1.179 MB / 483.6 MB, free: 10.81 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.487e-05/0.2404, allocations: 21.06 kB / 483.6 MB, free: 10.79 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.2404, allocations: 3.938 kB / 483.6 MB, free: 10.79 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.705e-06/0.2404, allocations: 3.984 kB / 483.6 MB, free: 10.78 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003768/0.2442, allocations: 3.746 MB / 487.4 MB, free: 6.973 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/0.2442, allocations: 4 kB / 487.4 MB, free: 6.969 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003154/0.2445, allocations: 131.8 kB / 487.5 MB, free: 6.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.703e-06/0.2445, allocations: 4 kB / 487.5 MB, free: 6.836 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.467e-05/0.2446, allocations: 27.03 kB / 487.5 MB, free: 6.812 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.2e-06/0.2446, allocations: 7.609 kB / 487.6 MB, free: 6.809 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/0.2446, allocations: 12 kB / 487.6 MB, free: 6.797 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001621/0.2462, allocations: 1.936 MB / 489.5 MB, free: 4.816 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001972/0.2464, allocations: 202.6 kB / 489.7 MB, free: 4.617 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001009/0.2465, allocations: 12 kB / 489.7 MB, free: 4.605 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002785/0.2468, allocations: 32.34 kB / 489.7 MB, free: 4.574 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.024e-05/0.2468, allocations: 52.34 kB / 489.8 MB, free: 4.523 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.766e-05/0.2469, allocations: 31.75 kB / 489.8 MB, free: 4.496 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001202/0.2481, allocations: 1.42 MB / 491.2 MB, free: 3.086 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2481, allocations: 3.938 kB / 491.2 MB, free: 3.082 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001521/0.2496, allocations: 0.6971 MB / 491.9 MB, free: 2.383 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 4 (body.v[1],body.w,slipBasedRolling.frame_a.x,slipBasedRolling.phi) * 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 (69): * Single equations (assignments): 65 * 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.001952/0.2515, allocations: 2.577 MB / 494.5 MB, free: 15.76 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001942/0.2535, allocations: 2.147 MB / 496.7 MB, free: 13.62 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.2535, allocations: 4.062 kB / 496.7 MB, free: 13.62 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000422/0.2539, allocations: 498.9 kB / 497.2 MB, free: 13.14 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008168/0.2547, allocations: 307.4 kB / 497.5 MB, free: 12.85 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01908/0.2738, allocations: 21.84 MB / 0.5071 GB, free: 4.492 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001452/0.2753, allocations: 1.714 MB / 0.5088 GB, free: 2.75 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001289/0.2766, allocations: 0.9728 MB / 0.5098 GB, free: 1.773 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008868/0.2774, allocations: 1.046 MB / 0.5108 GB, free: 0.7305 MB / 410.7 MB Notification: Performance of SimCode: time 1.042e-06/0.2774, allocations: 0 / 0.5108 GB, free: 0.7305 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04304/0.3205, allocations: 36.09 MB / 0.546 GB, free: 13.04 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.105/8.426, allocations: 6.922 kB / 0.546 GB, free: 13.04 MB / 458.7 MB " [Timeout remaining time 651] (rm -f PlanarMechanics_PlanarMechanics.Examples.CounterSpin.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.CounterSpin.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.CounterSpin.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.CounterSpin.sim & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.CounterSpin_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_CounterSpin.fmu > PlanarMechanics_PlanarMechanics.Examples.CounterSpin.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.26780494954437] Failed to read output from testmodel.py, exit status != 0: 8.525063505396247 8.532577766 8.359086196 Calling exit ...