Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.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: translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") [: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.001169/0.001169, allocations: 176.1 kB / 8.478 MB, free: 1.891 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.367/1.367, allocations: 205.2 MB / 214.1 MB, free: 5.148 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.001044/0.001044, allocations: 87.33 kB / 262.1 MB, free: 5.191 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.656e-06/8.676e-06, allocations: 4 kB / 315 MB, free: 41.47 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09677/0.09679, allocations: 47.57 MB / 362.5 MB, free: 9.949 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3458/0.4427, allocations: 97.73 MB / 460.3 MB, free: 6.828 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002602/0.443, allocations: 87.3 kB / 460.4 MB, free: 6.816 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.2707/0.7137, allocations: 103.3 MB / 0.5504 GB, free: 10.97 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003756/0.7141, allocations: 112 kB / 0.5506 GB, free: 10.86 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1846 * Number of variables: 1846 Notification: Performance of Generate backend data structure: time 0.01982/0.7339, allocations: 5.24 MB / 0.5557 GB, free: 5.555 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.638e-05/0.734, allocations: 8.031 kB / 0.5557 GB, free: 5.547 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0281/0.7621, allocations: 6.563 MB / 0.5621 GB, free: 14.96 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02017/0.7823, allocations: 6.891 MB / 0.5688 GB, free: 8.012 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003708/0.7827, allocations: 175.9 kB / 0.569 GB, free: 7.84 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00303/0.7858, allocations: 331.8 kB / 0.5693 GB, free: 7.516 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.247/1.033, allocations: 7.798 MB / 0.5769 GB, free: 75.84 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01945/1.052, allocations: 11.57 MB / 0.5882 GB, free: 72.76 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001867/1.053, allocations: 74.16 kB / 0.5883 GB, free: 72.76 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005735/1.053, allocations: 36.09 kB / 0.5883 GB, free: 72.76 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001262/1.054, allocations: 1.208 MB / 0.5895 GB, free: 72.75 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05798/1.112, allocations: 57.28 MB / 0.6454 GB, free: 39.26 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004778/1.117, allocations: 3.604 MB / 0.649 GB, free: 38.6 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003108/1.12, allocations: 2.576 MB / 0.6515 GB, free: 38.13 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01376/1.134, allocations: 7.99 MB / 0.6593 GB, free: 33.86 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.199e-05/1.134, allocations: 57.75 kB / 0.6593 GB, free: 33.81 MB / 426.7 MB Notification: Performance of pre-optimization done (n=192): time 6.632e-06/1.134, allocations: 6.594 kB / 0.6593 GB, free: 33.81 MB / 426.7 MB Notification: Performance of matching and sorting (n=218): time 0.04363/1.178, allocations: 18.06 MB / 0.677 GB, free: 26.37 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.912e-05/1.178, allocations: 205 kB / 0.6772 GB, free: 26.15 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01089/1.189, allocations: 3.738 MB / 0.6808 GB, free: 24.8 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005365/1.19, allocations: 29.67 kB / 0.6809 GB, free: 24.77 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002638/1.192, allocations: 3.465 MB / 0.6842 GB, free: 22.19 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001339/1.194, allocations: 0.8133 MB / 0.685 GB, free: 21.59 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009361/1.194, allocations: 0 / 0.685 GB, free: 21.59 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0008331/1.195, allocations: 0.5911 MB / 0.6856 GB, free: 21.16 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004898/1.2, allocations: 2.177 MB / 0.6877 GB, free: 20.4 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007907/1.208, allocations: 6.28 MB / 0.6939 GB, free: 14.09 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005534/1.214, allocations: 3.704 MB / 0.6975 GB, free: 11.52 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002063/1.214, allocations: 44 kB / 0.6975 GB, free: 11.47 MB / 426.7 MB Notification: Performance of matching and sorting (n=890) (initialization): time 0.01613/1.23, allocations: 8.175 MB / 0.7055 GB, free: 4.34 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.371e-05/1.23, allocations: 9 kB / 0.7055 GB, free: 4.332 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003088/1.23, allocations: 144 kB / 0.7057 GB, free: 4.191 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002635/1.233, allocations: 0.9216 MB / 0.7066 GB, free: 3.449 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005195/1.238, allocations: 1.547 MB / 0.7081 GB, free: 2.094 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008875/1.247, allocations: 6.898 MB / 0.7148 GB, free: 11.63 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00638/1.254, allocations: 212 kB / 0.715 GB, free: 11.44 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001837/1.255, allocations: 414.3 kB / 0.7154 GB, free: 11.04 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 668 * Number of states: 0 () * Number of discrete variables: 45 (fixed.color[3],fixed.color[2],fixed.color[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],cyl2.color[3],cyl2.color[2],cyl2.color[1],cyl2.body.sphereColor[3],cyl2.body.sphereColor[2],cyl2.body.sphereColor[1],cyl1.color[3],cyl1.color[2],cyl1.color[1],cyl1.body.sphereColor[3],cyl1.body.sphereColor[2],cyl1.body.sphereColor[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],gearConstraint.fixedTranslation2.color[3],gearConstraint.fixedTranslation2.color[2],gearConstraint.fixedTranslation2.color[1],gearConstraint.fixedTranslation1.color[3],gearConstraint.fixedTranslation1.color[2],gearConstraint.fixedTranslation1.color[1],gearConstraint.actuatedRevolute_b.cylinderColor[3],gearConstraint.actuatedRevolute_b.cylinderColor[2],gearConstraint.actuatedRevolute_b.cylinderColor[1],gearConstraint.actuatedRevolute_a.cylinderColor[3],gearConstraint.actuatedRevolute_a.cylinderColor[2],gearConstraint.actuatedRevolute_a.cylinderColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (828): * Single equations (assignments): 823 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 33,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002657/1.258, allocations: 489.7 kB / 0.7159 GB, free: 10.57 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001528/1.26, allocations: 398.8 kB / 0.7162 GB, free: 10.17 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0082/1.268, allocations: 3.423 MB / 0.7196 GB, free: 7.344 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.859e-05/1.268, allocations: 20 kB / 0.7196 GB, free: 7.324 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.749e-05/1.268, allocations: 15.84 kB / 0.7196 GB, free: 7.309 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.316e-05/1.268, allocations: 6.234 kB / 0.7196 GB, free: 7.309 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02125/1.289, allocations: 8.219 MB / 0.7277 GB, free: 0.5938 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.876e-05/1.289, allocations: 4.031 kB / 0.7277 GB, free: 0.5898 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001913/1.291, allocations: 324.2 kB / 0.728 GB, free: 332 kB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003196/1.295, allocations: 0.7345 MB / 0.7287 GB, free: 0 / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003334/1.295, allocations: 13.95 kB / 0.7287 GB, free: 0 / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007833/1.303, allocations: 6.047 MB / 0.7346 GB, free: 10.3 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.392e-06/1.303, allocations: 3.375 kB / 0.7346 GB, free: 10.3 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01043/1.313, allocations: 6.247 MB / 0.7407 GB, free: 4.703 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002542/1.316, allocations: 0.7023 MB / 0.7414 GB, free: 4.031 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001285/1.317, allocations: 4 kB / 0.7414 GB, free: 4.027 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002254/1.319, allocations: 54.14 kB / 0.7414 GB, free: 3.992 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002899/1.32, allocations: 108.1 kB / 0.7416 GB, free: 3.93 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001648/1.32, allocations: 55.84 kB / 0.7416 GB, free: 3.879 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.005941/1.326, allocations: 2.549 MB / 0.7441 GB, free: 1.656 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008362/1.334, allocations: 1.013 MB / 0.7451 GB, free: 0.6484 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (gearConstraint.actuatedRevolute_b.phi,gearConstraint.actuatedRevolute_b.w,inertia1.phi,inertia1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (169): * Single equations (assignments): 164 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 27,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007198/1.335, allocations: 152.8 kB / 0.7452 GB, free: 0.5039 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.2498/1.585, allocations: 5.653 MB / 0.7507 GB, free: 98.38 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.524e-06/1.585, allocations: 3.875 kB / 0.7508 GB, free: 98.38 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002976/1.588, allocations: 1.867 MB / 0.7526 GB, free: 98.16 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002896/1.591, allocations: 437 kB / 0.753 GB, free: 98.14 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0205/1.611, allocations: 9.366 MB / 0.7621 GB, free: 96.38 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006393/1.618, allocations: 4.413 MB / 0.7664 GB, free: 95.55 MB / 458.7 MB Notification: Performance of SimCode: time 1.112e-06/1.618, allocations: 0 / 0.7664 GB, free: 95.55 MB / 458.7 MB Notification: Performance of Templates: time 0.08535/1.703, allocations: 42.41 MB / 0.8079 GB, free: 93.2 MB / 458.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/GearConstraint/GearConstraint.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches