Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gc1.actuatedRevolute_b.phi|gc1.actuatedRevolute_b.w|gc2.actuatedRevolute_b.phi|gc2.actuatedRevolute_b.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2") translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gc1.actuatedRevolute_b.phi|gc1.actuatedRevolute_b.w|gc2.actuatedRevolute_b.phi|gc2.actuatedRevolute_b.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2") [: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 trunk/package.mo): time 0.001501/0.001501, allocations: 195.2 kB / 8.535 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.203/1.203, allocations: 225.5 MB / 234.4 MB, free: 3.453 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008526/0.0008527, allocations: 93.55 kB / 286.3 MB, free: 5.188 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1707/0.1707, allocations: 45.15 MB / 383.3 MB, free: 0.6016 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 5.942e-06/6.052e-06, allocations: 0 / 452.6 MB, free: 76.21 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09393/0.09395, allocations: 63.24 MB / 0.5038 GB, free: 13.04 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2892/0.3832, allocations: 110.7 MB / 0.6119 GB, free: 8.535 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002551/0.3835, allocations: 84.14 kB / 0.612 GB, free: 8.492 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.8779/1.261, allocations: 277.2 MB / 0.8827 GB, free: 70.61 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0009096/1.262, allocations: 271.9 kB / 0.8829 GB, free: 70.35 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5288 * Number of variables: 5288 Notification: Performance of Generate backend data structure: time 0.04012/1.303, allocations: 12.86 MB / 0.8955 GB, free: 57.41 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.037e-05/1.303, allocations: 12.03 kB / 0.8955 GB, free: 57.4 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06869/1.371, allocations: 16.78 MB / 0.9119 GB, free: 40.57 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03782/1.409, allocations: 13.28 MB / 0.9249 GB, free: 27.3 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009518/1.41, allocations: 464 kB / 0.9253 GB, free: 26.84 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008614/1.419, allocations: 0.8395 MB / 0.9261 GB, free: 26 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04181/1.461, allocations: 24.18 MB / 0.9497 GB, free: 1.828 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2942/1.755, allocations: 32.73 MB / 0.9817 GB, free: 106.5 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006593/1.756, allocations: 130.7 kB / 0.9818 GB, free: 106.5 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005404/1.761, allocations: 59.66 kB / 0.9819 GB, free: 106.5 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004645/1.766, allocations: 3.842 MB / 0.9856 GB, free: 106.4 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1803/1.946, allocations: 135 MB / 1.117 GB, free: 46.66 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01542/1.961, allocations: 10.99 MB / 1.128 GB, free: 41.85 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01352/1.975, allocations: 9.647 MB / 1.138 GB, free: 37.92 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06951/2.045, allocations: 34.6 MB / 1.171 GB, free: 11.2 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001765/2.045, allocations: 98.92 kB / 1.172 GB, free: 11.09 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=705): time 2.828e-05/2.045, allocations: 0 / 1.172 GB, free: 11.09 MB / 0.5417 GB Notification: Performance of matching and sorting (n=776): time 0.3902/2.435, allocations: 65.49 MB / 1.235 GB, free: 119.8 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001069/2.435, allocations: 309.4 kB / 1.236 GB, free: 119.5 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01787/2.453, allocations: 8.612 MB / 1.244 GB, free: 118.7 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.001667/2.455, allocations: 29.11 kB / 1.244 GB, free: 118.7 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.005773/2.461, allocations: 9.005 MB / 1.253 GB, free: 113.1 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0039/2.465, allocations: 2.744 MB / 1.256 GB, free: 111.5 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001112/2.466, allocations: 0 / 1.256 GB, free: 111.5 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0008961/2.467, allocations: 1.123 MB / 1.257 GB, free: 111.1 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01123/2.478, allocations: 7.775 MB / 1.264 GB, free: 111.1 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01836/2.496, allocations: 17.72 MB / 1.282 GB, free: 97.12 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01804/2.514, allocations: 11.91 MB / 1.293 GB, free: 93.59 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003778/2.515, allocations: 98.66 kB / 1.293 GB, free: 93.59 MB / 0.5417 GB Notification: Performance of matching and sorting (n=2441) (initialization): time 0.05723/2.572, allocations: 25.31 MB / 1.318 GB, free: 86.04 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 3.204e-05/2.572, allocations: 7.219 kB / 1.318 GB, free: 86.04 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00107/2.573, allocations: 347.3 kB / 1.318 GB, free: 86.04 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007567/2.581, allocations: 2.319 MB / 1.321 GB, free: 84.3 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0183/2.599, allocations: 4.218 MB / 1.325 GB, free: 80.64 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01581/2.615, allocations: 12.86 MB / 1.337 GB, free: 69.12 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01637/2.631, allocations: 0.5916 MB / 1.338 GB, free: 68.63 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004427/2.636, allocations: 1.03 MB / 1.339 GB, free: 67.62 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1597 * Number of states: 0 () * Number of discrete variables: 97 (torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueArrow.arrowLine.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],fixedFrame3.color_x[3],fixedFrame3.color_x[2],fixedFrame3.color_x[1],fixedFrame2.color_x[3],fixedFrame2.color_x[2],fixedFrame2.color_x[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],bodyCylinder3.color[3],bodyCylinder3.color[2],bodyCylinder3.color[1],bodyCylinder3.body.sphereColor[3],bodyCylinder3.body.sphereColor[2],bodyCylinder3.body.sphereColor[1],bodyCylinder2.color[3],bodyCylinder2.color[2],bodyCylinder2.color[1],bodyCylinder2.body.sphereColor[3],bodyCylinder2.body.sphereColor[2],bodyCylinder2.body.sphereColor[1],bodyCylinder1.color[3],bodyCylinder1.color[2],bodyCylinder1.color[1],bodyCylinder1.body.sphereColor[3],bodyCylinder1.body.sphereColor[2],bodyCylinder1.body.sphereColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],gc2.fixedTranslation2.color[3],gc2.fixedTranslation2.color[2],gc2.fixedTranslation2.color[1],gc2.fixedTranslation1.color[3],gc2.fixedTranslation1.color[2],gc2.fixedTranslation1.color[1],gc2.actuatedRevolute_b.cylinderColor[3],gc2.actuatedRevolute_b.cylinderColor[2],gc2.actuatedRevolute_b.cylinderColor[1],gc2.actuatedRevolute_a.cylinderColor[3],gc2.actuatedRevolute_a.cylinderColor[2],gc2.actuatedRevolute_a.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],gc1.fixedTranslation2.color[3],gc1.fixedTranslation2.color[2],gc1.fixedTranslation2.color[1],gc1.fixedTranslation1.color[3],gc1.fixedTranslation1.color[2],gc1.fixedTranslation1.color[1],gc1.actuatedRevolute_b.cylinderColor[3],gc1.actuatedRevolute_b.cylinderColor[2],gc1.actuatedRevolute_b.cylinderColor[1],gc1.actuatedRevolute_a.cylinderColor[3],gc1.actuatedRevolute_a.cylinderColor[2],gc1.actuatedRevolute_a.cylinderColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2245): * Single equations (assignments): 2228 * Array equations: 15 * 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 {(3,77.8%) 36,(3,77.8%) 36} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006609/2.642, allocations: 0.9855 MB / 1.34 GB, free: 66.63 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00345/2.646, allocations: 0.9594 MB / 1.341 GB, free: 65.66 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02857/2.674, allocations: 14.61 MB / 1.355 GB, free: 53.34 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002161/2.675, allocations: 134.9 kB / 1.355 GB, free: 53.22 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.105e-05/2.675, allocations: 12 kB / 1.355 GB, free: 53.21 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001206/2.675, allocations: 40.75 kB / 1.355 GB, free: 53.2 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2901/2.965, allocations: 30.1 MB / 1.385 GB, free: 110 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.445e-05/2.965, allocations: 3.625 kB / 1.385 GB, free: 110 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006898/2.972, allocations: 1.161 MB / 1.386 GB, free: 110 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005925/2.978, allocations: 1.714 MB / 1.388 GB, free: 109.9 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001672/2.98, allocations: 12.03 kB / 1.388 GB, free: 109.9 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01515/2.995, allocations: 11.7 MB / 1.399 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.142e-06/2.995, allocations: 2.469 kB / 1.399 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03593/3.031, allocations: 23.95 MB / 1.422 GB, free: 106.5 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00343/3.034, allocations: 0.9197 MB / 1.423 GB, free: 106.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003199/3.037, allocations: 2.656 kB / 1.423 GB, free: 106.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005785/3.043, allocations: 267 kB / 1.424 GB, free: 106.4 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001382/3.045, allocations: 318.3 kB / 1.424 GB, free: 106.4 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005441/3.045, allocations: 171.3 kB / 1.424 GB, free: 106.4 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.01103/3.056, allocations: 5.768 MB / 1.43 GB, free: 105.2 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.02077/3.077, allocations: 2.87 MB / 1.432 GB, free: 105.2 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (gc1.actuatedRevolute_b.phi,gc1.actuatedRevolute_b.w,gc2.actuatedRevolute_b.phi,gc2.actuatedRevolute_b.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (600): * Single equations (assignments): 583 * Array equations: 15 * 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%) 32,(1,100.0%) 32} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002969/3.08, allocations: 186.9 kB / 1.433 GB, free: 105.1 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.03258/3.113, allocations: 18.44 MB / 1.451 GB, free: 99.63 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.093e-05/3.113, allocations: 2.625 kB / 1.451 GB, free: 99.63 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.01309/3.126, allocations: 7.02 MB / 1.457 GB, free: 97.12 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008366/3.134, allocations: 0.9125 MB / 1.458 GB, free: 96.72 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07811/3.212, allocations: 28.46 MB / 1.486 GB, free: 79.39 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02684/3.239, allocations: 11.07 MB / 1.497 GB, free: 71.2 MB / 0.5417 GB Notification: Performance of SimCode: time 9.92e-07/3.239, allocations: 0 / 1.497 GB, free: 71.2 MB / 0.5417 GB Notification: Performance of Templates: time 0.4867/3.726, allocations: 115.9 MB / 1.61 GB, free: 96.96 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Parts/Rotor1D/GearConstraint2/GearConstraint2.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches