Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.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.001905/0.001905, allocations: 98.08 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.002297/0.002297, allocations: 216.6 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.523/1.523, 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.04951/0.04951, allocations: 9.229 MB / 322.5 MB, free: 10.12 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.GearComponents.Examples.SpurGear,fileNamePrefix="PlanarMechanics_PlanarMechanics_GearComponents_Examples_SpurGear",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.GearComponents.Examples.SpurGear,fileNamePrefix="PlanarMechanics_PlanarMechanics_GearComponents_Examples_SpurGear",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.001984/0.001984, allocations: 63.91 kB / 448.5 MB, free: 15.06 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1139, allocations: 55.47 MB / 0.4922 GB, free: 7.5 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.01604/0.13, allocations: 12.97 MB / 0.5049 GB, free: 10.47 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008548/0.1385, allocations: 3.622 MB / 0.5084 GB, free: 6.836 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001886/0.1404, allocations: 59.81 kB / 0.5085 GB, free: 6.777 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002411/0.1428, allocations: 0.8002 MB / 0.5092 GB, free: 5.973 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005674/0.1485, allocations: 2.081 MB / 0.5113 GB, free: 3.883 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007854/0.1493, allocations: 139.8 kB / 0.5114 GB, free: 3.746 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2729/0.4222, allocations: 4.059 MB / 0.5154 GB, free: 7.883 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004483/0.4267, allocations: 2.052 MB / 0.5174 GB, free: 7.797 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003277/0.43, allocations: 1.431 MB / 0.5188 GB, free: 7.57 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00452/0.4345, allocations: 2.21 MB / 0.5209 GB, free: 7.27 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001507/0.436, allocations: 315.3 kB / 0.5212 GB, free: 7.27 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002896/0.4389, allocations: 0.9359 MB / 0.5221 GB, free: 7.27 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002725/0.4416, allocations: 1.92 MB / 0.524 GB, free: 6.988 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003719/0.4453, allocations: 2.423 MB / 0.5264 GB, free: 6.055 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01089/0.4562, allocations: 7.63 MB / 0.5338 GB, free: 4.684 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.4562, allocations: 0 / 0.5338 GB, free: 4.684 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.4562, allocations: 0 / 0.5338 GB, free: 4.684 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003013/0.4565, allocations: 0 / 0.5338 GB, free: 4.684 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: 1948 * Number of variables: 1948 Notification: Performance of Generate backend data structure: time 0.03082/0.4873, allocations: 7.17 MB / 0.5408 GB, free: 1.051 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.372e-05/0.4874, allocations: 10.56 kB / 0.5409 GB, free: 1.051 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002875/0.4877, allocations: 114.5 kB / 0.541 GB, free: 1.043 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003682/0.4913, allocations: 0.8904 MB / 0.5418 GB, free: 500 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01461/0.506, allocations: 3.283 MB / 0.545 GB, free: 14.74 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00685/0.5128, allocations: 2.02 MB / 0.547 GB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003465/0.5132, allocations: 239 kB / 0.5472 GB, free: 13.52 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002108/0.5153, allocations: 311.9 kB / 0.5475 GB, free: 13.46 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02959/0.5448, allocations: 13.44 MB / 0.5607 GB, free: 3.812 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002449/0.5451, allocations: 50.86 kB / 0.5607 GB, free: 3.789 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001979/0.5471, allocations: 163.6 kB / 0.5609 GB, free: 3.688 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006573/0.5536, allocations: 3.081 MB / 0.5639 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02964/0.5833, allocations: 11.94 MB / 0.5755 GB, free: 4.934 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07911/0.6624, allocations: 47.75 MB / 0.6222 GB, free: 4.57 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01304/0.6754, allocations: 2.758 MB / 0.6249 GB, free: 1.797 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00317/0.6786, allocations: 1.297 MB / 0.6261 GB, free: 0.4961 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01867/0.6973, allocations: 6.36 MB / 0.6323 GB, free: 10.17 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.198e-05/0.6973, allocations: 55.56 kB / 0.6324 GB, free: 10.11 MB / 478.1 MB Notification: Performance of pre-optimization done (n=202): time 5.57e-06/0.6974, allocations: 0 / 0.6324 GB, free: 10.11 MB / 478.1 MB Notification: Performance of matching and sorting (n=211): time 0.02888/0.7262, allocations: 10.36 MB / 0.6425 GB, free: 15.71 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001178/0.7264, allocations: 149.8 kB / 0.6427 GB, free: 15.54 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01232/0.7387, allocations: 5.151 MB / 0.6477 GB, free: 10.39 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004135/0.7391, allocations: 53.7 kB / 0.6477 GB, free: 10.33 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.005293/0.7444, allocations: 4.097 MB / 0.6517 GB, free: 6.258 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001696/0.7461, allocations: 0.8763 MB / 0.6526 GB, free: 5.395 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005071/0.7512, allocations: 1.611 MB / 0.6542 GB, free: 3.777 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.7513, allocations: 305.1 kB / 0.6545 GB, free: 3.477 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005005/0.7563, allocations: 2.237 MB / 0.6566 GB, free: 1.234 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01001/0.7663, allocations: 7.324 MB / 0.6638 GB, free: 7.461 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01474/0.781, allocations: 10.38 MB / 0.6739 GB, free: 10.66 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001942/0.7812, allocations: 52 kB / 0.674 GB, free: 10.61 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.02125/0.8025, allocations: 9.224 MB / 0.683 GB, free: 1.395 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002343/0.8027, allocations: 84.22 kB / 0.6831 GB, free: 1.312 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003233/0.803, allocations: 184 kB / 0.6832 GB, free: 1.133 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003357/0.8034, allocations: 236 kB / 0.6835 GB, free: 0.9023 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00672/0.8101, allocations: 1.844 MB / 0.6853 GB, free: 15.05 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004137/0.8105, allocations: 354.6 kB / 0.6856 GB, free: 14.71 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006328/0.8168, allocations: 367.7 kB / 0.686 GB, free: 14.35 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001699/0.8185, allocations: 0.4999 MB / 0.6864 GB, free: 13.85 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 823 * Number of states: 0 () * Number of discrete variables: 24 (world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],gearB_Bearing.cylinderColor[3],gearB_Bearing.cylinderColor[2],gearB_Bearing.cylinderColor[1],gearB.sphereColor[3],gearB.sphereColor[2],gearB.sphereColor[1],gearA.sphereColor[3],gearA.sphereColor[2],gearA.sphereColor[1],gearA_Bearing.cylinderColor[3],gearA_Bearing.cylinderColor[2],gearA_Bearing.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (994): * Single equations (assignments): 987 * Array equations: 7 * 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.006725/0.8253, allocations: 2.65 MB / 0.689 GB, free: 11.19 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001193/0.8265, allocations: 441 kB / 0.6895 GB, free: 10.75 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005819/0.8323, allocations: 1.971 MB / 0.6914 GB, free: 8.773 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001443/0.8324, allocations: 35.98 kB / 0.6914 GB, free: 8.738 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.623e-05/0.8324, allocations: 0.75 kB / 0.6914 GB, free: 8.738 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.994e-05/0.8325, allocations: 7.969 kB / 0.6914 GB, free: 8.73 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02457/0.857, allocations: 7.712 MB / 0.699 GB, free: 0.8281 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.705e-05/0.8571, allocations: 12.19 kB / 0.699 GB, free: 0.8164 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001364/0.8584, allocations: 307.6 kB / 0.6993 GB, free: 0.5156 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001945/0.8586, allocations: 40.84 kB / 0.6993 GB, free: 484 kB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002666/0.8589, allocations: 51.98 kB / 0.6993 GB, free: 432 kB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001388/0.8603, allocations: 1.289 MB / 0.7006 GB, free: 15.02 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.073e-05/0.8603, allocations: 27.81 kB / 0.7006 GB, free: 14.99 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007742/0.8681, allocations: 4.406 MB / 0.7049 GB, free: 10.39 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00243/0.8705, allocations: 0.6217 MB / 0.7055 GB, free: 9.77 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001354/0.8719, allocations: 47.98 kB / 0.7056 GB, free: 9.723 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002441/0.8743, allocations: 75.05 kB / 0.7057 GB, free: 9.652 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003596/0.8747, allocations: 152.1 kB / 0.7058 GB, free: 9.504 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002032/0.8749, allocations: 75.97 kB / 0.7059 GB, free: 9.43 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.008625/0.8835, allocations: 3.206 MB / 0.709 GB, free: 6.23 MB / 0.545 GB Notification: Performance of sort global known variables: time 2e-07/0.8835, allocations: 4 kB / 0.709 GB, free: 6.227 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00946/0.8929, allocations: 1.078 MB / 0.7101 GB, free: 5.152 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 59 * Number of states: 2 (constantSpeed.phi,gearB.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 (163): * Single equations (assignments): 155 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009231/0.9022, allocations: 5.101 MB / 0.715 GB, free: 15.86 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01033/0.9125, allocations: 5.014 MB / 0.7199 GB, free: 10.88 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.286e-05/0.9125, allocations: 0 / 0.7199 GB, free: 10.88 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.002358/0.9149, allocations: 1.158 MB / 0.7211 GB, free: 9.707 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004852/0.9197, allocations: 0.5613 MB / 0.7216 GB, free: 9.156 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3713/1.291, allocations: 54.31 MB / 0.7747 GB, free: 164 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007862/1.299, allocations: 3.765 MB / 0.7783 GB, free: 162.5 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.006249/1.305, allocations: 2.451 MB / 0.7807 GB, free: 161.6 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00382/1.309, allocations: 2.2 MB / 0.7829 GB, free: 159.6 MB / 0.5606 GB Notification: Performance of SimCode: time 1.242e-06/1.309, allocations: 3.938 kB / 0.7829 GB, free: 159.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1243/1.433, allocations: 74.2 MB / 0.8553 GB, free: 87.09 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.58/28.01, allocations: 8 kB / 0.8554 GB, free: 87.08 MB / 0.5606 GB " [Timeout remaining time 632] (rm -f PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.pipe ; mkfifo PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.pipe >> ../files/PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_GearComponents_Examples_SpurGear_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_GearComponents_Examples_SpurGear.fmu > PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 31.04787515697535] Failed to read output from testmodel.py, exit status != 0: 28.229757197084837 28.243102238 27.784172477 Calling exit ...