Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001844/0.001844, allocations: 112.5 kB / 20.43 MB, free: 1.312 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002206/0.002206, allocations: 208.8 kB / 23.74 MB, free: 4.543 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.429/1.429, allocations: 230.5 MB / 257.4 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00209/0.00209, allocations: 67.89 kB / 377.8 MB, free: 3.086 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2584/0.2605, allocations: 53.41 MB / 431.2 MB, free: 6.684 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.0165/0.277, allocations: 13.53 MB / 444.7 MB, free: 9.098 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009331/0.2863, allocations: 4.602 MB / 449.3 MB, free: 4.484 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001945/0.2882, allocations: 111.4 kB / 449.4 MB, free: 4.375 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008072/0.2963, allocations: 4.244 MB / 453.7 MB, free: 120 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005823/0.3021, allocations: 2.194 MB / 455.9 MB, free: 13.91 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002257/0.3044, allocations: 0.9359 MB / 456.8 MB, free: 12.98 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.008627/0.313, allocations: 6.121 MB / 462.9 MB, free: 6.844 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005669/0.3187, allocations: 4.032 MB / 467 MB, free: 2.746 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003489/0.3222, allocations: 2.154 MB / 469.1 MB, free: 0.5859 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004652/0.3268, allocations: 3.014 MB / 472.1 MB, free: 13.56 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001171/0.328, allocations: 472 kB / 472.6 MB, free: 13.1 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002858/0.3308, allocations: 1.381 MB / 474 MB, free: 11.72 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003051/0.3339, allocations: 2.575 MB / 476.5 MB, free: 9.137 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004006/0.3379, allocations: 2.886 MB / 479.4 MB, free: 6.234 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01046/0.3484, allocations: 9.2 MB / 488.6 MB, free: 13 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.3484, allocations: 0 / 488.6 MB, free: 13 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3484, allocations: 3.844 kB / 488.6 MB, free: 13 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001794/0.3486, allocations: 0 / 488.6 MB, free: 13 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1731 * Number of variables: 1731 Notification: Performance of Generate backend data structure: time 0.01283/0.3614, allocations: 6.346 MB / 495 MB, free: 6.586 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.3614, allocations: 16.02 kB / 495 MB, free: 6.57 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001179/0.3626, allocations: 0.8268 MB / 495.8 MB, free: 5.734 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03614/0.3987, allocations: 6.098 MB / 0.4902 GB, free: 15.62 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01088/0.4096, allocations: 4.133 MB / 0.4942 GB, free: 11.43 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003021/0.4099, allocations: 300.1 kB / 0.4945 GB, free: 11.14 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001617/0.4115, allocations: 431.7 kB / 0.4949 GB, free: 10.71 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02364/0.4352, allocations: 11.42 MB / 0.506 GB, free: 14.55 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000269/0.4354, allocations: 55.53 kB / 0.5061 GB, free: 14.49 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001404/0.4368, allocations: 183.9 kB / 0.5063 GB, free: 14.31 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003772/0.4406, allocations: 2.034 MB / 0.5083 GB, free: 12.27 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01988/0.4605, allocations: 9.686 MB / 0.5177 GB, free: 2.57 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2427/0.7032, allocations: 44.69 MB / 0.5614 GB, free: 69.86 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008962/0.7122, allocations: 3.654 MB / 0.5649 GB, free: 68.87 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002202/0.7144, allocations: 2.176 MB / 0.567 GB, free: 67.96 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01169/0.7261, allocations: 8.943 MB / 0.5758 GB, free: 63.08 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.212e-05/0.7261, allocations: 53.91 kB / 0.5758 GB, free: 63.03 MB / 446.1 MB Notification: Performance of pre-optimization done (n=171): time 4.278e-06/0.7261, allocations: 2.438 kB / 0.5758 GB, free: 63.03 MB / 446.1 MB Notification: Performance of matching and sorting (n=197): time 0.03891/0.765, allocations: 18.29 MB / 0.5937 GB, free: 46.12 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.8e-05/0.7651, allocations: 201.2 kB / 0.5939 GB, free: 45.88 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004795/0.7699, allocations: 4.714 MB / 0.5985 GB, free: 41.24 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002993/0.7702, allocations: 49.7 kB / 0.5985 GB, free: 41.18 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001418/0.7716, allocations: 3.74 MB / 0.6022 GB, free: 37.72 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005684/0.7721, allocations: 0.7856 MB / 0.603 GB, free: 36.95 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00114/0.7733, allocations: 1.262 MB / 0.6042 GB, free: 35.67 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.473e-05/0.7733, allocations: 301.1 kB / 0.6045 GB, free: 35.38 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002251/0.7756, allocations: 2.187 MB / 0.6066 GB, free: 33.18 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003322/0.7789, allocations: 6.01 MB / 0.6125 GB, free: 25.27 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006179/0.7851, allocations: 8.891 MB / 0.6212 GB, free: 14.49 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.098e-05/0.7851, allocations: 40 kB / 0.6212 GB, free: 14.45 MB / 446.1 MB Notification: Performance of matching and sorting (n=815) (initialization): time 0.01097/0.7961, allocations: 8.775 MB / 0.6298 GB, free: 5.66 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.876e-05/0.7962, allocations: 67.94 kB / 0.6298 GB, free: 5.594 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.293e-05/0.7963, allocations: 132 kB / 0.63 GB, free: 5.465 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002487/0.7987, allocations: 1.079 MB / 0.631 GB, free: 4.383 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003454/0.8022, allocations: 1.419 MB / 0.6324 GB, free: 2.961 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01018/0.8124, allocations: 8.638 MB / 0.6408 GB, free: 10.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004085/0.8165, allocations: 345 kB / 0.6412 GB, free: 9.766 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006238/0.8171, allocations: 391.3 kB / 0.6415 GB, free: 9.387 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 614 * Number of states: 0 () * Number of discrete variables: 47 (torque1.torqueArrow.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,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 (753): * Single equations (assignments): 748 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,33,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003924/0.821, allocations: 2.45 MB / 0.6439 GB, free: 6.922 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007642/0.8218, allocations: 433.1 kB / 0.6443 GB, free: 6.496 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00665/0.8284, allocations: 3.479 MB / 0.6477 GB, free: 3.004 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.348e-05/0.8285, allocations: 20 kB / 0.6478 GB, free: 2.984 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.554e-05/0.8285, allocations: 8.25 kB / 0.6478 GB, free: 2.977 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.84e-05/0.8285, allocations: 11.97 kB / 0.6478 GB, free: 2.965 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01822/0.8467, allocations: 8.895 MB / 0.6565 GB, free: 10.04 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.35e-05/0.8467, allocations: 0 / 0.6565 GB, free: 10.04 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001446/0.8482, allocations: 299.5 kB / 0.6568 GB, free: 9.742 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002706/0.8509, allocations: 0.8573 MB / 0.6576 GB, free: 8.879 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001755/0.8511, allocations: 39.92 kB / 0.6576 GB, free: 8.84 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01064/0.8617, allocations: 7.714 MB / 0.6652 GB, free: 0.9023 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.8617, allocations: 4 kB / 0.6652 GB, free: 0.8984 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01007/0.8718, allocations: 6.055 MB / 0.6711 GB, free: 10.81 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001138/0.8729, allocations: 397 kB / 0.6715 GB, free: 10.42 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007264/0.8736, allocations: 28 kB / 0.6715 GB, free: 10.39 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001722/0.8754, allocations: 99.88 kB / 0.6716 GB, free: 10.3 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003475/0.8757, allocations: 125.1 kB / 0.6717 GB, free: 10.17 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001436/0.8758, allocations: 55.98 kB / 0.6718 GB, free: 10.12 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.005076/0.8809, allocations: 2.973 MB / 0.6747 GB, free: 7.148 MB / 494.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.8809, allocations: 0 / 0.6747 GB, free: 7.148 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004943/0.8859, allocations: 1.127 MB / 0.6758 GB, free: 6.023 MB / 494.1 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 (147): * Single equations (assignments): 142 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,27,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01024/0.8961, allocations: 6.72 MB / 0.6823 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.009283/0.9054, allocations: 5.333 MB / 0.6875 GB, free: 9.941 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.9054, allocations: 4 kB / 0.6875 GB, free: 9.938 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003114/0.9085, allocations: 1.769 MB / 0.6893 GB, free: 8.141 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003364/0.9119, allocations: 0.5726 MB / 0.6898 GB, free: 7.578 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2881/1.2, allocations: 51.19 MB / 0.7398 GB, free: 192.6 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004709/1.205, allocations: 3.816 MB / 0.7435 GB, free: 191.8 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004118/1.209, allocations: 1.993 MB / 0.7455 GB, free: 191.8 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002603/1.211, allocations: 2.332 MB / 0.7478 GB, free: 191.3 MB / 0.545 GB Notification: Performance of SimCode: time 1.152e-06/1.211, allocations: 0 / 0.7478 GB, free: 191.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1626/1.374, allocations: 88.72 MB / 0.8344 GB, free: 114 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.09/28.47, allocations: 18.42 kB / 0.8344 GB, free: 114 MB / 0.545 GB " [Timeout remaining time 631] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/GearConstraint/GearConstraint.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 31.911899800878018]