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.001349/0.001349, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.001671/0.001671, allocations: 216.7 kB / 23.04 MB, free: 5.074 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.478/1.478, allocations: 230.6 MB / 256.8 MB, free: 7.996 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.05007/0.05007, allocations: 9.242 MB / 322.5 MB, free: 10.05 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.002232/0.002232, allocations: 67.91 kB / 448.5 MB, free: 15.06 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1164, allocations: 55.46 MB / 0.4922 GB, free: 7.516 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CounterSpin): time 0.009047/0.1254, allocations: 6.91 MB / 0.4989 GB, free: 0.5742 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005117/0.1306, allocations: 2.445 MB / 0.5013 GB, free: 14.12 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001263/0.1318, allocations: 31.88 kB / 0.5013 GB, free: 14.09 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001192/0.133, allocations: 298.2 kB / 0.5016 GB, free: 13.79 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003477/0.1365, allocations: 1.167 MB / 0.5028 GB, free: 12.62 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004095/0.1369, allocations: 83.84 kB / 0.5028 GB, free: 12.54 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003628/0.1405, allocations: 2.022 MB / 0.5048 GB, free: 10.52 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004497/0.141, allocations: 75.38 kB / 0.5049 GB, free: 10.43 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001614/0.1426, allocations: 0.7159 MB / 0.5056 GB, free: 9.707 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002098/0.1447, allocations: 1.168 MB / 0.5067 GB, free: 8.535 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006378/0.1453, allocations: 188 kB / 0.5069 GB, free: 8.352 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001948/0.1473, allocations: 0.7918 MB / 0.5077 GB, free: 7.559 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001347/0.1486, allocations: 1.024 MB / 0.5087 GB, free: 6.531 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002048/0.1507, allocations: 1.274 MB / 0.5099 GB, free: 5.25 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005961/0.1566, allocations: 4.342 MB / 0.5142 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.1566, allocations: 0 / 0.5142 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1566, allocations: 4 kB / 0.5142 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001253/0.1568, allocations: 0 / 0.5142 GB, free: 0.8867 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.2111/0.3679, allocations: 3.585 MB / 0.5177 GB, free: 24.64 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.3679, allocations: 9.594 kB / 0.5177 GB, free: 24.64 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.426e-05/0.368, allocations: 60.56 kB / 0.5177 GB, free: 24.64 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005131/0.3685, allocations: 467.2 kB / 0.5182 GB, free: 24.58 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006349/0.3748, allocations: 1.711 MB / 0.5199 GB, free: 24.4 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002123/0.3769, allocations: 1.11 MB / 0.5209 GB, free: 24.23 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.157e-05/0.377, allocations: 113.8 kB / 0.521 GB, free: 24.23 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003313/0.3774, allocations: 149.4 kB / 0.5212 GB, free: 24.23 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009716/0.3871, allocations: 7.047 MB / 0.5281 GB, free: 21.96 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.691e-05/0.3871, allocations: 19.66 kB / 0.5281 GB, free: 21.95 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002296/0.3874, allocations: 70.31 kB / 0.5282 GB, free: 21.92 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003002/0.3904, allocations: 1.721 MB / 0.5298 GB, free: 21.57 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01294/0.4033, allocations: 6.466 MB / 0.5362 GB, free: 19.05 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02649/0.4298, allocations: 20.88 MB / 0.5565 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003617/0.4334, allocations: 1.421 MB / 0.5579 GB, free: 15.35 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009577/0.4344, allocations: 0.5582 MB / 0.5585 GB, free: 14.79 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004655/0.439, allocations: 2.211 MB / 0.5606 GB, free: 12.55 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.669e-05/0.4391, allocations: 47.16 kB / 0.5607 GB, free: 12.5 MB / 398.1 MB Notification: Performance of pre-optimization done (n=93): time 3.125e-06/0.4391, allocations: 0.9375 kB / 0.5607 GB, free: 12.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=93): time 0.004267/0.4433, allocations: 1.824 MB / 0.5625 GB, free: 10.68 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.165e-05/0.4434, allocations: 56.06 kB / 0.5625 GB, free: 10.61 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003422/0.4468, allocations: 2.196 MB / 0.5647 GB, free: 8.41 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.534e-05/0.4469, allocations: 33.7 kB / 0.5647 GB, free: 8.371 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001367/0.4482, allocations: 1.899 MB / 0.5666 GB, free: 6.453 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003704/0.4486, allocations: 385.1 kB / 0.5669 GB, free: 6.074 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008936/0.4495, allocations: 0.6434 MB / 0.5675 GB, free: 5.422 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.4496, allocations: 301.1 kB / 0.5678 GB, free: 5.125 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001749/0.4514, allocations: 1.009 MB / 0.5688 GB, free: 4.113 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003434/0.4548, allocations: 2.909 MB / 0.5717 GB, free: 268 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005453/0.4603, allocations: 4.192 MB / 0.5758 GB, free: 11.13 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.516e-05/0.4603, allocations: 20 kB / 0.5758 GB, free: 11.11 MB / 414.1 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.006986/0.4673, allocations: 3.838 MB / 0.5795 GB, free: 7.281 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.248e-05/0.4674, allocations: 32 kB / 0.5796 GB, free: 7.25 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.3e-05/0.4674, allocations: 71.94 kB / 0.5796 GB, free: 7.18 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.852e-05/0.4675, allocations: 88 kB / 0.5797 GB, free: 7.094 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002198/0.4697, allocations: 0.7096 MB / 0.5804 GB, free: 6.383 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001165/0.4699, allocations: 135.4 kB / 0.5805 GB, free: 6.25 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00226/0.4721, allocations: 476.9 kB / 0.581 GB, free: 5.781 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002967/0.4724, allocations: 204.1 kB / 0.5812 GB, free: 5.582 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.002259/0.4747, allocations: 1.39 MB / 0.5825 GB, free: 4.18 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003428/0.475, allocations: 181.6 kB / 0.5827 GB, free: 4.004 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002265/0.4773, allocations: 1.205 MB / 0.5839 GB, free: 2.781 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001059/0.4774, allocations: 27.95 kB / 0.5839 GB, free: 2.754 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/0.4774, allocations: 0 / 0.5839 GB, free: 2.754 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.949e-06/0.4774, allocations: 7.984 kB / 0.5839 GB, free: 2.746 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007284/0.4847, allocations: 3.907 MB / 0.5877 GB, free: 14.77 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.903e-06/0.4847, allocations: 0 / 0.5877 GB, free: 14.77 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006278/0.4853, allocations: 127.9 kB / 0.5879 GB, free: 14.64 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.285e-05/0.4853, allocations: 8 kB / 0.5879 GB, free: 14.63 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.835e-05/0.4854, allocations: 20.8 kB / 0.5879 GB, free: 14.61 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-05/0.4854, allocations: 11.88 kB / 0.5879 GB, free: 14.6 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.811e-06/0.4854, allocations: 4.844 kB / 0.5879 GB, free: 14.6 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003066/0.4885, allocations: 1.964 MB / 0.5898 GB, free: 12.59 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006315/0.4891, allocations: 206.5 kB / 0.59 GB, free: 12.38 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002094/0.4893, allocations: 15.98 kB / 0.59 GB, free: 12.37 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005716/0.4899, allocations: 37.84 kB / 0.5901 GB, free: 12.33 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001089/0.49, allocations: 48.42 kB / 0.5901 GB, free: 12.29 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.715e-05/0.4901, allocations: 27.98 kB / 0.5901 GB, free: 12.26 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002536/0.4926, allocations: 1.42 MB / 0.5915 GB, free: 10.85 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4926, allocations: 3.938 kB / 0.5915 GB, free: 10.84 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002891/0.4955, allocations: 0.7049 MB / 0.5922 GB, free: 10.14 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.003894/0.4994, allocations: 2.595 MB / 0.5948 GB, free: 7.492 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004831/0.5042, allocations: 2.16 MB / 0.5969 GB, free: 5.344 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.921e-06/0.5042, allocations: 0 / 0.5969 GB, free: 5.344 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008272/0.5051, allocations: 0.4957 MB / 0.5973 GB, free: 4.852 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001995/0.507, allocations: 320.6 kB / 0.5977 GB, free: 4.547 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03448/0.5415, allocations: 22.11 MB / 0.6192 GB, free: 11.91 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002785/0.5443, allocations: 2.288 MB / 0.6215 GB, free: 9.602 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002266/0.5466, allocations: 0.9689 MB / 0.6224 GB, free: 8.629 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001477/0.5481, allocations: 1.038 MB / 0.6234 GB, free: 7.59 MB / 462.1 MB Notification: Performance of SimCode: time 8.32e-07/0.5481, allocations: 0 / 0.6234 GB, free: 7.59 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08028/0.6283, allocations: 38.51 MB / 0.661 GB, free: 1.328 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.7/18.33, allocations: 10.28 kB / 0.6611 GB, free: 1.32 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.218720705946907] Failed to read output from testmodel.py, exit status != 0: 18.516810055007227 18.534537919 18.374000796 Calling exit ...