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.001944/0.001944, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.002138/0.002138, allocations: 218.7 kB / 23.03 MB, free: 4.949 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.612/1.612, allocations: 230.6 MB / 256.8 MB, free: 7.812 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.05018/0.05018, allocations: 9.244 MB / 322.4 MB, free: 9.875 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.002215/0.002215, allocations: 64.12 kB / 448.5 MB, free: 14.61 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1234, allocations: 55.46 MB / 0.4921 GB, free: 7.066 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.01541/0.1388, allocations: 11.15 MB / 0.503 GB, free: 11.86 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007816/0.1466, allocations: 3.423 MB / 0.5063 GB, free: 8.43 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002436/0.149, allocations: 63.75 kB / 0.5064 GB, free: 8.367 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002866/0.1519, allocations: 0.7847 MB / 0.5072 GB, free: 7.578 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006419/0.1583, allocations: 2.089 MB / 0.5092 GB, free: 5.48 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008163/0.1591, allocations: 143.8 kB / 0.5094 GB, free: 5.34 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006622/0.1657, allocations: 4.054 MB / 0.5133 GB, free: 1.281 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.252/0.4177, allocations: 2.052 MB / 0.5153 GB, free: 7.766 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002666/0.4204, allocations: 1.435 MB / 0.5167 GB, free: 7.648 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002833/0.4232, allocations: 2.204 MB / 0.5189 GB, free: 7.348 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008752/0.4241, allocations: 318.2 kB / 0.5192 GB, free: 7.348 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001797/0.4259, allocations: 0.8224 MB / 0.52 GB, free: 7.348 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001855/0.4277, allocations: 1.912 MB / 0.5218 GB, free: 7.07 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002239/0.43, allocations: 1.694 MB / 0.5235 GB, free: 6.367 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01199/0.442, allocations: 7.655 MB / 0.531 GB, free: 5.023 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.442, allocations: 0 / 0.531 GB, free: 5.023 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.442, allocations: 0 / 0.531 GB, free: 5.023 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002778/0.4422, allocations: 0 / 0.531 GB, free: 5.023 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.4731, allocations: 7.18 MB / 0.538 GB, free: 2.785 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.456e-05/0.4731, allocations: 9.438 kB / 0.538 GB, free: 2.785 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002788/0.4734, allocations: 117.5 kB / 0.5381 GB, free: 2.777 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003576/0.477, allocations: 0.8823 MB / 0.539 GB, free: 2.512 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01335/0.4903, allocations: 3.287 MB / 0.5422 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00643/0.4968, allocations: 2.033 MB / 0.5442 GB, free: 15.78 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002841/0.497, allocations: 244.4 kB / 0.5444 GB, free: 15.72 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001427/0.4985, allocations: 305.1 kB / 0.5447 GB, free: 15.67 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02586/0.5243, allocations: 13.44 MB / 0.5578 GB, free: 7.055 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001451/0.5245, allocations: 54.77 kB / 0.5579 GB, free: 7.027 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006179/0.5251, allocations: 162.7 kB / 0.558 GB, free: 6.93 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005787/0.5309, allocations: 3.085 MB / 0.561 GB, free: 3.887 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02839/0.5593, allocations: 11.94 MB / 0.5727 GB, free: 8.18 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07438/0.6336, allocations: 45.71 MB / 0.6173 GB, free: 9.871 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01284/0.6465, allocations: 2.752 MB / 0.62 GB, free: 7.109 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002626/0.6491, allocations: 1.286 MB / 0.6213 GB, free: 5.816 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01514/0.6642, allocations: 5.997 MB / 0.6271 GB, free: 15.85 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.915e-05/0.6643, allocations: 50.75 kB / 0.6272 GB, free: 15.79 MB / 478.1 MB Notification: Performance of pre-optimization done (n=202): time 6.492e-06/0.6643, allocations: 0 / 0.6272 GB, free: 15.79 MB / 478.1 MB Notification: Performance of matching and sorting (n=211): time 0.02371/0.688, allocations: 10.37 MB / 0.6373 GB, free: 5.383 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000132/0.6881, allocations: 152.3 kB / 0.6374 GB, free: 5.203 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0094/0.6975, allocations: 5.147 MB / 0.6425 GB, free: 56 kB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003422/0.6979, allocations: 52.67 kB / 0.6425 GB, free: 0 / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003691/0.7016, allocations: 4.102 MB / 0.6465 GB, free: 11.92 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001265/0.7028, allocations: 0.8622 MB / 0.6474 GB, free: 11.07 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002708/0.7056, allocations: 1.618 MB / 0.649 GB, free: 9.445 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001419/0.7057, allocations: 301.1 kB / 0.6492 GB, free: 9.148 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0044/0.7101, allocations: 2.241 MB / 0.6514 GB, free: 6.902 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01015/0.7202, allocations: 7.327 MB / 0.6586 GB, free: 13.13 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01557/0.7358, allocations: 10.39 MB / 0.6687 GB, free: 344 kB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002873/0.7361, allocations: 53.16 kB / 0.6688 GB, free: 292 kB / 0.4981 GB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.02392/0.76, allocations: 9.209 MB / 0.6778 GB, free: 7.086 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003107/0.7603, allocations: 84.09 kB / 0.6779 GB, free: 7.004 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004482/0.7608, allocations: 183.9 kB / 0.678 GB, free: 6.824 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003767/0.7612, allocations: 240 kB / 0.6783 GB, free: 6.59 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007063/0.7682, allocations: 1.841 MB / 0.6801 GB, free: 4.746 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000426/0.7686, allocations: 362.5 kB / 0.6804 GB, free: 4.391 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006557/0.7752, allocations: 374.4 kB / 0.6808 GB, free: 4.027 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001834/0.777, allocations: 0.496 MB / 0.6812 GB, free: 3.531 MB / 0.5137 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.00772/0.7848, allocations: 2.65 MB / 0.6838 GB, free: 0.8711 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001339/0.7861, allocations: 441 kB / 0.6843 GB, free: 448 kB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00545/0.7915, allocations: 1.975 MB / 0.6862 GB, free: 14.49 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001544/0.7917, allocations: 38.64 kB / 0.6862 GB, free: 14.45 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.701e-05/0.7917, allocations: 0 / 0.6862 GB, free: 14.45 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.74e-05/0.7917, allocations: 11.97 kB / 0.6862 GB, free: 14.44 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02069/0.8124, allocations: 7.389 MB / 0.6934 GB, free: 6.859 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.762e-05/0.8125, allocations: 12 kB / 0.6935 GB, free: 6.848 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001279/0.8137, allocations: 311.4 kB / 0.6938 GB, free: 6.543 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000194/0.8139, allocations: 37.36 kB / 0.6938 GB, free: 6.504 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001534/0.8141, allocations: 59.72 kB / 0.6938 GB, free: 6.449 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001363/0.8154, allocations: 1.287 MB / 0.6951 GB, free: 5.043 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.811e-05/0.8155, allocations: 19.94 kB / 0.6951 GB, free: 5.023 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006737/0.8222, allocations: 4.396 MB / 0.6994 GB, free: 448 kB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002515/0.8247, allocations: 0.6239 MB / 0.7 GB, free: 15.81 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001652/0.8264, allocations: 51.03 kB / 0.7001 GB, free: 15.77 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002098/0.8285, allocations: 72 kB / 0.7001 GB, free: 15.7 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003098/0.8288, allocations: 159.9 kB / 0.7003 GB, free: 15.54 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001603/0.8289, allocations: 83.03 kB / 0.7004 GB, free: 15.46 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.007735/0.8367, allocations: 3.206 MB / 0.7035 GB, free: 12.27 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.4e-07/0.8367, allocations: 0 / 0.7035 GB, free: 12.27 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008259/0.8449, allocations: 1.077 MB / 0.7046 GB, free: 11.19 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.007832/0.8528, allocations: 5.099 MB / 0.7095 GB, free: 5.891 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01074/0.8635, allocations: 5.011 MB / 0.7144 GB, free: 0.9219 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.669e-05/0.8635, allocations: 192 / 0.7144 GB, free: 0.9219 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002457/0.866, allocations: 1.161 MB / 0.7156 GB, free: 15.75 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004048/0.87, allocations: 0.5427 MB / 0.7161 GB, free: 15.21 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3738/1.244, allocations: 54.32 MB / 0.7691 GB, free: 166.3 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004563/1.248, allocations: 3.244 MB / 0.7723 GB, free: 165.4 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.005539/1.254, allocations: 2.451 MB / 0.7747 GB, free: 164.5 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003703/1.258, allocations: 2.195 MB / 0.7768 GB, free: 162.6 MB / 0.5606 GB Notification: Performance of SimCode: time 1.884e-06/1.258, allocations: 0 / 0.7768 GB, free: 162.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1229/1.381, allocations: 70.21 MB / 0.8454 GB, free: 93.43 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.73/29.11, allocations: 7.812 kB / 0.8454 GB, free: 93.42 MB / 0.5606 GB " [Timeout remaining time 631] (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: 32.26146792108193] Failed to read output from testmodel.py, exit status != 0: 29.32554604904726 29.34320942 28.89783704 Calling exit ...