Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D",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 3.2.3+maint.om/package.mo): time 0.001388/0.001388, allocations: 180 kB / 8.478 MB, free: 1.875 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.408/1.408, allocations: 205.2 MB / 214.1 MB, free: 5.152 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000883/0.0008828, allocations: 98.22 kB / 262.1 MB, free: 5.184 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1901/0.191, allocations: 52.96 MB / 315.1 MB, free: 41.4 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07588/0.2669, allocations: 47.58 MB / 362.6 MB, free: 9.859 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2775/0.5445, allocations: 101 MB / 463.7 MB, free: 5.566 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002993/0.5448, allocations: 87.91 kB / 463.8 MB, free: 5.551 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1755 * Number of variables: 1755 Notification: Performance of Generate backend data structure: time 0.2839/0.8287, allocations: 99.19 MB / 0.5498 GB, free: 11.68 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.264e-05/0.8288, allocations: 12 kB / 0.5498 GB, free: 11.67 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01884/0.8476, allocations: 4.056 MB / 0.5537 GB, free: 7.598 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0153/0.863, allocations: 5.309 MB / 0.5589 GB, free: 2.227 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003327/0.8634, allocations: 160 kB / 0.5591 GB, free: 2.07 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002913/0.8663, allocations: 295.9 kB / 0.5594 GB, free: 1.781 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.1666/1.033, allocations: 7.855 MB / 0.567 GB, free: 119.3 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02313/1.056, allocations: 11.56 MB / 0.5783 GB, free: 116.4 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002721/1.056, allocations: 64.58 kB / 0.5784 GB, free: 116.4 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001679/1.058, allocations: 33.22 kB / 0.5784 GB, free: 116.4 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001675/1.06, allocations: 1.151 MB / 0.5795 GB, free: 116.4 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06536/1.125, allocations: 54.78 MB / 0.633 GB, free: 83.84 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005395/1.131, allocations: 4.902 MB / 0.6378 GB, free: 81.62 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003886/1.135, allocations: 3.566 MB / 0.6413 GB, free: 80.23 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0176/1.152, allocations: 9.92 MB / 0.651 GB, free: 75.33 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.818e-05/1.152, allocations: 55.56 kB / 0.6511 GB, free: 75.28 MB / 410.7 MB Notification: Performance of pre-optimization done (n=211): time 5.09e-06/1.152, allocations: 0 / 0.6511 GB, free: 75.28 MB / 410.7 MB Notification: Performance of matching and sorting (n=250): time 0.06195/1.214, allocations: 25.82 MB / 0.6763 GB, free: 60.3 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.666e-05/1.214, allocations: 205.1 kB / 0.6765 GB, free: 60.06 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005458/1.22, allocations: 3.391 MB / 0.6798 GB, free: 57.14 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006892/1.221, allocations: 25.7 kB / 0.6798 GB, free: 57.11 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00132/1.222, allocations: 3.261 MB / 0.683 GB, free: 54.2 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000977/1.223, allocations: 0.9124 MB / 0.6839 GB, free: 53.38 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003816/1.223, allocations: 2.062 kB / 0.6839 GB, free: 53.38 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002991/1.224, allocations: 0.5975 MB / 0.6845 GB, free: 52.86 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004043/1.228, allocations: 3.415 MB / 0.6878 GB, free: 49.84 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005256/1.233, allocations: 7.379 MB / 0.695 GB, free: 41.11 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006208/1.239, allocations: 4.972 MB / 0.6999 GB, free: 36.91 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001201/1.239, allocations: 48 kB / 0.6999 GB, free: 36.86 MB / 410.7 MB Notification: Performance of matching and sorting (n=904) (initialization): time 0.02252/1.262, allocations: 11.84 MB / 0.7115 GB, free: 26.91 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.097e-05/1.262, allocations: 8.062 kB / 0.7115 GB, free: 26.91 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000146/1.262, allocations: 140 kB / 0.7116 GB, free: 26.77 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006297/1.268, allocations: 2.175 MB / 0.7137 GB, free: 25.16 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006368/1.275, allocations: 1.647 MB / 0.7153 GB, free: 23.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01689/1.292, allocations: 13.93 MB / 0.7289 GB, free: 9.352 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006754/1.298, allocations: 263.5 kB / 0.7292 GB, free: 9.094 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001926/1.3, allocations: 451.8 kB / 0.7296 GB, free: 8.652 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 644 * Number of states: 0 () * Number of discrete variables: 36 (sensor2.torqueColor[3],sensor2.torqueColor[2],sensor2.torqueColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],inertia2.cylinderColor[3],inertia2.cylinderColor[2],inertia2.cylinderColor[1],inertia1.cylinderColor[3],inertia1.cylinderColor[2],inertia1.cylinderColor[1],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]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (831): * Single equations (assignments): 825 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 15,(4,100.0%) 21,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001816/1.302, allocations: 465.1 kB / 0.7301 GB, free: 8.191 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008646/1.303, allocations: 367.2 kB / 0.7304 GB, free: 7.828 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01288/1.316, allocations: 7.45 MB / 0.7377 GB, free: 368 kB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001035/1.316, allocations: 24 kB / 0.7377 GB, free: 344 kB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.327e-05/1.316, allocations: 10.62 kB / 0.7377 GB, free: 336 kB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.157e-05/1.316, allocations: 15.95 kB / 0.7377 GB, free: 320 kB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1786/1.495, allocations: 13.69 MB / 0.7511 GB, free: 105.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-05/1.495, allocations: 3 kB / 0.7511 GB, free: 105.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003021/1.498, allocations: 404.7 kB / 0.7515 GB, free: 105.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005823/1.504, allocations: 1.929 MB / 0.7534 GB, free: 105.7 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004915/1.504, allocations: 7.625 kB / 0.7534 GB, free: 105.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01521/1.52, allocations: 12.81 MB / 0.7659 GB, free: 102.1 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.322e-06/1.52, allocations: 2.875 kB / 0.7659 GB, free: 102.1 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01654/1.536, allocations: 11.89 MB / 0.7775 GB, free: 101.5 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02107/1.557, allocations: 16.48 MB / 0.7936 GB, free: 95.16 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002215/1.56, allocations: 0.9271 MB / 0.7945 GB, free: 94.84 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008005/1.56, allocations: 7.609 kB / 0.7945 GB, free: 94.84 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002415/1.563, allocations: 112.9 kB / 0.7946 GB, free: 94.84 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004425/1.563, allocations: 114.5 kB / 0.7947 GB, free: 94.82 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002732/1.564, allocations: 65.91 kB / 0.7948 GB, free: 94.8 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.00355/1.567, allocations: 2.278 MB / 0.797 GB, free: 93.96 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.008069/1.575, allocations: 1.201 MB / 0.7982 GB, free: 93.95 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (inertia1.phi,inertia1.w,revolute1.phi,revolute1.w,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (193): * Single equations (assignments): 187 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 12,(4,100.0%) 18,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008683/1.576, allocations: 161.1 kB / 0.7984 GB, free: 93.86 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0124/1.589, allocations: 8.39 MB / 0.8066 GB, free: 91.14 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.214e-06/1.589, allocations: 3.938 kB / 0.8066 GB, free: 91.14 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005347/1.594, allocations: 3.529 MB / 0.81 GB, free: 89.73 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002418/1.596, allocations: 358.1 kB / 0.8103 GB, free: 89.57 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02042/1.617, allocations: 10.23 MB / 0.8203 GB, free: 82.55 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00673/1.624, allocations: 4.181 MB / 0.8244 GB, free: 79.37 MB / 410.7 MB Notification: Performance of SimCode: time 1.653e-06/1.624, allocations: 0 / 0.8244 GB, free: 79.37 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe 2>&1)