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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.004058/0.004059, allocations: 183.2 kB / 7.461 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.214/1.214, allocations: 221.4 MB / 229.3 MB, free: 3.012 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00113/0.00113, allocations: 94.47 kB / 280.1 MB, free: 1.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03833/0.03833, allocations: 8.84 MB / 339.7 MB, free: 5.695 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1691/0.2074, allocations: 58.48 MB / 398.2 MB, free: 67.33 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07371/0.2812, allocations: 52.4 MB / 450.6 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2583/0.5395, allocations: 93.64 MB / 0.5315 GB, free: 72 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002507/0.5398, allocations: 97.44 kB / 0.5316 GB, free: 20 kB / 346.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.2824/0.8222, allocations: 102.2 MB / 0.6314 GB, free: 108 kB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.587e-05/0.8223, allocations: 12 kB / 0.6314 GB, free: 96 kB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01755/0.8398, allocations: 2.961 MB / 0.6343 GB, free: 13.12 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008581/0.8485, allocations: 2.642 MB / 0.6369 GB, free: 10.43 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003747/0.8489, allocations: 152 kB / 0.637 GB, free: 10.28 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003098/0.852, allocations: 279.9 kB / 0.6373 GB, free: 10 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01716/0.8692, allocations: 8.58 MB / 0.6457 GB, free: 1.418 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2021/1.071, allocations: 12.64 MB / 0.658 GB, free: 153.6 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000279/1.072, allocations: 68.83 kB / 0.6581 GB, free: 153.6 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001341/1.073, allocations: 34.19 kB / 0.6581 GB, free: 153.6 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001736/1.075, allocations: 1.61 MB / 0.6597 GB, free: 153.6 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06011/1.135, allocations: 55.01 MB / 0.7134 GB, free: 119.5 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003698/1.139, allocations: 2.261 MB / 0.7156 GB, free: 118.3 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002057/1.141, allocations: 1.208 MB / 0.7168 GB, free: 117.9 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01335/1.154, allocations: 7.278 MB / 0.7239 GB, free: 113.4 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.648e-05/1.154, allocations: 62.44 kB / 0.724 GB, free: 113.3 MB / 458.7 MB Notification: Performance of pre-optimization done (n=196): time 5.39e-06/1.154, allocations: 0 / 0.724 GB, free: 113.3 MB / 458.7 MB Notification: Performance of matching and sorting (n=205): time 0.01715/1.171, allocations: 8.542 MB / 0.7323 GB, free: 109 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.054e-05/1.171, allocations: 157.5 kB / 0.7325 GB, free: 108.8 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007049/1.179, allocations: 3.932 MB / 0.7363 GB, free: 107.4 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002817/1.179, allocations: 28.47 kB / 0.7363 GB, free: 107.3 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002394/1.181, allocations: 3.927 MB / 0.7402 GB, free: 104.3 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009124/1.182, allocations: 0.7908 MB / 0.7409 GB, free: 103.7 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007793/1.183, allocations: 2.531 kB / 0.7409 GB, free: 103.7 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0007325/1.184, allocations: 0.6646 MB / 0.7416 GB, free: 103.2 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003596/1.187, allocations: 2.192 MB / 0.7437 GB, free: 102.5 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006996/1.194, allocations: 7.486 MB / 0.751 GB, free: 94.46 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007013/1.201, allocations: 4.149 MB / 0.7551 GB, free: 92.95 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000264/1.202, allocations: 54.28 kB / 0.7551 GB, free: 92.95 MB / 458.7 MB Notification: Performance of matching and sorting (n=1098) (initialization): time 0.01896/1.221, allocations: 8.38 MB / 0.7633 GB, free: 87.49 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.536e-05/1.221, allocations: 4 kB / 0.7633 GB, free: 87.49 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005193/1.221, allocations: 192 kB / 0.7635 GB, free: 87.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004045/1.222, allocations: 276 kB / 0.7638 GB, free: 87.03 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007006/1.229, allocations: 1.94 MB / 0.7657 GB, free: 85.32 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003478/1.229, allocations: 373.4 kB / 0.766 GB, free: 85 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007881/1.237, allocations: 218.2 kB / 0.7662 GB, free: 84.79 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002212/1.239, allocations: 0.5187 MB / 0.7667 GB, free: 84.29 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 871 * 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 (1048): * Single equations (assignments): 1041 * 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.002955/1.242, allocations: 0.5494 MB / 0.7673 GB, free: 83.73 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001304/1.244, allocations: 367.1 kB / 0.7676 GB, free: 83.36 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004029/1.248, allocations: 1.786 MB / 0.7694 GB, free: 81.82 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001673/1.248, allocations: 23.75 kB / 0.7694 GB, free: 81.8 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.819e-05/1.248, allocations: 0 / 0.7694 GB, free: 81.8 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.94e-05/1.248, allocations: 6.984 kB / 0.7694 GB, free: 81.8 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01263/1.26, allocations: 6.151 MB / 0.7754 GB, free: 76.58 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.015e-05/1.26, allocations: 8 kB / 0.7754 GB, free: 76.57 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001245/1.262, allocations: 288.7 kB / 0.7757 GB, free: 76.33 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001386/1.262, allocations: 36.86 kB / 0.7757 GB, free: 76.29 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000159/1.262, allocations: 25.06 kB / 0.7757 GB, free: 76.27 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007063/1.263, allocations: 1.245 MB / 0.777 GB, free: 74.95 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.296e-06/1.263, allocations: 15.94 kB / 0.777 GB, free: 74.93 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004555/1.267, allocations: 5.362 MB / 0.7822 GB, free: 69.29 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005712/1.273, allocations: 7.032 MB / 0.7891 GB, free: 62.1 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001032/1.274, allocations: 446.5 kB / 0.7895 GB, free: 61.66 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009414/1.275, allocations: 18.41 kB / 0.7895 GB, free: 61.64 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001872/1.277, allocations: 36.56 kB / 0.7896 GB, free: 61.61 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001822/1.277, allocations: 119.3 kB / 0.7897 GB, free: 61.54 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001274/1.277, allocations: 71.94 kB / 0.7897 GB, free: 61.47 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.004688/1.282, allocations: 2.578 MB / 0.7923 GB, free: 59.21 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007849/1.29, allocations: 0.9615 MB / 0.7932 GB, free: 58.26 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 47 * 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 (156): * Single equations (assignments): 148 * 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.0005708/1.29, allocations: 184.7 kB / 0.7934 GB, free: 58.09 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00728/1.298, allocations: 4.977 MB / 0.7982 GB, free: 53.56 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.007e-06/1.298, allocations: 0 / 0.7982 GB, free: 53.56 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001711/1.3, allocations: 1.172 MB / 0.7994 GB, free: 52.49 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002141/1.302, allocations: 364.4 kB / 0.7997 GB, free: 52.18 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01743/1.319, allocations: 8.558 MB / 0.8081 GB, free: 44.28 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006612/1.326, allocations: 4.245 MB / 0.8122 GB, free: 40.98 MB / 458.7 MB Notification: Performance of SimCode: time 1.112e-06/1.326, allocations: 0 / 0.8122 GB, free: 40.98 MB / 458.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)