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.001292/0.001292, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.002444/0.002444, allocations: 212.6 kB / 22.25 MB, free: 4.859 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.587/1.587, allocations: 230.6 MB / 256 MB, free: 7.781 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.04873/0.04873, allocations: 9.235 MB / 321.7 MB, free: 9.836 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.002254/0.002254, allocations: 65.31 kB / 447.7 MB, free: 14.55 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1047, allocations: 55.47 MB / 0.4914 GB, free: 6.996 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.01405/0.1187, allocations: 11.22 MB / 0.5023 GB, free: 11.72 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008126/0.1268, allocations: 3.439 MB / 0.5057 GB, free: 8.273 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002573/0.1294, allocations: 67.75 kB / 0.5057 GB, free: 8.207 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002433/0.1319, allocations: 0.7807 MB / 0.5065 GB, free: 7.422 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006507/0.1384, allocations: 2.088 MB / 0.5085 GB, free: 5.328 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009373/0.1393, allocations: 139.8 kB / 0.5087 GB, free: 5.191 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00648/0.1458, allocations: 4.049 MB / 0.5126 GB, free: 1.133 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2458/0.3916, allocations: 2.039 MB / 0.5146 GB, free: 8.227 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002859/0.3944, allocations: 1.43 MB / 0.516 GB, free: 8.102 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003712/0.3981, allocations: 2.128 MB / 0.5181 GB, free: 7.801 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001343/0.3995, allocations: 318.8 kB / 0.5184 GB, free: 7.801 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002436/0.4019, allocations: 0.8149 MB / 0.5192 GB, free: 7.801 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002332/0.4042, allocations: 1.911 MB / 0.5211 GB, free: 7.523 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004419/0.4087, allocations: 1.694 MB / 0.5227 GB, free: 6.82 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01162/0.4203, allocations: 7.655 MB / 0.5302 GB, free: 5.473 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.344e-06/0.4203, allocations: 3.875 kB / 0.5302 GB, free: 5.473 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.4203, allocations: 0.7812 kB / 0.5302 GB, free: 5.473 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003458/0.4206, allocations: 0 / 0.5302 GB, free: 5.473 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.03141/0.452, allocations: 7.174 MB / 0.5372 GB, free: 3.168 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.356e-05/0.4521, allocations: 9.969 kB / 0.5372 GB, free: 3.168 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003252/0.4554, allocations: 0.8857 MB / 0.5381 GB, free: 2.859 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01256/0.4679, allocations: 3.288 MB / 0.5413 GB, free: 1.109 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00659/0.4745, allocations: 2.034 MB / 0.5433 GB, free: 15.95 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00035/0.4749, allocations: 233.1 kB / 0.5435 GB, free: 15.89 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001941/0.4768, allocations: 313.6 kB / 0.5438 GB, free: 15.84 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03251/0.5093, allocations: 13.44 MB / 0.5569 GB, free: 7.277 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002336/0.5096, allocations: 54.75 kB / 0.557 GB, free: 7.25 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001794/0.5113, allocations: 161.8 kB / 0.5571 GB, free: 7.152 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006241/0.5176, allocations: 3.091 MB / 0.5601 GB, free: 4.105 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02732/0.5449, allocations: 11.92 MB / 0.5718 GB, free: 8.418 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07143/0.6163, allocations: 45.7 MB / 0.6164 GB, free: 10.11 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01181/0.6281, allocations: 2.758 MB / 0.6191 GB, free: 7.336 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002656/0.6308, allocations: 1.286 MB / 0.6204 GB, free: 6.043 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01481/0.6456, allocations: 5.992 MB / 0.6262 GB, free: 88 kB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.638e-05/0.6457, allocations: 55.5 kB / 0.6263 GB, free: 24 kB / 462.1 MB Notification: Performance of pre-optimization done (n=202): time 6.493e-06/0.6457, allocations: 0 / 0.6263 GB, free: 24 kB / 462.1 MB Notification: Performance of matching and sorting (n=211): time 0.02308/0.6688, allocations: 10.36 MB / 0.6364 GB, free: 5.625 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001208/0.6689, allocations: 153.3 kB / 0.6365 GB, free: 5.445 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009418/0.6783, allocations: 5.46 MB / 0.6419 GB, free: 15.98 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003638/0.6787, allocations: 53.7 kB / 0.6419 GB, free: 15.92 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003649/0.6823, allocations: 4.098 MB / 0.6459 GB, free: 11.85 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001249/0.6836, allocations: 0.8654 MB / 0.6468 GB, free: 10.99 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003491/0.687, allocations: 1.612 MB / 0.6483 GB, free: 9.375 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001714/0.6872, allocations: 309.1 kB / 0.6486 GB, free: 9.07 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006358/0.6936, allocations: 2.241 MB / 0.6508 GB, free: 6.824 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01227/0.7058, allocations: 7.322 MB / 0.658 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02074/0.7266, allocations: 10.39 MB / 0.6681 GB, free: 264 kB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002773/0.7269, allocations: 52 kB / 0.6682 GB, free: 212 kB / 0.4981 GB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.03148/0.7583, allocations: 9.215 MB / 0.6772 GB, free: 7.004 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001905/0.7585, allocations: 80 kB / 0.6772 GB, free: 6.926 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002998/0.7588, allocations: 184.1 kB / 0.6774 GB, free: 6.746 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002784/0.7591, allocations: 240 kB / 0.6776 GB, free: 6.512 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006178/0.7653, allocations: 1.846 MB / 0.6794 GB, free: 4.664 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003435/0.7656, allocations: 358.4 kB / 0.6798 GB, free: 4.316 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00557/0.7712, allocations: 374.1 kB / 0.6801 GB, free: 3.953 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001227/0.7724, allocations: 500 kB / 0.6806 GB, free: 3.465 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.005699/0.7781, allocations: 2.66 MB / 0.6832 GB, free: 0.7969 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000963/0.7791, allocations: 445 kB / 0.6836 GB, free: 368 kB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003938/0.783, allocations: 1.952 MB / 0.6855 GB, free: 14.39 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001342/0.7832, allocations: 43.34 kB / 0.6856 GB, free: 14.36 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.369e-05/0.7832, allocations: 4.734 kB / 0.6856 GB, free: 14.35 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.532e-05/0.7832, allocations: 7.984 kB / 0.6856 GB, free: 14.34 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01526/0.7984, allocations: 7.39 MB / 0.6928 GB, free: 6.762 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.264e-05/0.7985, allocations: 19.98 kB / 0.6928 GB, free: 6.742 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001286/0.7998, allocations: 303.7 kB / 0.6931 GB, free: 6.445 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002036/0.8, allocations: 36.84 kB / 0.6932 GB, free: 6.406 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001424/0.8001, allocations: 47.98 kB / 0.6932 GB, free: 6.359 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001416/0.8015, allocations: 1.291 MB / 0.6945 GB, free: 4.953 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.092e-05/0.8015, allocations: 31.97 kB / 0.6945 GB, free: 4.922 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007013/0.8086, allocations: 4.403 MB / 0.6988 GB, free: 336 kB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002362/0.8109, allocations: 0.622 MB / 0.6994 GB, free: 15.7 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008779/0.8118, allocations: 43.98 kB / 0.6994 GB, free: 15.66 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001667/0.8135, allocations: 67.78 kB / 0.6995 GB, free: 15.59 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003035/0.8138, allocations: 163.8 kB / 0.6997 GB, free: 15.44 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001633/0.8139, allocations: 79.97 kB / 0.6997 GB, free: 15.36 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.007144/0.8211, allocations: 3.202 MB / 0.7029 GB, free: 12.16 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.31e-07/0.8211, allocations: 8 kB / 0.7029 GB, free: 12.16 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007809/0.8289, allocations: 1.076 MB / 0.7039 GB, free: 11.08 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.007357/0.8362, allocations: 5.095 MB / 0.7089 GB, free: 5.789 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01007/0.8463, allocations: 5.008 MB / 0.7138 GB, free: 0.8203 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.653e-05/0.8463, allocations: 4 kB / 0.7138 GB, free: 0.8164 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002225/0.8486, allocations: 1.158 MB / 0.7149 GB, free: 15.65 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003651/0.8522, allocations: 0.5572 MB / 0.7155 GB, free: 15.11 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2863/1.138, allocations: 54.31 MB / 0.7685 GB, free: 166.3 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003622/1.142, allocations: 3.236 MB / 0.7717 GB, free: 165.4 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.005214/1.147, allocations: 2.448 MB / 0.7741 GB, free: 164.5 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00292/1.15, allocations: 2.207 MB / 0.7762 GB, free: 162.6 MB / 0.5606 GB Notification: Performance of SimCode: time 1.433e-06/1.15, allocations: 4 kB / 0.7762 GB, free: 162.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1121/1.262, allocations: 70.41 MB / 0.845 GB, free: 93.11 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.89/19.16, allocations: 11.86 kB / 0.845 GB, free: 93.1 MB / 0.5606 GB " [Timeout remaining time 641] (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: 22.04135877173394] Failed to read output from testmodel.py, exit status != 0: 19.321176349185407 19.335780662 18.912142049 Calling exit ...