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.001358/0.001358, allocations: 115.6 kB / 17.16 MB, free: 5.895 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.001477/0.001477, allocations: 215 kB / 20.13 MB, free: 2.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.51/1.51, allocations: 230.6 MB / 253.5 MB, free: 15.11 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.04966/0.04966, allocations: 9.233 MB / 318.8 MB, free: 15.55 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.002103/0.002103, allocations: 68.59 kB / 443.3 MB, free: 39.35 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1032, allocations: 55.43 MB / 498.7 MB, free: 6.625 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.01418/0.1174, allocations: 12.95 MB / 0.4996 GB, free: 9.613 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009406/0.1268, allocations: 3.606 MB / 0.5032 GB, free: 5.992 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002666/0.1295, allocations: 67.81 kB / 0.5032 GB, free: 5.926 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00261/0.1321, allocations: 0.7885 MB / 0.504 GB, free: 5.133 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006395/0.1385, allocations: 2.068 MB / 0.506 GB, free: 3.059 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008032/0.1393, allocations: 143.8 kB / 0.5062 GB, free: 2.918 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006729/0.146, allocations: 4.06 MB / 0.5101 GB, free: 14.85 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003465/0.1495, allocations: 1.756 MB / 0.5118 GB, free: 13.06 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003527/0.153, allocations: 1.436 MB / 0.5132 GB, free: 11.62 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004403/0.1574, allocations: 2.211 MB / 0.5154 GB, free: 9.402 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001426/0.1588, allocations: 320 kB / 0.5157 GB, free: 9.09 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00338/0.1622, allocations: 0.9323 MB / 0.5166 GB, free: 8.156 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003856/0.1661, allocations: 1.916 MB / 0.5185 GB, free: 6.234 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00525/0.1713, allocations: 2.43 MB / 0.5209 GB, free: 3.785 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0112/0.1825, allocations: 7.62 MB / 0.5283 GB, free: 12.13 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.1825, allocations: 0 / 0.5283 GB, free: 12.13 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1825, allocations: 0 / 0.5283 GB, free: 12.13 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003096/0.1828, allocations: 8 kB / 0.5283 GB, free: 12.12 MB / 398.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.03001/0.2128, allocations: 7.245 MB / 0.5354 GB, free: 4.797 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.905e-05/0.2129, allocations: 12.03 kB / 0.5354 GB, free: 4.785 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002055/0.2131, allocations: 114.1 kB / 0.5355 GB, free: 4.672 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003344/0.2164, allocations: 0.8829 MB / 0.5364 GB, free: 3.777 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01393/0.2304, allocations: 3.289 MB / 0.5396 GB, free: 492 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006351/0.2367, allocations: 2.082 MB / 0.5416 GB, free: 14.34 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003515/0.2371, allocations: 237.7 kB / 0.5418 GB, free: 14.11 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001788/0.2389, allocations: 303.7 kB / 0.5421 GB, free: 13.81 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02826/0.2671, allocations: 13.45 MB / 0.5553 GB, free: 15.48 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001882/0.2673, allocations: 51.52 kB / 0.5553 GB, free: 15.43 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0012/0.2685, allocations: 163.8 kB / 0.5555 GB, free: 15.27 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005841/0.2744, allocations: 3.08 MB / 0.5585 GB, free: 12.19 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02829/0.3026, allocations: 11.95 MB / 0.5701 GB, free: 232 kB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3418/0.6444, allocations: 47.88 MB / 0.6169 GB, free: 50.73 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01237/0.6568, allocations: 3.663 MB / 0.6205 GB, free: 48.83 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003041/0.6598, allocations: 1.283 MB / 0.6217 GB, free: 48.39 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01628/0.6761, allocations: 9.212 MB / 0.6307 GB, free: 41.39 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.278e-05/0.6762, allocations: 61.41 kB / 0.6308 GB, free: 41.34 MB / 446.1 MB Notification: Performance of pre-optimization done (n=202): time 6.562e-06/0.6762, allocations: 2.016 kB / 0.6308 GB, free: 41.34 MB / 446.1 MB Notification: Performance of matching and sorting (n=211): time 0.02083/0.697, allocations: 10.51 MB / 0.641 GB, free: 34.41 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.587e-05/0.697, allocations: 149.3 kB / 0.6412 GB, free: 34.23 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006712/0.7038, allocations: 5.162 MB / 0.6462 GB, free: 29.18 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002853/0.704, allocations: 53.53 kB / 0.6463 GB, free: 29.13 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001965/0.706, allocations: 4.095 MB / 0.6503 GB, free: 25.14 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007801/0.7068, allocations: 0.8658 MB / 0.6511 GB, free: 24.29 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002131/0.7089, allocations: 1.615 MB / 0.6527 GB, free: 22.66 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.241e-05/0.709, allocations: 301.1 kB / 0.653 GB, free: 22.37 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003395/0.7124, allocations: 2.245 MB / 0.6552 GB, free: 20.12 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005598/0.7179, allocations: 7.319 MB / 0.6623 GB, free: 10.32 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01051/0.7285, allocations: 10.39 MB / 0.6725 GB, free: 13.4 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001719/0.7286, allocations: 48 kB / 0.6725 GB, free: 13.36 MB / 462.1 MB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.02256/0.7512, allocations: 9.209 MB / 0.6815 GB, free: 4.152 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001527/0.7514, allocations: 86.5 kB / 0.6816 GB, free: 4.07 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002902/0.7516, allocations: 180.2 kB / 0.6818 GB, free: 3.895 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002696/0.7519, allocations: 236 kB / 0.682 GB, free: 3.664 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006491/0.7584, allocations: 1.841 MB / 0.6838 GB, free: 1.82 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004442/0.7588, allocations: 366.7 kB / 0.6841 GB, free: 1.461 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005988/0.7648, allocations: 375.7 kB / 0.6845 GB, free: 1.094 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001324/0.7662, allocations: 0.4994 MB / 0.685 GB, free: 0.5977 MB / 462.1 MB 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.005385/0.7715, allocations: 2.651 MB / 0.6876 GB, free: 13.94 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001134/0.7727, allocations: 437 kB / 0.688 GB, free: 13.51 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004835/0.7775, allocations: 1.967 MB / 0.6899 GB, free: 11.53 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001518/0.7777, allocations: 35.97 kB / 0.6899 GB, free: 11.5 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.862e-05/0.7777, allocations: 4 kB / 0.6899 GB, free: 11.49 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.573e-05/0.7777, allocations: 7.969 kB / 0.69 GB, free: 11.48 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01932/0.797, allocations: 7.748 MB / 0.6975 GB, free: 3.531 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.911e-05/0.7971, allocations: 12 kB / 0.6975 GB, free: 3.52 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001455/0.7985, allocations: 304.4 kB / 0.6978 GB, free: 3.223 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002124/0.7987, allocations: 37.3 kB / 0.6979 GB, free: 3.184 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002608/0.799, allocations: 61.92 kB / 0.6979 GB, free: 3.125 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001394/0.8004, allocations: 1.393 MB / 0.6993 GB, free: 1.594 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.937e-05/0.8004, allocations: 19.94 kB / 0.6993 GB, free: 1.574 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007771/0.8082, allocations: 4.406 MB / 0.7036 GB, free: 12.98 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002199/0.8104, allocations: 0.701 MB / 0.7043 GB, free: 12.25 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001167/0.8116, allocations: 45.94 kB / 0.7043 GB, free: 12.21 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002382/0.8139, allocations: 71.94 kB / 0.7044 GB, free: 12.14 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004386/0.8144, allocations: 146.2 kB / 0.7045 GB, free: 12 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002839/0.8147, allocations: 86.45 kB / 0.7046 GB, free: 11.92 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00828/0.8229, allocations: 3.206 MB / 0.7078 GB, free: 8.719 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.8229, allocations: 0 / 0.7078 GB, free: 8.719 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.008689/0.8316, allocations: 1.072 MB / 0.7088 GB, free: 7.648 MB / 494.1 MB 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.009104/0.8407, allocations: 5.111 MB / 0.7138 GB, free: 2.336 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.009869/0.8506, allocations: 4.999 MB / 0.7187 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.096e-05/0.8506, allocations: 5.812 kB / 0.7187 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002391/0.853, allocations: 1.155 MB / 0.7198 GB, free: 12.22 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004818/0.8578, allocations: 0.5697 MB / 0.7204 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1043/0.9622, allocations: 54.32 MB / 0.7734 GB, free: 13.35 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008899/0.9711, allocations: 3.77 MB / 0.7771 GB, free: 9.562 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.007283/0.9783, allocations: 2.448 MB / 0.7795 GB, free: 7.117 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004759/0.9831, allocations: 2.202 MB / 0.7816 GB, free: 4.914 MB / 0.5606 GB Notification: Performance of SimCode: time 1.462e-06/0.9831, allocations: 4 kB / 0.7816 GB, free: 4.91 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3844/1.368, allocations: 71.44 MB / 0.8514 GB, free: 182.2 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.27/26.64, allocations: 8 kB / 0.8514 GB, free: 182.2 MB / 0.5762 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.744600479025394] Failed to read output from testmodel.py, exit status != 0: 26.843915904988535 26.865075577 26.678310004 Calling exit ...