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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001454/0.001454, allocations: 103.3 kB / 16.45 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001491/0.001491, allocations: 187.7 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.407/1.407, allocations: 225.6 MB / 247.8 MB, free: 3.746 MB / 190.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.04642/0.04642, allocations: 9.232 MB / 311.9 MB, free: 1.859 MB / 238.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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.001915/0.001915, allocations: 67.89 kB / 434 MB, free: 11.25 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2687/0.2706, allocations: 54.25 MB / 488.3 MB, free: 25.24 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CounterSpin): time 0.007548/0.2782, allocations: 6.886 MB / 495.2 MB, free: 20.38 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005401/0.2836, allocations: 2.371 MB / 497.5 MB, free: 18.79 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001339/0.2849, allocations: 28.62 kB / 497.6 MB, free: 18.79 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000972/0.2859, allocations: 307.6 kB / 497.9 MB, free: 18.67 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003304/0.2892, allocations: 1.161 MB / 499 MB, free: 18.11 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003771/0.2896, allocations: 86.72 kB / 499.1 MB, free: 18.05 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002849/0.2924, allocations: 2.037 MB / 0.4894 GB, free: 16.88 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002993/0.2927, allocations: 83.02 kB / 0.4895 GB, free: 16.84 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001145/0.2939, allocations: 0.7108 MB / 0.4902 GB, free: 16.42 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001764/0.2956, allocations: 1.166 MB / 0.4913 GB, free: 15.71 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004706/0.2961, allocations: 187.8 kB / 0.4915 GB, free: 15.71 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001471/0.2976, allocations: 0.7846 MB / 0.4923 GB, free: 15.36 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009813/0.2985, allocations: 1.028 MB / 0.4933 GB, free: 14.76 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001146/0.2997, allocations: 1.293 MB / 0.4945 GB, free: 13.73 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00447/0.3042, allocations: 4.369 MB / 0.4988 GB, free: 10.72 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.3042, allocations: 0 / 0.4988 GB, free: 10.72 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3042, allocations: 1.156 kB / 0.4988 GB, free: 10.72 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001227/0.3043, allocations: 0 / 0.4988 GB, free: 10.72 MB / 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.008316/0.3126, allocations: 3.657 MB / 0.5024 GB, free: 8.219 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/0.3126, allocations: 13.66 kB / 0.5024 GB, free: 8.215 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000677/0.3133, allocations: 466.9 kB / 0.5028 GB, free: 7.895 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00603/0.3193, allocations: 1.709 MB / 0.5045 GB, free: 6.98 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003193/0.3225, allocations: 1.175 MB / 0.5056 GB, free: 6.117 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.876e-05/0.3226, allocations: 113.2 kB / 0.5058 GB, free: 6.062 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000399/0.323, allocations: 142.9 kB / 0.5059 GB, free: 6.012 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009049/0.3321, allocations: 7.055 MB / 0.5128 GB, free: 14.78 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.822e-05/0.3321, allocations: 23.88 kB / 0.5128 GB, free: 14.76 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002463/0.3324, allocations: 67.88 kB / 0.5129 GB, free: 14.69 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002965/0.3353, allocations: 1.722 MB / 0.5146 GB, free: 12.96 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01347/0.3488, allocations: 6.466 MB / 0.5209 GB, free: 6.484 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03333/0.3821, allocations: 20.94 MB / 0.5413 GB, free: 1.098 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004194/0.3863, allocations: 1.874 MB / 0.5431 GB, free: 15.1 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009488/0.3873, allocations: 0.562 MB / 0.5437 GB, free: 14.54 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005921/0.3932, allocations: 3.348 MB / 0.547 GB, free: 10.88 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.829e-05/0.3932, allocations: 39.12 kB / 0.547 GB, free: 10.84 MB / 414.1 MB Notification: Performance of pre-optimization done (n=93): time 3.096e-06/0.3932, allocations: 0 / 0.547 GB, free: 10.84 MB / 414.1 MB Notification: Performance of matching and sorting (n=93): time 0.004256/0.3975, allocations: 1.827 MB / 0.5488 GB, free: 9.004 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.102e-05/0.3976, allocations: 59.97 kB / 0.5488 GB, free: 8.934 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003418/0.401, allocations: 2.196 MB / 0.551 GB, free: 6.738 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.572e-05/0.4011, allocations: 37.7 kB / 0.551 GB, free: 6.695 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001503/0.4026, allocations: 1.891 MB / 0.5529 GB, free: 4.785 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004079/0.403, allocations: 389 kB / 0.5532 GB, free: 4.402 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008969/0.4039, allocations: 0.6473 MB / 0.5539 GB, free: 3.746 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.404, allocations: 301.1 kB / 0.5542 GB, free: 3.449 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001676/0.4057, allocations: 1.009 MB / 0.5551 GB, free: 2.438 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003445/0.4091, allocations: 2.909 MB / 0.558 GB, free: 14.58 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005269/0.4144, allocations: 4.182 MB / 0.5621 GB, free: 9.465 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.101e-05/0.4144, allocations: 20 kB / 0.5621 GB, free: 9.445 MB / 430.1 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.006977/0.4214, allocations: 3.828 MB / 0.5658 GB, free: 5.613 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.373e-05/0.4215, allocations: 39.92 kB / 0.5659 GB, free: 5.574 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.28e-05/0.4216, allocations: 68 kB / 0.5659 GB, free: 5.508 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001368/0.4217, allocations: 88 kB / 0.566 GB, free: 5.422 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002171/0.4239, allocations: 0.7103 MB / 0.5667 GB, free: 4.711 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000127/0.424, allocations: 131.5 kB / 0.5668 GB, free: 4.582 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002384/0.4264, allocations: 480.4 kB / 0.5673 GB, free: 4.109 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003262/0.4267, allocations: 200.3 kB / 0.5675 GB, free: 3.914 MB / 430.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.002206/0.4289, allocations: 1.404 MB / 0.5689 GB, free: 2.5 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000372/0.4293, allocations: 186.8 kB / 0.569 GB, free: 2.316 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002113/0.4314, allocations: 1.201 MB / 0.5702 GB, free: 1.105 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.638e-05/0.4315, allocations: 23.92 kB / 0.5702 GB, free: 1.082 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/0.4315, allocations: 0 / 0.5702 GB, free: 1.082 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.167e-05/0.4315, allocations: 3.984 kB / 0.5702 GB, free: 1.078 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007577/0.4391, allocations: 3.932 MB / 0.5741 GB, free: 13.05 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.735e-06/0.4391, allocations: 4 kB / 0.5741 GB, free: 13.05 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006058/0.4397, allocations: 136.1 kB / 0.5742 GB, free: 12.92 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.146e-05/0.4397, allocations: 11.98 kB / 0.5742 GB, free: 12.91 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.58e-05/0.4398, allocations: 16 kB / 0.5742 GB, free: 12.89 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.617e-06/0.4398, allocations: 7.938 kB / 0.5742 GB, free: 12.88 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.4398, allocations: 7.938 kB / 0.5742 GB, free: 12.88 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002821/0.4426, allocations: 1.959 MB / 0.5762 GB, free: 10.88 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005685/0.4432, allocations: 279.7 kB / 0.5764 GB, free: 10.58 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002962/0.4435, allocations: 20 kB / 0.5764 GB, free: 10.56 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006307/0.4441, allocations: 39.81 kB / 0.5765 GB, free: 10.53 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.344e-05/0.4442, allocations: 44.5 kB / 0.5765 GB, free: 10.48 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.753e-05/0.4443, allocations: 31.98 kB / 0.5766 GB, free: 10.45 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002284/0.4466, allocations: 1.412 MB / 0.5779 GB, free: 9.051 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4466, allocations: 0 / 0.5779 GB, free: 9.051 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002686/0.4492, allocations: 0.7166 MB / 0.5786 GB, free: 8.332 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.003543/0.4528, allocations: 2.6 MB / 0.5812 GB, free: 5.672 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003949/0.4567, allocations: 2.17 MB / 0.5833 GB, free: 3.516 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.4567, allocations: 0 / 0.5833 GB, free: 3.516 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007695/0.4575, allocations: 0.4915 MB / 0.5838 GB, free: 3.023 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001749/0.4593, allocations: 309.2 kB / 0.5841 GB, free: 2.73 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03757/0.4968, allocations: 22.11 MB / 0.6057 GB, free: 10.09 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002883/0.4997, allocations: 2.278 MB / 0.6079 GB, free: 7.777 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002448/0.5022, allocations: 0.9806 MB / 0.6088 GB, free: 6.793 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001583/0.5037, allocations: 1.026 MB / 0.6098 GB, free: 5.766 MB / 478.1 MB Notification: Performance of SimCode: time 7.71e-07/0.5037, allocations: 0 / 0.6098 GB, free: 5.766 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2826/0.7864, allocations: 35.84 MB / 0.6448 GB, free: 112.3 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.19/13.98, allocations: 8.047 kB / 0.6449 GB, free: 112.3 MB / 478.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.435686748940498] Failed to read output from testmodel.py, exit status != 0: 14.068118054885417 14.080004242 13.773121175 Calling exit ...