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.001504/0.001504, allocations: 116.7 kB / 17.17 MB, free: 5.977 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.001709/0.001709, allocations: 209.6 kB / 20.13 MB, free: 3.035 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.514/1.514, allocations: 230.6 MB / 253.5 MB, free: 15.08 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.04852/0.04852, allocations: 9.234 MB / 318.8 MB, free: 15.52 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.CounterSpin,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_CounterSpin",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.002004/0.002004, allocations: 67.19 kB / 443.2 MB, free: 39.4 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09227/0.09428, allocations: 55.43 MB / 498.7 MB, free: 6.613 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CounterSpin): time 0.006487/0.1008, allocations: 6.888 MB / 0.4937 GB, free: 15.69 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005175/0.1059, allocations: 2.425 MB / 0.4961 GB, free: 13.25 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009391/0.1069, allocations: 27.94 kB / 0.4961 GB, free: 13.23 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000985/0.1079, allocations: 302.1 kB / 0.4964 GB, free: 12.93 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003689/0.1116, allocations: 1.164 MB / 0.4975 GB, free: 11.76 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004734/0.112, allocations: 83.84 kB / 0.4976 GB, free: 11.68 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003067/0.1151, allocations: 2.022 MB / 0.4996 GB, free: 9.656 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000381/0.1155, allocations: 87.11 kB / 0.4997 GB, free: 9.559 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001568/0.117, allocations: 0.7238 MB / 0.5004 GB, free: 8.832 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001856/0.1189, allocations: 1.164 MB / 0.5015 GB, free: 7.664 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000539/0.1194, allocations: 188 kB / 0.5017 GB, free: 7.48 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001672/0.1211, allocations: 0.784 MB / 0.5025 GB, free: 6.695 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001263/0.1224, allocations: 1.024 MB / 0.5035 GB, free: 5.668 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002086/0.1245, allocations: 1.277 MB / 0.5047 GB, free: 4.383 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00577/0.1302, allocations: 4.334 MB / 0.5089 GB, free: 32 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.73e-06/0.1302, allocations: 0 / 0.5089 GB, free: 32 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1302, allocations: 4 kB / 0.5089 GB, free: 28 kB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001309/0.1304, allocations: 0 / 0.5089 GB, free: 28 kB / 366.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.009235/0.1396, allocations: 3.671 MB / 0.5125 GB, free: 12.29 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.896e-05/0.1396, allocations: 12.03 kB / 0.5125 GB, free: 12.28 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 8.388e-05/0.1397, allocations: 55.02 kB / 0.5126 GB, free: 12.23 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007006/0.1404, allocations: 463.2 kB / 0.513 GB, free: 11.77 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00697/0.1474, allocations: 1.719 MB / 0.5147 GB, free: 10.04 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002455/0.1499, allocations: 1.169 MB / 0.5158 GB, free: 8.828 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001086/0.15, allocations: 111.1 kB / 0.516 GB, free: 8.719 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004103/0.1504, allocations: 152.2 kB / 0.5161 GB, free: 8.57 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01196/0.1623, allocations: 7.05 MB / 0.523 GB, free: 1.223 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.268e-05/0.1624, allocations: 19.86 kB / 0.523 GB, free: 1.203 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002603/0.1627, allocations: 71.88 kB / 0.5231 GB, free: 1.133 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003145/0.1658, allocations: 1.722 MB / 0.5248 GB, free: 15.4 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0137/0.1795, allocations: 6.466 MB / 0.5311 GB, free: 8.922 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03549/0.215, allocations: 20.93 MB / 0.5515 GB, free: 3.551 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004654/0.2197, allocations: 1.867 MB / 0.5533 GB, free: 1.566 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001113/0.2208, allocations: 0.5658 MB / 0.5539 GB, free: 1 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005469/0.2262, allocations: 3.343 MB / 0.5571 GB, free: 13.34 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.735e-05/0.2263, allocations: 43.06 kB / 0.5572 GB, free: 13.29 MB / 430.1 MB Notification: Performance of pre-optimization done (n=93): time 3.537e-06/0.2263, allocations: 4 kB / 0.5572 GB, free: 13.29 MB / 430.1 MB Notification: Performance of matching and sorting (n=93): time 0.004492/0.2308, allocations: 1.827 MB / 0.559 GB, free: 11.45 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.012e-05/0.2308, allocations: 55.97 kB / 0.559 GB, free: 11.39 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003996/0.2348, allocations: 2.2 MB / 0.5612 GB, free: 9.188 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000111/0.2349, allocations: 37.7 kB / 0.5612 GB, free: 9.145 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001785/0.2367, allocations: 1.887 MB / 0.5631 GB, free: 7.238 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005228/0.2372, allocations: 393.1 kB / 0.5634 GB, free: 6.852 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001029/0.2383, allocations: 0.6472 MB / 0.5641 GB, free: 6.195 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001255/0.2384, allocations: 301.1 kB / 0.5644 GB, free: 5.898 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001938/0.2403, allocations: 1.009 MB / 0.5653 GB, free: 4.887 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003387/0.2437, allocations: 2.909 MB / 0.5682 GB, free: 1.031 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005344/0.2491, allocations: 4.182 MB / 0.5723 GB, free: 11.91 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.111e-05/0.2491, allocations: 24 kB / 0.5723 GB, free: 11.89 MB / 446.1 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.007266/0.2564, allocations: 3.832 MB / 0.576 GB, free: 8.055 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.646e-05/0.2564, allocations: 35.94 kB / 0.5761 GB, free: 8.02 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.999e-05/0.2565, allocations: 68 kB / 0.5761 GB, free: 7.953 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001005/0.2566, allocations: 88 kB / 0.5762 GB, free: 7.867 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002308/0.2589, allocations: 0.7096 MB / 0.5769 GB, free: 7.156 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000131/0.2591, allocations: 131.5 kB / 0.577 GB, free: 7.027 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002879/0.2619, allocations: 480.4 kB / 0.5775 GB, free: 6.555 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000441/0.2624, allocations: 200 kB / 0.5777 GB, free: 6.359 MB / 446.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.00244/0.2648, allocations: 1.395 MB / 0.579 GB, free: 4.953 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004014/0.2652, allocations: 182.7 kB / 0.5792 GB, free: 4.773 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00249/0.2677, allocations: 1.197 MB / 0.5804 GB, free: 3.57 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001149/0.2678, allocations: 27.95 kB / 0.5804 GB, free: 3.543 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.658e-06/0.2678, allocations: 0 / 0.5804 GB, free: 3.543 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/0.2678, allocations: 4 kB / 0.5804 GB, free: 3.539 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2392/0.507, allocations: 3.928 MB / 0.5843 GB, free: 87.83 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.018e-05/0.507, allocations: 2 kB / 0.5843 GB, free: 87.83 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007008/0.5077, allocations: 134.6 kB / 0.5844 GB, free: 87.83 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-05/0.5078, allocations: 4.469 kB / 0.5844 GB, free: 87.83 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.728e-05/0.5078, allocations: 24.02 kB / 0.5844 GB, free: 87.83 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.608e-05/0.5078, allocations: 11.27 kB / 0.5844 GB, free: 87.83 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.793e-06/0.5079, allocations: 3.312 kB / 0.5844 GB, free: 87.83 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00349/0.5113, allocations: 1.97 MB / 0.5863 GB, free: 87.61 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006189/0.512, allocations: 278.4 kB / 0.5866 GB, free: 87.51 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002015/0.5122, allocations: 20.94 kB / 0.5866 GB, free: 87.51 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005795/0.5127, allocations: 35.03 kB / 0.5867 GB, free: 87.51 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001129/0.5129, allocations: 48.44 kB / 0.5867 GB, free: 87.51 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.875e-05/0.5129, allocations: 37.8 kB / 0.5867 GB, free: 87.51 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002203/0.5151, allocations: 1.411 MB / 0.5881 GB, free: 87.35 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5151, allocations: 0 / 0.5881 GB, free: 87.35 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002664/0.5178, allocations: 0.7001 MB / 0.5888 GB, free: 87.23 MB / 446.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.00321/0.521, allocations: 2.6 MB / 0.5913 GB, free: 85.81 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004597/0.5256, allocations: 2.165 MB / 0.5935 GB, free: 85.16 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.276e-06/0.5256, allocations: 0.5 kB / 0.5935 GB, free: 85.16 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007784/0.5264, allocations: 0.4929 MB / 0.5939 GB, free: 85 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001719/0.5281, allocations: 316.5 kB / 0.5942 GB, free: 84.89 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02678/0.5549, allocations: 22.11 MB / 0.6158 GB, free: 67.11 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001936/0.5568, allocations: 2.285 MB / 0.6181 GB, free: 64.89 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001937/0.5588, allocations: 0.9757 MB / 0.619 GB, free: 63.92 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001209/0.56, allocations: 1.031 MB / 0.62 GB, free: 62.89 MB / 446.1 MB Notification: Performance of SimCode: time 8.42e-07/0.56, allocations: 0 / 0.62 GB, free: 62.89 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05559/0.6156, allocations: 35.84 MB / 0.655 GB, free: 27.26 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.8/15.41, allocations: 13.95 kB / 0.655 GB, free: 27.25 MB / 446.1 MB " [Timeout remaining time 644] (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: 18.403204309986904] Failed to read output from testmodel.py, exit status != 0: 15.566115679976065 15.57915723 15.446492308 Calling exit ...