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.0008/0.0008, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 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.001099/0.001099, allocations: 165.9 kB / 22.45 MB, free: 2.113 MB / 18.57 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 0.9039/0.9039, allocations: 177.2 MB / 202.8 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] 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.03099/0.03099, allocations: 7.124 MB / 266.3 MB, free: 6.312 MB / 250.7 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: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 392.4 MB, free: 3.969 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.972e-05/2.13e-05, allocations: 2.281 kB / 392.4 MB, free: 3.965 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.009491/0.009512, allocations: 11.22 MB / 403.6 MB, free: 8.691 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.007293/0.0168, allocations: 3.45 MB / 407.1 MB, free: 5.227 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00206/0.01886, allocations: 63.81 kB / 407.1 MB, free: 5.164 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001755/0.02062, allocations: 0.7844 MB / 407.9 MB, free: 4.375 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0046/0.02522, allocations: 2.146 MB / 410.1 MB, free: 2.219 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007899/0.02601, allocations: 139.7 kB / 410.2 MB, free: 2.082 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.1841/0.2101, allocations: 4.144 MB / 414.4 MB, free: 15.49 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003409/0.2135, allocations: 2.068 MB / 416.4 MB, free: 15.29 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00492/0.2185, allocations: 2.139 MB / 418.6 MB, free: 15.09 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003712/0.2222, allocations: 2.052 MB / 420.6 MB, free: 14.92 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001074/0.2232, allocations: 318.6 kB / 420.9 MB, free: 14.92 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001992/0.2252, allocations: 0.9046 MB / 421.8 MB, free: 14.91 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001844/0.2271, allocations: 1.976 MB / 423.8 MB, free: 14.49 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002156/0.2292, allocations: 1.238 MB / 425 MB, free: 13.92 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009514/0.2388, allocations: 7.517 MB / 432.6 MB, free: 10.71 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.985e-06/0.2388, allocations: 3.125 kB / 432.6 MB, free: 10.71 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.2388, allocations: 0.75 kB / 432.6 MB, free: 10.71 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.000331/0.2391, allocations: 0 / 432.6 MB, free: 10.71 MB / 330.7 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.01821/0.2573, allocations: 7.165 MB / 439.7 MB, free: 6.223 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.929e-05/0.2574, allocations: 10.41 kB / 439.7 MB, free: 6.223 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001979/0.2593, allocations: 0.8828 MB / 440.6 MB, free: 5.672 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006743/0.2661, allocations: 3.36 MB / 444 MB, free: 3.789 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00406/0.2701, allocations: 2.03 MB / 446 MB, free: 1.926 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001757/0.2703, allocations: 235.1 kB / 446.2 MB, free: 1.754 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001071/0.2714, allocations: 314.6 kB / 446.5 MB, free: 1.504 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01884/0.2902, allocations: 13.45 MB / 460 MB, free: 3.465 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001282/0.2904, allocations: 53.06 kB / 460 MB, free: 3.438 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004374/0.2908, allocations: 159.3 kB / 460.2 MB, free: 3.344 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003483/0.2943, allocations: 3.085 MB / 463.3 MB, free: 308 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02022/0.3145, allocations: 11.88 MB / 475.2 MB, free: 4.652 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05192/0.3664, allocations: 45.73 MB / 0.5087 GB, free: 6.184 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007505/0.3739, allocations: 2.884 MB / 0.5115 GB, free: 3.266 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002105/0.376, allocations: 1.271 MB / 0.5127 GB, free: 1.988 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00971/0.3857, allocations: 6.093 MB / 0.5187 GB, free: 11.92 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.963e-05/0.3858, allocations: 59.5 kB / 0.5187 GB, free: 11.86 MB / 426.7 MB Notification: Performance of pre-optimization done (n=202): time 5.711e-06/0.3858, allocations: 0 / 0.5187 GB, free: 11.86 MB / 426.7 MB Notification: Performance of matching and sorting (n=211): time 0.01694/0.4027, allocations: 10.52 MB / 0.529 GB, free: 1.273 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.556e-05/0.4028, allocations: 153.8 kB / 0.5292 GB, free: 1.09 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007079/0.4099, allocations: 5.452 MB / 0.5345 GB, free: 11.63 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003538/0.4102, allocations: 56.75 kB / 0.5345 GB, free: 11.57 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003035/0.4133, allocations: 4.053 MB / 0.5385 GB, free: 7.547 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001064/0.4143, allocations: 0.8491 MB / 0.5393 GB, free: 6.707 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002604/0.4169, allocations: 1.591 MB / 0.5409 GB, free: 5.109 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.163e-05/0.417, allocations: 309.1 kB / 0.5412 GB, free: 4.805 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002889/0.4199, allocations: 2.233 MB / 0.5434 GB, free: 2.566 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005853/0.4258, allocations: 7.319 MB / 0.5505 GB, free: 8.727 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01006/0.4358, allocations: 10.37 MB / 0.5606 GB, free: 11.84 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002982/0.4361, allocations: 55.98 kB / 0.5607 GB, free: 11.79 MB / 474.7 MB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.01565/0.4518, allocations: 9.199 MB / 0.5697 GB, free: 2.598 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000107/0.4519, allocations: 80 kB / 0.5698 GB, free: 2.52 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002196/0.4521, allocations: 184 kB / 0.5699 GB, free: 2.34 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00018/0.4523, allocations: 236 kB / 0.5702 GB, free: 2.109 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003964/0.4562, allocations: 1.844 MB / 0.572 GB, free: 268 kB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000218/0.4565, allocations: 350.7 kB / 0.5723 GB, free: 15.91 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003885/0.4603, allocations: 383.7 kB / 0.5727 GB, free: 15.55 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009819/0.4613, allocations: 0.496 MB / 0.5731 GB, free: 15.05 MB / 490.7 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.004257/0.4656, allocations: 2.65 MB / 0.5757 GB, free: 12.39 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006292/0.4662, allocations: 441.8 kB / 0.5761 GB, free: 11.96 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00253/0.4687, allocations: 1.947 MB / 0.578 GB, free: 9.996 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.7e-05/0.4688, allocations: 35.98 kB / 0.5781 GB, free: 9.961 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.123e-05/0.4688, allocations: 3.938 kB / 0.5781 GB, free: 9.957 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.005e-05/0.4688, allocations: 7.969 kB / 0.5781 GB, free: 9.949 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01225/0.4811, allocations: 7.416 MB / 0.5853 GB, free: 2.336 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.869e-05/0.4811, allocations: 12 kB / 0.5853 GB, free: 2.324 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007309/0.4818, allocations: 303.5 kB / 0.5856 GB, free: 2.027 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000149/0.482, allocations: 44.78 kB / 0.5857 GB, free: 1.98 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001146/0.4821, allocations: 51.98 kB / 0.5857 GB, free: 1.93 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008236/0.4829, allocations: 1.287 MB / 0.587 GB, free: 0.5273 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.053e-05/0.4829, allocations: 19.88 kB / 0.587 GB, free: 0.5078 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1689/0.6518, allocations: 4.352 MB / 0.5913 GB, free: 160.4 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001323/0.6531, allocations: 0.6272 MB / 0.5919 GB, free: 160.3 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004255/0.6535, allocations: 46.55 kB / 0.5919 GB, free: 160.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000871/0.6544, allocations: 73.55 kB / 0.592 GB, free: 160.2 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002017/0.6546, allocations: 158.8 kB / 0.5921 GB, free: 160.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001041/0.6547, allocations: 78.73 kB / 0.5922 GB, free: 160.2 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004254/0.659, allocations: 3.209 MB / 0.5953 GB, free: 159.1 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.659, allocations: 0 / 0.5953 GB, free: 159.1 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005513/0.6645, allocations: 1.075 MB / 0.5964 GB, free: 159 MB / 490.7 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.004551/0.669, allocations: 5.056 MB / 0.6013 GB, free: 156.4 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.006859/0.6759, allocations: 4.986 MB / 0.6062 GB, free: 154.8 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-05/0.6759, allocations: 3.875 kB / 0.6062 GB, free: 154.8 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001525/0.6774, allocations: 1.15 MB / 0.6073 GB, free: 154.4 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003255/0.6807, allocations: 0.5656 MB / 0.6079 GB, free: 154.2 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05629/0.737, allocations: 53.93 MB / 0.6605 GB, free: 102.3 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003587/0.7406, allocations: 3.236 MB / 0.6637 GB, free: 99.35 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.003462/0.744, allocations: 2.452 MB / 0.6661 GB, free: 96.89 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002182/0.7462, allocations: 2.203 MB / 0.6683 GB, free: 94.69 MB / 490.7 MB Notification: Performance of SimCode: time 2.204e-06/0.7462, allocations: 0 / 0.6683 GB, free: 94.69 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08081/0.827, allocations: 70.34 MB / 0.7369 GB, free: 25.15 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.73/12.56, allocations: 4 kB / 0.7369 GB, free: 25.15 MB / 490.7 MB " [Timeout remaining time 647] (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: 14.381247727200389] Failed to read output from testmodel.py, exit status != 0: 12.678455222398043 12.686524157000001 12.445969211 Calling exit ...