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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009838/0.000984, allocations: 174.8 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.327/1.327, allocations: 221.4 MB / 234.6 MB, free: 14.39 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008706/0.0008706, allocations: 97.02 kB / 285.6 MB, free: 12.97 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04043/0.04043, allocations: 8.844 MB / 345.3 MB, free: 1.285 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.7e-05/2.703e-05, allocations: 0 / 405.7 MB, free: 61.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.1029, allocations: 52.39 MB / 458.1 MB, free: 8.945 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3688/0.4717, allocations: 94.07 MB / 0.5392 GB, free: 7.82 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002719/0.472, allocations: 95.83 kB / 0.5393 GB, free: 7.77 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.252/0.724, allocations: 99.63 MB / 0.6366 GB, free: 9.676 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.816e-06/0.7241, allocations: 4 kB / 0.6366 GB, free: 9.672 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002011/0.7243, allocations: 87.98 kB / 0.6367 GB, free: 9.586 MB / 458.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.03123/0.7555, allocations: 5.197 MB / 0.6417 GB, free: 4.32 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 9.77e-05/0.7556, allocations: 15.97 kB / 0.6417 GB, free: 4.305 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004361/0.76, allocations: 0.9492 MB / 0.6427 GB, free: 3.344 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3025/1.063, allocations: 3.602 MB / 0.6462 GB, free: 104.7 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008451/1.071, allocations: 2.634 MB / 0.6488 GB, free: 104.5 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005941/1.072, allocations: 368.7 kB / 0.6491 GB, free: 104.4 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003164/1.075, allocations: 475.6 kB / 0.6496 GB, free: 104.4 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03466/1.11, allocations: 13.44 MB / 0.6627 GB, free: 101.3 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003297/1.11, allocations: 70.38 kB / 0.6628 GB, free: 101.3 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00189/1.112, allocations: 235.4 kB / 0.663 GB, free: 101.3 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002841/1.115, allocations: 1.528 MB / 0.6645 GB, free: 101.3 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02454/1.139, allocations: 11.8 MB / 0.676 GB, free: 101.1 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06136/1.201, allocations: 55.74 MB / 0.7304 GB, free: 60.61 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01291/1.214, allocations: 3.801 MB / 0.7341 GB, free: 58.65 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002632/1.216, allocations: 1.334 MB / 0.7354 GB, free: 58.17 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01433/1.231, allocations: 9.094 MB / 0.7443 GB, free: 52.38 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.356e-05/1.231, allocations: 55.53 kB / 0.7444 GB, free: 52.32 MB / 458.7 MB Notification: Performance of pre-optimization done (n=202): time 5.841e-06/1.231, allocations: 0 / 0.7444 GB, free: 52.32 MB / 458.7 MB Notification: Performance of matching and sorting (n=211): time 0.01684/1.248, allocations: 9.211 MB / 0.7534 GB, free: 47.58 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.682e-05/1.248, allocations: 153.4 kB / 0.7535 GB, free: 47.42 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008458/1.256, allocations: 4.544 MB / 0.758 GB, free: 44.43 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004152/1.257, allocations: 53.7 kB / 0.758 GB, free: 44.38 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002665/1.259, allocations: 3.926 MB / 0.7618 GB, free: 40.86 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001033/1.26, allocations: 0.8285 MB / 0.7627 GB, free: 40.13 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005862/1.261, allocations: 159.7 kB / 0.7628 GB, free: 39.98 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003889/1.261, allocations: 0.6511 MB / 0.7634 GB, free: 39.42 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003316/1.265, allocations: 2.14 MB / 0.7655 GB, free: 37.48 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005505/1.27, allocations: 7.186 MB / 0.7725 GB, free: 28.25 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005378/1.276, allocations: 3.978 MB / 0.7764 GB, free: 24.82 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.661e-05/1.276, allocations: 52 kB / 0.7765 GB, free: 24.77 MB / 458.7 MB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.0165/1.292, allocations: 8.973 MB / 0.7852 GB, free: 16.78 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001165/1.292, allocations: 84 kB / 0.7853 GB, free: 16.7 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002677/1.293, allocations: 180 kB / 0.7855 GB, free: 16.52 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002226/1.293, allocations: 263.9 kB / 0.7857 GB, free: 16.26 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005711/1.299, allocations: 1.85 MB / 0.7876 GB, free: 14.63 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002059/1.299, allocations: 352 kB / 0.7879 GB, free: 14.32 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006206/1.305, allocations: 382.6 kB / 0.7883 GB, free: 13.97 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001595/1.307, allocations: 0.4908 MB / 0.7887 GB, free: 13.49 MB / 458.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001266/1.308, allocations: 0.7021 MB / 0.7894 GB, free: 12.79 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000811/1.309, allocations: 414.6 kB / 0.7898 GB, free: 12.38 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003004/1.312, allocations: 1.904 MB / 0.7917 GB, free: 10.73 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001149/1.312, allocations: 31.84 kB / 0.7917 GB, free: 10.7 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.07e-05/1.312, allocations: 4 kB / 0.7917 GB, free: 10.7 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.479e-05/1.312, allocations: 10.38 kB / 0.7917 GB, free: 10.69 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01372/1.326, allocations: 7.756 MB / 0.7993 GB, free: 4.109 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-05/1.326, allocations: 16 kB / 0.7993 GB, free: 4.094 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001136/1.327, allocations: 305.3 kB / 0.7996 GB, free: 3.844 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001474/1.327, allocations: 37.36 kB / 0.7996 GB, free: 3.805 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001111/1.327, allocations: 54.89 kB / 0.7997 GB, free: 3.758 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007247/1.328, allocations: 1.293 MB / 0.8009 GB, free: 2.355 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.006e-05/1.328, allocations: 24 kB / 0.801 GB, free: 2.332 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006088/1.334, allocations: 6.234 MB / 0.8071 GB, free: 11.84 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001572/1.336, allocations: 0.4995 MB / 0.8075 GB, free: 11.34 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005536/1.336, allocations: 47.56 kB / 0.8076 GB, free: 11.3 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001454/1.338, allocations: 72.88 kB / 0.8077 GB, free: 11.24 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002516/1.338, allocations: 156.8 kB / 0.8078 GB, free: 11.13 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001482/1.338, allocations: 71.47 kB / 0.8079 GB, free: 11.07 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.006032/1.344, allocations: 3.137 MB / 0.8109 GB, free: 8.289 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.51e-07/1.344, allocations: 0 / 0.8109 GB, free: 8.289 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00735/1.352, allocations: 1.121 MB / 0.812 GB, free: 7.184 MB / 474.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (162): * Single equations (assignments): 154 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.2895/1.641, allocations: 9.643 MB / 0.8215 GB, free: 105.8 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01067/1.652, allocations: 5.03 MB / 0.8264 GB, free: 105.8 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.68e-05/1.652, allocations: 1.656 kB / 0.8264 GB, free: 105.8 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0021/1.654, allocations: 1.202 MB / 0.8275 GB, free: 105.7 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003032/1.657, allocations: 0.5119 MB / 0.828 GB, free: 105.7 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03053/1.688, allocations: 10.24 MB / 0.838 GB, free: 103.5 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005137/1.693, allocations: 3.874 MB / 0.8418 GB, free: 102.7 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.00596/1.699, allocations: 2.454 MB / 0.8442 GB, free: 102.6 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003258/1.702, allocations: 2.196 MB / 0.8464 GB, free: 102.6 MB / 474.7 MB Notification: Performance of SimCode: time 1.042e-06/1.702, allocations: 0 / 0.8464 GB, free: 102.6 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1174/1.82, allocations: 86.16 MB / 0.9305 GB, free: 56.99 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001694/1.82, allocations: 188.9 kB / 0.9307 GB, free: 56.75 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.728/6.548, allocations: 0 / 0.9307 GB, free: 56.75 MB / 474.7 MB (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/linux/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_GearComponents_Examples_SpurGear_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_GearComponents_Examples_SpurGear.fmu > PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.pipe 2>&1)