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.001272/0.001272, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.001475/0.001475, allocations: 217.3 kB / 23.03 MB, free: 4.922 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.467/1.467, allocations: 230.6 MB / 256.8 MB, free: 7.809 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.04897/0.04897, allocations: 9.241 MB / 322.5 MB, free: 9.855 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.001982/0.001982, allocations: 63.91 kB / 448.4 MB, free: 14.61 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.1159, allocations: 55.47 MB / 0.4921 GB, free: 7.055 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CounterSpin): time 0.008259/0.1241, allocations: 6.049 MB / 0.498 GB, free: 0.9805 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00489/0.129, allocations: 2.277 MB / 0.5002 GB, free: 14.69 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006256/0.1297, allocations: 27.94 kB / 0.5003 GB, free: 14.66 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007633/0.1304, allocations: 306.1 kB / 0.5006 GB, free: 14.36 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002569/0.133, allocations: 1.16 MB / 0.5017 GB, free: 13.2 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000248/0.1332, allocations: 87.77 kB / 0.5018 GB, free: 13.11 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002398/0.1356, allocations: 2.016 MB / 0.5037 GB, free: 11.09 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002601/0.1359, allocations: 83.3 kB / 0.5038 GB, free: 11 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001064/0.137, allocations: 0.7198 MB / 0.5045 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001531/0.1385, allocations: 1.168 MB / 0.5057 GB, free: 9.102 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003075/0.1388, allocations: 184 kB / 0.5058 GB, free: 8.922 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001249/0.14, allocations: 0.6748 MB / 0.5065 GB, free: 8.246 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00098/0.141, allocations: 1.024 MB / 0.5075 GB, free: 7.219 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009555/0.142, allocations: 0.8809 MB / 0.5084 GB, free: 6.332 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004948/0.1469, allocations: 4.342 MB / 0.5126 GB, free: 1.973 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.1469, allocations: 0 / 0.5126 GB, free: 1.973 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.1469, allocations: 0 / 0.5126 GB, free: 1.973 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.078e-05/0.147, allocations: 0 / 0.5126 GB, free: 1.973 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.2505/0.3975, allocations: 3.588 MB / 0.5161 GB, free: 24.57 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.809e-05/0.3976, allocations: 10.78 kB / 0.5161 GB, free: 24.57 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 8.28e-05/0.3976, allocations: 58.77 kB / 0.5162 GB, free: 24.57 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005094/0.3982, allocations: 469.3 kB / 0.5166 GB, free: 24.51 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006376/0.4045, allocations: 1.709 MB / 0.5183 GB, free: 24.33 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00242/0.407, allocations: 1.123 MB / 0.5194 GB, free: 24.1 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.339e-05/0.407, allocations: 114.2 kB / 0.5195 GB, free: 24.09 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004399/0.4075, allocations: 143.5 kB / 0.5196 GB, free: 24.09 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01272/0.4202, allocations: 7.048 MB / 0.5265 GB, free: 21.88 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.514e-05/0.4203, allocations: 22.94 kB / 0.5265 GB, free: 21.86 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002696/0.4205, allocations: 73.8 kB / 0.5266 GB, free: 21.84 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002907/0.4234, allocations: 1.719 MB / 0.5283 GB, free: 21.5 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01337/0.4368, allocations: 6.464 MB / 0.5346 GB, free: 19.27 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02894/0.4658, allocations: 19.63 MB / 0.5538 GB, free: 2.484 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003516/0.4693, allocations: 1.417 MB / 0.5551 GB, free: 1.066 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007116/0.47, allocations: 0.5632 MB / 0.5557 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004286/0.4743, allocations: 2.023 MB / 0.5577 GB, free: 14.49 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.135e-05/0.4743, allocations: 43.16 kB / 0.5577 GB, free: 14.43 MB / 398.1 MB Notification: Performance of pre-optimization done (n=93): time 4.378e-06/0.4743, allocations: 0 / 0.5577 GB, free: 14.43 MB / 398.1 MB Notification: Performance of matching and sorting (n=93): time 0.00434/0.4787, allocations: 1.82 MB / 0.5595 GB, free: 12.61 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.042e-05/0.4787, allocations: 60.06 kB / 0.5595 GB, free: 12.54 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003376/0.4821, allocations: 2.199 MB / 0.5617 GB, free: 10.35 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001033/0.4822, allocations: 41.69 kB / 0.5617 GB, free: 10.3 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001669/0.4839, allocations: 1.895 MB / 0.5636 GB, free: 8.387 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004225/0.4843, allocations: 382.6 kB / 0.5639 GB, free: 8.012 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009154/0.4852, allocations: 0.6473 MB / 0.5646 GB, free: 7.355 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.4854, allocations: 306.2 kB / 0.5649 GB, free: 7.055 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001699/0.4871, allocations: 0.9983 MB / 0.5658 GB, free: 6.055 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003378/0.4904, allocations: 2.911 MB / 0.5687 GB, free: 2.199 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005539/0.496, allocations: 4.201 MB / 0.5728 GB, free: 13.06 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.396e-05/0.496, allocations: 22.06 kB / 0.5728 GB, free: 13.04 MB / 414.1 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.007149/0.5032, allocations: 3.824 MB / 0.5765 GB, free: 9.223 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.84e-05/0.5033, allocations: 39.94 kB / 0.5766 GB, free: 9.184 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001133/0.5034, allocations: 67.94 kB / 0.5767 GB, free: 9.117 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000125/0.5035, allocations: 95.98 kB / 0.5767 GB, free: 9.023 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002248/0.5058, allocations: 0.7063 MB / 0.5774 GB, free: 8.316 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001212/0.5059, allocations: 139.5 kB / 0.5776 GB, free: 8.18 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002492/0.5084, allocations: 472.5 kB / 0.578 GB, free: 7.715 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003492/0.5087, allocations: 196 kB / 0.5782 GB, free: 7.523 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.002163/0.5109, allocations: 1.392 MB / 0.5796 GB, free: 6.121 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003259/0.5112, allocations: 186.8 kB / 0.5797 GB, free: 5.938 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002151/0.5134, allocations: 1.201 MB / 0.5809 GB, free: 4.719 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001236/0.5135, allocations: 23.98 kB / 0.5809 GB, free: 4.695 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.713e-06/0.5135, allocations: 3.125 kB / 0.5809 GB, free: 4.695 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.046e-06/0.5135, allocations: 3.984 kB / 0.5809 GB, free: 4.691 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006776/0.5203, allocations: 3.732 MB / 0.5846 GB, free: 0.8867 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/0.5203, allocations: 8.062 kB / 0.5846 GB, free: 0.8789 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006565/0.5209, allocations: 139.7 kB / 0.5847 GB, free: 0.7422 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.218e-05/0.521, allocations: 4 kB / 0.5847 GB, free: 0.7383 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.076e-05/0.521, allocations: 23.98 kB / 0.5848 GB, free: 0.7148 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.116e-05/0.521, allocations: 11.88 kB / 0.5848 GB, free: 0.7031 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.185e-06/0.521, allocations: 0 / 0.5848 GB, free: 0.7031 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002958/0.524, allocations: 1.964 MB / 0.5867 GB, free: 14.69 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004826/0.5245, allocations: 202.5 kB / 0.5869 GB, free: 14.49 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002126/0.5247, allocations: 16 kB / 0.5869 GB, free: 14.47 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005933/0.5253, allocations: 39.89 kB / 0.5869 GB, free: 14.43 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001017/0.5254, allocations: 48.84 kB / 0.587 GB, free: 14.39 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.588e-05/0.5255, allocations: 27.98 kB / 0.587 GB, free: 14.36 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002188/0.5276, allocations: 1.416 MB / 0.5884 GB, free: 12.96 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5276, allocations: 0 / 0.5884 GB, free: 12.96 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00289/0.5305, allocations: 0.7049 MB / 0.5891 GB, free: 12.25 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.003667/0.5342, allocations: 2.597 MB / 0.5916 GB, free: 9.602 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004219/0.5384, allocations: 2.165 MB / 0.5937 GB, free: 7.449 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.722e-06/0.5384, allocations: 0 / 0.5937 GB, free: 7.449 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008011/0.5392, allocations: 0.4952 MB / 0.5942 GB, free: 6.957 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00189/0.5411, allocations: 313.3 kB / 0.5945 GB, free: 6.664 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03441/0.5755, allocations: 22.13 MB / 0.6161 GB, free: 14.02 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002399/0.5779, allocations: 1.71 MB / 0.6178 GB, free: 12.29 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002342/0.5803, allocations: 0.9784 MB / 0.6187 GB, free: 11.31 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001451/0.5817, allocations: 1.026 MB / 0.6197 GB, free: 10.29 MB / 462.1 MB Notification: Performance of SimCode: time 1.092e-06/0.5817, allocations: 0 / 0.6197 GB, free: 10.29 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0756/0.6573, allocations: 37.27 MB / 0.6561 GB, free: 5.496 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.04/18.7, allocations: 11.12 kB / 0.6561 GB, free: 5.488 MB / 494.1 MB " [Timeout remaining time 641] (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: 21.529569944017567] Failed to read output from testmodel.py, exit status != 0: 18.89294130099006 18.909618719 18.759277424 Calling exit ...