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.001331/0.001331, allocations: 102.5 kB / 16.45 MB, free: 6.449 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.001431/0.001431, allocations: 206.4 kB / 19.42 MB, free: 3.641 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 / 252.8 MB, free: 8.953 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.04903/0.04903, allocations: 9.227 MB / 318.1 MB, free: 11.21 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.001993/0.001993, allocations: 69.78 kB / 442.6 MB, free: 2.523 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.121, allocations: 55.42 MB / 498 MB, free: 11.02 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.01604/0.1371, allocations: 12.95 MB / 0.499 GB, free: 14 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.009492/0.1466, allocations: 3.602 MB / 0.5025 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0028/0.1494, allocations: 63.81 kB / 0.5025 GB, free: 10.32 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002598/0.152, allocations: 0.7924 MB / 0.5033 GB, free: 9.527 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006506/0.1585, allocations: 2.073 MB / 0.5053 GB, free: 7.445 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001002/0.1595, allocations: 135.8 kB / 0.5055 GB, free: 7.312 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007345/0.1668, allocations: 4.064 MB / 0.5094 GB, free: 3.242 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003177/0.17, allocations: 1.775 MB / 0.5112 GB, free: 1.438 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002976/0.173, allocations: 1.432 MB / 0.5126 GB, free: 0 / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.251/0.424, allocations: 2.193 MB / 0.5147 GB, free: 7.328 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001264/0.4252, allocations: 320.1 kB / 0.515 GB, free: 7.328 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002575/0.4278, allocations: 0.934 MB / 0.5159 GB, free: 7.328 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00256/0.4304, allocations: 1.912 MB / 0.5178 GB, free: 7.047 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004789/0.4351, allocations: 2.423 MB / 0.5202 GB, free: 6.113 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01104/0.4462, allocations: 7.624 MB / 0.5276 GB, free: 4.762 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.4462, allocations: 1.688 kB / 0.5276 GB, free: 4.762 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.4462, allocations: 0 / 0.5276 GB, free: 4.762 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002787/0.4465, allocations: 1.031 kB / 0.5276 GB, free: 4.762 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.03049/0.477, allocations: 7.252 MB / 0.5347 GB, free: 2.496 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.088e-05/0.477, allocations: 10.53 kB / 0.5347 GB, free: 2.496 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003503/0.4805, allocations: 0.8827 MB / 0.5356 GB, free: 2.41 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01285/0.4934, allocations: 3.293 MB / 0.5388 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006493/0.4999, allocations: 2.076 MB / 0.5408 GB, free: 15.98 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004305/0.5003, allocations: 236.5 kB / 0.541 GB, free: 15.92 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002277/0.5026, allocations: 307.9 kB / 0.5413 GB, free: 15.87 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02937/0.532, allocations: 13.45 MB / 0.5545 GB, free: 7.539 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002284/0.5322, allocations: 56.8 kB / 0.5545 GB, free: 7.508 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001287/0.5335, allocations: 157.5 kB / 0.5547 GB, free: 7.414 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006306/0.5398, allocations: 3.093 MB / 0.5577 GB, free: 4.363 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03059/0.5704, allocations: 11.93 MB / 0.5693 GB, free: 8.668 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07982/0.6502, allocations: 47.88 MB / 0.6161 GB, free: 8.18 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01329/0.6635, allocations: 3.653 MB / 0.6197 GB, free: 4.289 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003073/0.6665, allocations: 1.289 MB / 0.6209 GB, free: 3 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01642/0.683, allocations: 9.238 MB / 0.6299 GB, free: 9.078 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.311e-05/0.683, allocations: 54.84 kB / 0.63 GB, free: 9.02 MB / 478.1 MB Notification: Performance of pre-optimization done (n=202): time 5.25e-06/0.683, allocations: 0 / 0.63 GB, free: 9.02 MB / 478.1 MB Notification: Performance of matching and sorting (n=211): time 0.0228/0.7058, allocations: 10.5 MB / 0.6402 GB, free: 14.43 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001119/0.7059, allocations: 157 kB / 0.6404 GB, free: 14.25 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009528/0.7155, allocations: 5.147 MB / 0.6454 GB, free: 9.102 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003588/0.7158, allocations: 49.7 kB / 0.6455 GB, free: 9.047 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003636/0.7195, allocations: 4.097 MB / 0.6495 GB, free: 4.977 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001392/0.7208, allocations: 0.8717 MB / 0.6503 GB, free: 4.117 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003092/0.7239, allocations: 1.615 MB / 0.6519 GB, free: 2.496 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.7241, allocations: 302.1 kB / 0.6522 GB, free: 2.199 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004457/0.7285, allocations: 2.245 MB / 0.6544 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009509/0.738, allocations: 7.323 MB / 0.6615 GB, free: 6.18 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01451/0.7525, allocations: 10.39 MB / 0.6717 GB, free: 9.582 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002194/0.7528, allocations: 52 kB / 0.6717 GB, free: 9.531 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.024/0.7768, allocations: 9.214 MB / 0.6807 GB, free: 336 kB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002778/0.777, allocations: 87.28 kB / 0.6808 GB, free: 252 kB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004528/0.7775, allocations: 180.8 kB / 0.681 GB, free: 72 kB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004642/0.778, allocations: 240 kB / 0.6812 GB, free: 15.83 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007394/0.7854, allocations: 1.841 MB / 0.683 GB, free: 13.99 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005121/0.7859, allocations: 358.6 kB / 0.6833 GB, free: 13.64 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00656/0.7924, allocations: 378.5 kB / 0.6837 GB, free: 13.27 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002009/0.7944, allocations: 0.496 MB / 0.6842 GB, free: 12.78 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.007088/0.8015, allocations: 2.649 MB / 0.6868 GB, free: 10.12 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001186/0.8027, allocations: 441 kB / 0.6872 GB, free: 9.684 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004952/0.8077, allocations: 1.973 MB / 0.6891 GB, free: 7.703 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001312/0.8078, allocations: 31.98 kB / 0.6892 GB, free: 7.672 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.774e-05/0.8078, allocations: 4 kB / 0.6892 GB, free: 7.668 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.065e-05/0.8078, allocations: 11.97 kB / 0.6892 GB, free: 7.656 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02593/0.8338, allocations: 7.74 MB / 0.6967 GB, free: 15.71 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.97e-05/0.8338, allocations: 16 kB / 0.6967 GB, free: 15.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001345/0.8351, allocations: 307.4 kB / 0.697 GB, free: 15.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001702/0.8353, allocations: 37.38 kB / 0.6971 GB, free: 15.36 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002327/0.8355, allocations: 55.98 kB / 0.6971 GB, free: 15.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001281/0.8368, allocations: 1.395 MB / 0.6985 GB, free: 13.77 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-05/0.8368, allocations: 19.94 kB / 0.6985 GB, free: 13.75 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007297/0.8441, allocations: 4.41 MB / 0.7028 GB, free: 9.16 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002231/0.8464, allocations: 0.7009 MB / 0.7035 GB, free: 8.438 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001099/0.8475, allocations: 46.64 kB / 0.7035 GB, free: 8.395 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002125/0.8496, allocations: 71.94 kB / 0.7036 GB, free: 8.324 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003357/0.8499, allocations: 144.2 kB / 0.7037 GB, free: 8.184 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000183/0.8501, allocations: 87.56 kB / 0.7038 GB, free: 8.102 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.008397/0.8585, allocations: 3.206 MB / 0.707 GB, free: 4.902 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.7e-07/0.8585, allocations: 0 / 0.707 GB, free: 4.902 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008769/0.8673, allocations: 1.07 MB / 0.708 GB, free: 3.832 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.008703/0.876, allocations: 5.108 MB / 0.713 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01049/0.8865, allocations: 5.007 MB / 0.7179 GB, free: 9.551 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.047e-05/0.8865, allocations: 4 kB / 0.7179 GB, free: 9.547 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.00251/0.889, allocations: 1.164 MB / 0.719 GB, free: 8.375 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005253/0.8943, allocations: 0.5544 MB / 0.7196 GB, free: 7.828 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.338/1.232, allocations: 54.3 MB / 0.7726 GB, free: 165.7 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007359/1.24, allocations: 3.769 MB / 0.7763 GB, free: 163.8 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.005983/1.246, allocations: 2.453 MB / 0.7787 GB, free: 162.5 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00441/1.25, allocations: 2.198 MB / 0.7808 GB, free: 160.3 MB / 0.5606 GB Notification: Performance of SimCode: time 1.242e-06/1.25, allocations: 0 / 0.7808 GB, free: 160.3 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1207/1.371, allocations: 71.41 MB / 0.8506 GB, free: 89.37 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.12/25.49, allocations: 10.98 kB / 0.8506 GB, free: 89.36 MB / 0.5606 GB " [Timeout remaining time 634] (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 & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 PlanarMechanics_PlanarMechanics_GearComponents_Examples_SpurGear.fmu > PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 28.384936823989847] Failed to read output from testmodel.py, exit status != 0: 25.634902947000228 25.649355727 25.20051867 Calling exit ...