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.001318/0.001318, allocations: 103.6 kB / 18.95 MB, free: 2.664 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.001523/0.001523, allocations: 210.3 kB / 22.24 MB, free: 5.266 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.441/1.441, allocations: 230.6 MB / 256 MB, free: 7.785 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.05015/0.05015, allocations: 9.234 MB / 321.7 MB, free: 9.84 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.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: 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.002041/0.002041, allocations: 63.91 kB / 447.7 MB, free: 14.55 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1023, allocations: 55.47 MB / 0.4913 GB, free: 7 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CounterSpin): time 0.00807/0.1103, allocations: 6.088 MB / 0.4973 GB, free: 0.8867 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004417/0.1148, allocations: 2.293 MB / 0.4995 GB, free: 14.58 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000557/0.1153, allocations: 27.94 kB / 0.4996 GB, free: 14.55 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007235/0.116, allocations: 306.1 kB / 0.4998 GB, free: 14.25 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002454/0.1185, allocations: 1.156 MB / 0.501 GB, free: 13.09 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002476/0.1187, allocations: 91.78 kB / 0.5011 GB, free: 13 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002451/0.1212, allocations: 2.012 MB / 0.503 GB, free: 10.99 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002487/0.1214, allocations: 75.31 kB / 0.5031 GB, free: 10.9 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00105/0.1225, allocations: 0.716 MB / 0.5038 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001702/0.1242, allocations: 1.137 MB / 0.5049 GB, free: 9.039 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003826/0.1246, allocations: 192 kB / 0.5051 GB, free: 8.852 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001266/0.1258, allocations: 0.6592 MB / 0.5057 GB, free: 8.191 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001001/0.1268, allocations: 1.032 MB / 0.5067 GB, free: 7.156 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009839/0.1278, allocations: 0.8653 MB / 0.5076 GB, free: 6.285 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004877/0.1327, allocations: 4.342 MB / 0.5118 GB, free: 1.926 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.1327, allocations: 0 / 0.5118 GB, free: 1.926 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1327, allocations: 0 / 0.5118 GB, free: 1.926 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.336e-05/0.1328, allocations: 0 / 0.5118 GB, free: 1.926 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: 981 * Number of variables: 981 Notification: Performance of Generate backend data structure: time 0.187/0.3198, allocations: 3.592 MB / 0.5153 GB, free: 24.09 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/0.3198, allocations: 11.72 kB / 0.5153 GB, free: 24.09 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004901/0.3203, allocations: 465.3 kB / 0.5158 GB, free: 24.03 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006345/0.3266, allocations: 1.715 MB / 0.5175 GB, free: 23.85 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002486/0.3291, allocations: 1.128 MB / 0.5186 GB, free: 23.62 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.937e-05/0.3292, allocations: 112.9 kB / 0.5187 GB, free: 23.61 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003445/0.3296, allocations: 143.8 kB / 0.5188 GB, free: 23.61 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009512/0.3391, allocations: 7.048 MB / 0.5257 GB, free: 21.71 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.519e-05/0.3391, allocations: 20.3 kB / 0.5257 GB, free: 21.7 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002359/0.3394, allocations: 70.97 kB / 0.5258 GB, free: 21.68 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002762/0.3421, allocations: 1.72 MB / 0.5275 GB, free: 21.34 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01225/0.3544, allocations: 6.459 MB / 0.5338 GB, free: 19.11 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02457/0.3789, allocations: 19.63 MB / 0.5529 GB, free: 2.316 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003432/0.3824, allocations: 1.417 MB / 0.5543 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007297/0.3831, allocations: 0.5606 MB / 0.5549 GB, free: 344 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004293/0.3874, allocations: 2.02 MB / 0.5568 GB, free: 14.32 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.308e-05/0.3874, allocations: 42.53 kB / 0.5569 GB, free: 14.27 MB / 398.1 MB Notification: Performance of pre-optimization done (n=93): time 2.906e-06/0.3874, allocations: 0 / 0.5569 GB, free: 14.27 MB / 398.1 MB Notification: Performance of matching and sorting (n=93): time 0.004295/0.3917, allocations: 1.828 MB / 0.5587 GB, free: 12.44 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.352e-05/0.3918, allocations: 60.06 kB / 0.5587 GB, free: 12.37 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003524/0.3953, allocations: 2.308 MB / 0.561 GB, free: 10.06 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.393e-05/0.3954, allocations: 37.7 kB / 0.561 GB, free: 10.02 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00156/0.397, allocations: 1.887 MB / 0.5629 GB, free: 8.117 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004323/0.3974, allocations: 397 kB / 0.5632 GB, free: 7.727 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009508/0.3983, allocations: 0.6473 MB / 0.5639 GB, free: 7.07 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.3985, allocations: 307.7 kB / 0.5642 GB, free: 6.77 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001877/0.4004, allocations: 1.006 MB / 0.5651 GB, free: 5.762 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003586/0.404, allocations: 2.901 MB / 0.568 GB, free: 1.914 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006352/0.4103, allocations: 4.183 MB / 0.5721 GB, free: 12.8 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.631e-05/0.4104, allocations: 20 kB / 0.5721 GB, free: 12.79 MB / 414.1 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.007823/0.4182, allocations: 3.843 MB / 0.5758 GB, free: 8.949 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.313e-05/0.4183, allocations: 32 kB / 0.5759 GB, free: 8.918 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.532e-05/0.4183, allocations: 68 kB / 0.5759 GB, free: 8.852 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001645/0.4185, allocations: 96.8 kB / 0.576 GB, free: 8.758 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002211/0.4207, allocations: 0.7096 MB / 0.5767 GB, free: 8.047 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001301/0.4208, allocations: 131.5 kB / 0.5768 GB, free: 7.918 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002713/0.4235, allocations: 484.4 kB / 0.5773 GB, free: 7.441 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000316/0.4239, allocations: 192.9 kB / 0.5775 GB, free: 7.254 MB / 414.1 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.002588/0.4264, allocations: 1.394 MB / 0.5788 GB, free: 5.848 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003232/0.4268, allocations: 178.8 kB / 0.579 GB, free: 5.672 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00296/0.4297, allocations: 1.199 MB / 0.5802 GB, free: 4.461 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000155/0.4299, allocations: 19.98 kB / 0.5802 GB, free: 4.441 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/0.4299, allocations: 0 / 0.5802 GB, free: 4.441 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.527e-05/0.4299, allocations: 7.984 kB / 0.5802 GB, free: 4.434 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007939/0.4378, allocations: 3.744 MB / 0.5839 GB, free: 0.6172 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.869e-06/0.4379, allocations: 5.875 kB / 0.5839 GB, free: 0.6133 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006444/0.4385, allocations: 135.8 kB / 0.584 GB, free: 492 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.338e-06/0.4385, allocations: 4 kB / 0.584 GB, free: 488 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.549e-05/0.4386, allocations: 19.94 kB / 0.584 GB, free: 468 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-05/0.4386, allocations: 11.94 kB / 0.584 GB, free: 456 kB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.4386, allocations: 8.156 kB / 0.584 GB, free: 448 kB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003138/0.4417, allocations: 1.968 MB / 0.586 GB, free: 14.42 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004998/0.4422, allocations: 198.6 kB / 0.5862 GB, free: 14.22 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002141/0.4424, allocations: 19.98 kB / 0.5862 GB, free: 14.2 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006055/0.443, allocations: 31.97 kB / 0.5862 GB, free: 14.17 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.804e-05/0.4431, allocations: 48.34 kB / 0.5863 GB, free: 14.12 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.461e-05/0.4432, allocations: 32 kB / 0.5863 GB, free: 14.09 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002283/0.4455, allocations: 1.424 MB / 0.5877 GB, free: 12.68 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4455, allocations: 0 / 0.5877 GB, free: 12.68 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002741/0.4482, allocations: 0.6971 MB / 0.5884 GB, free: 11.98 MB / 430.1 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.003732/0.452, allocations: 2.605 MB / 0.5909 GB, free: 9.324 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004304/0.4563, allocations: 2.167 MB / 0.593 GB, free: 7.172 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/0.4563, allocations: 0 / 0.593 GB, free: 7.172 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001021/0.4573, allocations: 495 kB / 0.5935 GB, free: 6.691 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001644/0.4589, allocations: 313.8 kB / 0.5938 GB, free: 6.398 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03575/0.4947, allocations: 22.11 MB / 0.6154 GB, free: 13.77 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002584/0.4973, allocations: 1.714 MB / 0.6171 GB, free: 12.03 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002605/0.4999, allocations: 0.9801 MB / 0.618 GB, free: 11.05 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001649/0.5015, allocations: 1.034 MB / 0.619 GB, free: 10.02 MB / 462.1 MB Notification: Performance of SimCode: time 1.623e-06/0.5015, allocations: 0 / 0.619 GB, free: 10.02 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07938/0.5809, allocations: 36.06 MB / 0.6542 GB, free: 6.398 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.82/13.4, allocations: 0 / 0.6542 GB, free: 6.398 MB / 494.1 MB " [Timeout remaining time 646] (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: 16.013905785046518] Failed to read output from testmodel.py, exit status != 0: 13.537485167849809 13.568113948 13.429808262 Calling exit ...