Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint") translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001657/0.001657, allocations: 178.7 kB / 16.41 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.427/1.427, allocations: 205.4 MB / 222.5 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000766/0.0007659, allocations: 98.28 kB / 270.9 MB, free: 8.348 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3305/0.3305, allocations: 43.56 MB / 362.7 MB, free: 52.15 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003848/0.0003848, allocations: 11.98 kB / 431.4 MB, free: 6.168 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1267/0.1271, allocations: 58.85 MB / 490.2 MB, free: 11.23 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint): time 0.276/0.4032, allocations: 63.72 MB / 0.541 GB, free: 5.199 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.03705/0.4403, allocations: 13.4 MB / 0.5541 GB, free: 12.05 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01631/0.4566, allocations: 302.7 kB / 0.5543 GB, free: 12 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0113/0.468, allocations: 3.304 MB / 0.5576 GB, free: 10.84 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02901/0.497, allocations: 9.741 MB / 0.5671 GB, free: 6.75 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004355/0.5014, allocations: 0.8017 MB / 0.5679 GB, free: 6.434 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.04361/0.545, allocations: 34.98 MB / 0.602 GB, free: 8.164 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01001/0.5551, allocations: 6.628 MB / 0.6085 GB, free: 1.512 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003705/0.5588, allocations: 1.716 MB / 0.6102 GB, free: 15.79 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004245/0.5631, allocations: 2.648 MB / 0.6128 GB, free: 13.13 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001174/0.5643, allocations: 192 kB / 0.6129 GB, free: 12.95 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00288/0.5672, allocations: 0.9792 MB / 0.6139 GB, free: 11.96 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002721/0.5699, allocations: 2.26 MB / 0.6161 GB, free: 9.699 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001561/0.5715, allocations: 1.084 MB / 0.6172 GB, free: 8.605 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007997/0.5795, allocations: 7.419 MB / 0.6244 GB, free: 1.168 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.5796, allocations: 0 / 0.6244 GB, free: 1.168 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.314e-06/0.5796, allocations: 0 / 0.6244 GB, free: 1.168 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003119/0.5799, allocations: 0 / 0.6244 GB, free: 1.168 MB / 442.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.01249/0.5924, allocations: 5.274 MB / 0.6296 GB, free: 11.82 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.5924, allocations: 8.031 kB / 0.6296 GB, free: 11.81 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01204/0.6045, allocations: 2.668 MB / 0.6322 GB, free: 9.129 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009241/0.6138, allocations: 3.904 MB / 0.636 GB, free: 5.168 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003007/0.6141, allocations: 316 kB / 0.6363 GB, free: 4.855 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001492/0.6156, allocations: 451.6 kB / 0.6367 GB, free: 4.414 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0332/0.6488, allocations: 12.23 MB / 0.6487 GB, free: 7.414 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002589/0.6492, allocations: 59.48 kB / 0.6487 GB, free: 7.355 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001001/0.6502, allocations: 195.8 kB / 0.6489 GB, free: 7.164 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005733/0.6559, allocations: 2.206 MB / 0.6511 GB, free: 4.957 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03078/0.6867, allocations: 10.5 MB / 0.6613 GB, free: 10.43 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3042/0.9909, allocations: 47.56 MB / 0.7078 GB, free: 107.4 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01032/1.001, allocations: 4.592 MB / 0.7123 GB, free: 105.6 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003289/1.005, allocations: 2.642 MB / 0.7148 GB, free: 104.5 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01441/1.019, allocations: 10.44 MB / 0.725 GB, free: 99.41 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.699e-05/1.019, allocations: 56.31 kB / 0.7251 GB, free: 99.36 MB / 490.7 MB Notification: Performance of pre-optimization done (n=192): time 5.671e-06/1.019, allocations: 0 / 0.7251 GB, free: 99.36 MB / 490.7 MB Notification: Performance of matching and sorting (n=218): time 0.0543/1.073, allocations: 21 MB / 0.7456 GB, free: 91.51 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.406e-05/1.074, allocations: 211.1 kB / 0.7458 GB, free: 91.29 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005493/1.079, allocations: 4.8 MB / 0.7505 GB, free: 89.57 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004089/1.08, allocations: 62.27 kB / 0.7505 GB, free: 89.51 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001697/1.081, allocations: 3.716 MB / 0.7542 GB, free: 86.66 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008087/1.082, allocations: 0.8419 MB / 0.755 GB, free: 86.05 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002481/1.082, allocations: 134.5 kB / 0.7551 GB, free: 85.94 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000257/1.083, allocations: 0.5957 MB / 0.7557 GB, free: 85.51 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003259/1.086, allocations: 2.559 MB / 0.7582 GB, free: 84.36 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004415/1.09, allocations: 6.536 MB / 0.7646 GB, free: 77.07 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004607/1.095, allocations: 3.997 MB / 0.7685 GB, free: 73.07 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.085e-05/1.095, allocations: 40 kB / 0.7685 GB, free: 73.03 MB / 490.7 MB Notification: Performance of matching and sorting (n=896) (initialization): time 0.01644/1.111, allocations: 10.2 MB / 0.7785 GB, free: 62.81 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.574e-05/1.112, allocations: 76.23 kB / 0.7785 GB, free: 62.74 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001263/1.112, allocations: 136 kB / 0.7787 GB, free: 62.61 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004051/1.116, allocations: 1.634 MB / 0.7803 GB, free: 60.97 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004975/1.121, allocations: 1.571 MB / 0.7818 GB, free: 59.39 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0101/1.131, allocations: 9.554 MB / 0.7911 GB, free: 49.57 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00571/1.137, allocations: 387.3 kB / 0.7915 GB, free: 49.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009581/1.138, allocations: 404 kB / 0.7919 GB, free: 48.8 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 634 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (834): * Single equations (assignments): 829 * 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 {(3,77.8%) 31,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004668/1.142, allocations: 2.58 MB / 0.7944 GB, free: 46.21 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008906/1.143, allocations: 422.6 kB / 0.7948 GB, free: 45.79 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007428/1.151, allocations: 4.625 MB / 0.7993 GB, free: 41.14 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-05/1.151, allocations: 20 kB / 0.7993 GB, free: 41.12 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.293e-05/1.151, allocations: 8 kB / 0.7994 GB, free: 41.12 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.975e-05/1.151, allocations: 15.95 kB / 0.7994 GB, free: 41.1 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01575/1.166, allocations: 10.49 MB / 0.8096 GB, free: 30.59 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.02e-05/1.167, allocations: 0 / 0.8096 GB, free: 30.59 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001554/1.168, allocations: 347.5 kB / 0.8099 GB, free: 30.25 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003677/1.172, allocations: 1.36 MB / 0.8113 GB, free: 28.88 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001753/1.172, allocations: 39.94 kB / 0.8113 GB, free: 28.84 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008672/1.181, allocations: 8.738 MB / 0.8198 GB, free: 19.84 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.235e-06/1.181, allocations: 0 / 0.8198 GB, free: 19.84 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01036/1.191, allocations: 7.569 MB / 0.8272 GB, free: 12.24 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001849/1.193, allocations: 0.7845 MB / 0.828 GB, free: 11.43 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000434/1.193, allocations: 32 kB / 0.828 GB, free: 11.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001573/1.195, allocations: 143.8 kB / 0.8282 GB, free: 11.26 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003326/1.195, allocations: 129.1 kB / 0.8283 GB, free: 11.14 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001393/1.195, allocations: 59.98 kB / 0.8284 GB, free: 11.08 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004188/1.2, allocations: 3.014 MB / 0.8313 GB, free: 8.07 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.2, allocations: 0 / 0.8313 GB, free: 8.07 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005316/1.205, allocations: 1.268 MB / 0.8325 GB, free: 6.805 MB / 490.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 () * Number of clocked 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.0003966/1.205, allocations: 168.4 kB / 0.8327 GB, free: 6.633 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.008468/1.214, allocations: 6.36 MB / 0.8389 GB, free: 284 kB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.509e-06/1.214, allocations: 0 / 0.8389 GB, free: 284 kB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003214/1.217, allocations: 2.198 MB / 0.8411 GB, free: 14.06 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003081/1.22, allocations: 0.5311 MB / 0.8416 GB, free: 13.54 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02486/1.245, allocations: 14.35 MB / 0.8556 GB, free: 15.15 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004849/1.25, allocations: 3.978 MB / 0.8595 GB, free: 11.14 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001422/1.251, allocations: 335.4 kB / 0.8598 GB, free: 10.82 MB / 0.5105 GB Notification: Performance of SimCode: time 1.042e-06/1.251, allocations: 0 / 0.8598 GB, free: 10.82 MB / 0.5105 GB Notification: Performance of Templates: time 0.4148/1.666, allocations: 117.5 MB / 0.9745 GB, free: 84.93 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Parts/Rotor1D/GearConstraint/GearConstraint.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches