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.001347/0.001347, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001521/0.001521, allocations: 214.7 kB / 22.25 MB, free: 5.082 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.436/1.436, allocations: 230.6 MB / 256 MB, free: 7.992 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.0504/0.0504, allocations: 9.238 MB / 321.7 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.GearComponents.Examples.SpurGear,fileNamePrefix="PlanarMechanics_PlanarMechanics_GearComponents_Examples_SpurGear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.GearComponents.Examples.SpurGear,fileNamePrefix="PlanarMechanics_PlanarMechanics_GearComponents_Examples_SpurGear",fmuType="me",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.001981/0.001981, allocations: 67.91 kB / 447.8 MB, free: 15.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09829/0.1003, allocations: 55.47 MB / 0.4914 GB, free: 7.5 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.01602/0.1163, allocations: 12.98 MB / 0.5041 GB, free: 10.46 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007153/0.1234, allocations: 3.629 MB / 0.5077 GB, free: 6.82 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001479/0.1249, allocations: 63.75 kB / 0.5077 GB, free: 6.758 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001892/0.1268, allocations: 0.7846 MB / 0.5085 GB, free: 5.969 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004638/0.1314, allocations: 2.089 MB / 0.5105 GB, free: 3.871 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005225/0.132, allocations: 143.8 kB / 0.5107 GB, free: 3.73 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.1949/0.3269, allocations: 4.047 MB / 0.5146 GB, free: 7.875 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002735/0.3296, allocations: 2.054 MB / 0.5166 GB, free: 7.785 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001729/0.3313, allocations: 1.437 MB / 0.518 GB, free: 7.559 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002325/0.3337, allocations: 2.205 MB / 0.5202 GB, free: 7.258 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005044/0.3342, allocations: 321.2 kB / 0.5205 GB, free: 7.258 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00155/0.3357, allocations: 0.9334 MB / 0.5214 GB, free: 7.258 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001563/0.3373, allocations: 1.911 MB / 0.5233 GB, free: 6.98 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001756/0.339, allocations: 2.428 MB / 0.5256 GB, free: 6.043 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008265/0.3473, allocations: 7.624 MB / 0.5331 GB, free: 4.652 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.3473, allocations: 1.125 kB / 0.5331 GB, free: 4.652 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3473, allocations: 0.5312 kB / 0.5331 GB, free: 4.652 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001945/0.3475, allocations: 0 / 0.5331 GB, free: 4.652 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.02354/0.371, allocations: 7.173 MB / 0.5401 GB, free: 1.035 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.3711, allocations: 13.67 kB / 0.5401 GB, free: 1.031 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001017/0.3721, allocations: 0.8832 MB / 0.541 GB, free: 496 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01131/0.3834, allocations: 3.291 MB / 0.5442 GB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004503/0.3879, allocations: 2.006 MB / 0.5461 GB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000236/0.3881, allocations: 236 kB / 0.5464 GB, free: 13.52 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006419/0.3888, allocations: 317.2 kB / 0.5467 GB, free: 13.46 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02169/0.4105, allocations: 13.45 MB / 0.5598 GB, free: 3.934 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001198/0.4106, allocations: 52.22 kB / 0.5598 GB, free: 3.906 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004716/0.4111, allocations: 156.8 kB / 0.56 GB, free: 3.812 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005106/0.4162, allocations: 3.092 MB / 0.563 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02347/0.4396, allocations: 11.94 MB / 0.5747 GB, free: 5.051 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06751/0.5072, allocations: 47.75 MB / 0.6213 GB, free: 4.691 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01142/0.5186, allocations: 2.753 MB / 0.624 GB, free: 1.922 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002462/0.521, allocations: 1.292 MB / 0.6252 GB, free: 0.6211 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01396/0.535, allocations: 6.373 MB / 0.6315 GB, free: 10.3 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.787e-05/0.5351, allocations: 50.84 kB / 0.6315 GB, free: 10.24 MB / 478.1 MB Notification: Performance of pre-optimization done (n=202): time 3.867e-06/0.5351, allocations: 0 / 0.6315 GB, free: 10.24 MB / 478.1 MB Notification: Performance of matching and sorting (n=211): time 0.02196/0.557, allocations: 10.36 MB / 0.6416 GB, free: 15.84 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00011/0.5571, allocations: 149.8 kB / 0.6418 GB, free: 15.66 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009537/0.5667, allocations: 5.15 MB / 0.6468 GB, free: 10.52 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001114/0.5668, allocations: 53.45 kB / 0.6469 GB, free: 10.46 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003536/0.5703, allocations: 4.099 MB / 0.6509 GB, free: 6.387 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009107/0.5712, allocations: 0.8694 MB / 0.6517 GB, free: 5.527 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002585/0.5738, allocations: 1.61 MB / 0.6533 GB, free: 3.91 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000124/0.5739, allocations: 305.1 kB / 0.6536 GB, free: 3.609 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004049/0.578, allocations: 2.241 MB / 0.6558 GB, free: 1.363 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008161/0.5861, allocations: 7.324 MB / 0.6629 GB, free: 7.59 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01264/0.5988, allocations: 10.39 MB / 0.6731 GB, free: 10.78 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001123/0.5989, allocations: 52 kB / 0.6731 GB, free: 10.73 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.0151/0.614, allocations: 9.211 MB / 0.6821 GB, free: 1.531 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001219/0.6141, allocations: 84 kB / 0.6822 GB, free: 1.449 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002301/0.6143, allocations: 180.8 kB / 0.6824 GB, free: 1.273 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002512/0.6146, allocations: 240 kB / 0.6826 GB, free: 1.039 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005349/0.6199, allocations: 1.841 MB / 0.6844 GB, free: 15.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003166/0.6203, allocations: 358.5 kB / 0.6847 GB, free: 14.84 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004476/0.6247, allocations: 379.7 kB / 0.6851 GB, free: 14.48 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006461/0.6254, allocations: 0.496 MB / 0.6856 GB, free: 13.98 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.004232/0.6296, allocations: 2.646 MB / 0.6882 GB, free: 11.32 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008245/0.6304, allocations: 445 kB / 0.6886 GB, free: 10.89 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003605/0.634, allocations: 1.968 MB / 0.6905 GB, free: 8.906 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001118/0.6342, allocations: 34.95 kB / 0.6905 GB, free: 8.875 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.098e-05/0.6342, allocations: 8 kB / 0.6905 GB, free: 8.867 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.571e-05/0.6342, allocations: 7.969 kB / 0.6906 GB, free: 8.859 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01445/0.6486, allocations: 7.709 MB / 0.6981 GB, free: 0.957 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.359e-05/0.6487, allocations: 12 kB / 0.6981 GB, free: 0.9453 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001171/0.6498, allocations: 304.2 kB / 0.6984 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001379/0.65, allocations: 44.8 kB / 0.6984 GB, free: 0.6016 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002889/0.6503, allocations: 59.09 kB / 0.6985 GB, free: 0.5469 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001163/0.6514, allocations: 1.29 MB / 0.6997 GB, free: 15.14 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.374e-05/0.6514, allocations: 15.94 kB / 0.6998 GB, free: 15.13 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006128/0.6576, allocations: 4.404 MB / 0.7041 GB, free: 10.53 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00164/0.6592, allocations: 0.6218 MB / 0.7047 GB, free: 9.902 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000576/0.6598, allocations: 47.05 kB / 0.7047 GB, free: 9.859 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001565/0.6613, allocations: 67.94 kB / 0.7048 GB, free: 9.793 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002805/0.6616, allocations: 160.1 kB / 0.7049 GB, free: 9.637 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000134/0.6618, allocations: 75.42 kB / 0.705 GB, free: 9.566 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005189/0.6669, allocations: 3.21 MB / 0.7081 GB, free: 6.363 MB / 0.545 GB Notification: Performance of sort global known variables: time 1e-07/0.6669, allocations: 0 / 0.7081 GB, free: 6.363 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005342/0.6723, allocations: 1.07 MB / 0.7092 GB, free: 5.293 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.006588/0.6789, allocations: 5.108 MB / 0.7142 GB, free: 15.99 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.00821/0.6871, allocations: 5.008 MB / 0.7191 GB, free: 11.02 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.255e-06/0.6871, allocations: 8.938 kB / 0.7191 GB, free: 11.01 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001914/0.689, allocations: 1.154 MB / 0.7202 GB, free: 9.848 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002899/0.6919, allocations: 0.5606 MB / 0.7207 GB, free: 9.297 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2484/0.9403, allocations: 54.31 MB / 0.7738 GB, free: 164.5 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003135/0.9434, allocations: 3.769 MB / 0.7775 GB, free: 163.1 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004218/0.9476, allocations: 2.447 MB / 0.7799 GB, free: 162.1 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002036/0.9497, allocations: 2.198 MB / 0.782 GB, free: 160.2 MB / 0.5606 GB Notification: Performance of SimCode: time 7.41e-07/0.9497, allocations: 4 kB / 0.782 GB, free: 160.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1099/1.06, allocations: 74.16 MB / 0.8544 GB, free: 87.27 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.16/27.22, allocations: 4.062 kB / 0.8544 GB, free: 87.27 MB / 0.5606 GB " [Timeout remaining time 633] (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: 29.85558491293341] Failed to read output from testmodel.py, exit status != 0: 27.37710646004416 27.389737316 27.039851216 Calling exit ...