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.0009884/0.0009884, 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.0009673/0.0009673, 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.9006/0.9006, 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.02778/0.02778, allocations: 7.115 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.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 1.213e-06/1.213e-06, allocations: 0 / 392.4 MB, free: 3.996 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.327e-05/1.448e-05, allocations: 2.281 kB / 392.4 MB, free: 3.992 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CounterSpin): time 0.004652/0.004667, allocations: 6.085 MB / 398.5 MB, free: 13.88 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.002718/0.007385, allocations: 2.289 MB / 400.8 MB, free: 11.58 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003868/0.007771, allocations: 27.94 kB / 400.8 MB, free: 11.55 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005022/0.008274, allocations: 310 kB / 401.1 MB, free: 11.25 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00157/0.009843, allocations: 1.198 MB / 402.3 MB, free: 10.04 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001645/0.01001, allocations: 87.77 kB / 402.4 MB, free: 9.957 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001597/0.0116, allocations: 2.058 MB / 404.4 MB, free: 7.895 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002164/0.01182, allocations: 67.39 kB / 404.5 MB, free: 7.82 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001115/0.01294, allocations: 1.095 MB / 405.6 MB, free: 6.723 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001086/0.01402, allocations: 1.106 MB / 406.7 MB, free: 5.613 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002634/0.01428, allocations: 184 kB / 406.9 MB, free: 5.434 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007822/0.01507, allocations: 0.7215 MB / 407.6 MB, free: 4.711 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006371/0.0157, allocations: 1.055 MB / 408.7 MB, free: 3.652 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005426/0.01625, allocations: 0.65 MB / 409.3 MB, free: 3 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1569/0.1732, allocations: 4.331 MB / 413.6 MB, free: 18.42 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.1732, allocations: 0.7031 kB / 413.6 MB, free: 18.42 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1732, allocations: 0 / 413.6 MB, free: 18.42 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001349/0.1733, allocations: 0 / 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.0055/0.1788, allocations: 3.588 MB / 417.2 MB, free: 17.23 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.1788, allocations: 10.5 kB / 417.2 MB, free: 17.23 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004607/0.1793, allocations: 463.8 kB / 417.7 MB, free: 17.17 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003731/0.183, allocations: 1.767 MB / 419.5 MB, free: 16.98 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00156/0.1846, allocations: 1.121 MB / 420.6 MB, free: 16.67 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.724e-05/0.1847, allocations: 113.7 kB / 420.7 MB, free: 16.66 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002712/0.1849, allocations: 148.6 kB / 420.8 MB, free: 16.66 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006784/0.1917, allocations: 7.03 MB / 427.9 MB, free: 14.25 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.056e-05/0.1918, allocations: 15.28 kB / 427.9 MB, free: 14.25 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001818/0.1919, allocations: 78.08 kB / 427.9 MB, free: 14.23 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001669/0.1936, allocations: 1.727 MB / 429.7 MB, free: 13.89 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006202/0.1998, allocations: 6.396 MB / 436.1 MB, free: 11.42 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01341/0.2132, allocations: 19.63 MB / 455.7 MB, free: 8.492 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002321/0.2155, allocations: 1.456 MB / 457.2 MB, free: 7.043 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005587/0.2161, allocations: 0.5543 MB / 457.7 MB, free: 6.488 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002342/0.2184, allocations: 2.042 MB / 459.8 MB, free: 4.445 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.326e-05/0.2185, allocations: 39.22 kB / 459.8 MB, free: 4.398 MB / 346.7 MB Notification: Performance of pre-optimization done (n=93): time 2.545e-06/0.2185, allocations: 0 / 459.8 MB, free: 4.398 MB / 346.7 MB Notification: Performance of matching and sorting (n=93): time 0.002523/0.221, allocations: 1.867 MB / 461.7 MB, free: 2.531 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.909e-05/0.221, allocations: 63.19 kB / 461.7 MB, free: 2.461 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001933/0.223, allocations: 2.312 MB / 464 MB, free: 152 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.137e-05/0.223, allocations: 41.7 kB / 464.1 MB, free: 104 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000888/0.2239, allocations: 1.875 MB / 465.9 MB, free: 14.23 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001958/0.2241, allocations: 376.7 kB / 466.3 MB, free: 13.87 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005426/0.2246, allocations: 0.6385 MB / 467 MB, free: 13.23 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.711e-05/0.2247, allocations: 301.1 kB / 467.2 MB, free: 12.93 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001037/0.2257, allocations: 0.9977 MB / 468.2 MB, free: 11.93 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002035/0.2278, allocations: 2.901 MB / 471.1 MB, free: 8.121 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003291/0.2311, allocations: 4.184 MB / 475.3 MB, free: 3.145 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.13e-05/0.2311, allocations: 20 kB / 475.3 MB, free: 3.125 MB / 362.7 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.00385/0.235, allocations: 3.812 MB / 479.2 MB, free: 15.32 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.59e-05/0.235, allocations: 36 kB / 479.2 MB, free: 15.28 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.134e-05/0.235, allocations: 71.98 kB / 479.3 MB, free: 15.21 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.066e-05/0.2351, allocations: 88 kB / 479.4 MB, free: 15.12 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001155/0.2363, allocations: 0.7096 MB / 480.1 MB, free: 14.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.826e-05/0.2363, allocations: 135.9 kB / 480.2 MB, free: 14.28 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00124/0.2376, allocations: 489.7 kB / 480.7 MB, free: 13.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001689/0.2377, allocations: 199 kB / 480.9 MB, free: 13.61 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.001481/0.2392, allocations: 1.39 MB / 482.3 MB, free: 12.21 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001968/0.2394, allocations: 178.8 kB / 482.4 MB, free: 12.04 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001335/0.2407, allocations: 1.184 MB / 483.6 MB, free: 10.84 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.048e-05/0.2408, allocations: 23.03 kB / 483.6 MB, free: 10.82 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.2408, allocations: 3.938 kB / 483.6 MB, free: 10.82 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.376e-06/0.2408, allocations: 7.984 kB / 483.6 MB, free: 10.81 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004004/0.2448, allocations: 3.736 MB / 487.4 MB, free: 7.012 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/0.2448, allocations: 4.031 kB / 487.4 MB, free: 7.008 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003499/0.2452, allocations: 135.8 kB / 487.5 MB, free: 6.875 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.945e-06/0.2452, allocations: 4 kB / 487.5 MB, free: 6.871 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.07e-05/0.2452, allocations: 23.98 kB / 487.5 MB, free: 6.848 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.59e-06/0.2452, allocations: 7.938 kB / 487.6 MB, free: 6.84 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.648e-06/0.2452, allocations: 8.062 kB / 487.6 MB, free: 6.832 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001803/0.247, allocations: 1.94 MB / 489.5 MB, free: 4.848 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002144/0.2473, allocations: 190.7 kB / 489.7 MB, free: 4.66 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000108/0.2474, allocations: 19.98 kB / 489.7 MB, free: 4.641 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002947/0.2477, allocations: 32.34 kB / 489.7 MB, free: 4.609 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.027e-05/0.2477, allocations: 62.62 kB / 489.8 MB, free: 4.551 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.854e-05/0.2478, allocations: 24 kB / 489.8 MB, free: 4.527 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001315/0.2491, allocations: 1.416 MB / 491.2 MB, free: 3.121 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2491, allocations: 3.938 kB / 491.2 MB, free: 3.117 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001677/0.2508, allocations: 0.7033 MB / 492 MB, free: 2.414 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.002028/0.2528, allocations: 2.573 MB / 494.5 MB, free: 15.79 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002084/0.2549, allocations: 2.15 MB / 496.7 MB, free: 13.66 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.2549, allocations: 0 / 496.7 MB, free: 13.66 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004296/0.2553, allocations: 499.1 kB / 497.2 MB, free: 13.17 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008483/0.2561, allocations: 312.9 kB / 497.5 MB, free: 12.88 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02013/0.2763, allocations: 21.85 MB / 0.5071 GB, free: 4.516 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001783/0.2781, allocations: 1.718 MB / 0.5088 GB, free: 2.77 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001417/0.2795, allocations: 0.9729 MB / 0.5098 GB, free: 1.793 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009644/0.2804, allocations: 1.039 MB / 0.5108 GB, free: 0.7539 MB / 410.7 MB Notification: Performance of SimCode: time 1.713e-06/0.2804, allocations: 0 / 0.5108 GB, free: 0.7539 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0481/0.3285, allocations: 36.09 MB / 0.546 GB, free: 13.06 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.962/8.291, allocations: 3.094 kB / 0.546 GB, free: 13.06 MB / 458.7 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_CounterSpin_fmu --startTime=0 --stopTime=3 --stepSize=0.0012 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_CounterSpin.fmu > PlanarMechanics_PlanarMechanics.Examples.CounterSpin.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.043157708831131] Failed to read output from testmodel.py, exit status != 0: 8.385153352282941 8.393925062 8.218991833 Calling exit ...