Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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: translateModel(ModelicaTest.MultiBody.FourbarVariants.JointUSP,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP") translateModel(ModelicaTest.MultiBody.FourbarVariants.JointUSP,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001267/0.001267, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001487/0.001487, allocations: 208.6 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.448/1.448, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2216/0.2216, allocations: 46.11 MB / 344.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001437/0.001438, allocations: 75.5 kB / 417.6 MB, free: 19.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1487/0.1501, allocations: 62.45 MB / 480 MB, free: 5.293 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.02026/0.1705, allocations: 15.95 MB / 496 MB, free: 5.273 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01405/0.1846, allocations: 5.475 MB / 0.4897 GB, free: 15.78 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003836/0.1884, allocations: 111.6 kB / 0.4898 GB, free: 15.67 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009994/0.1985, allocations: 5.109 MB / 0.4948 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008145/0.2067, allocations: 2.579 MB / 0.4973 GB, free: 7.957 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0048/0.2115, allocations: 1.396 MB / 0.4987 GB, free: 6.559 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.3039/0.5154, allocations: 8.225 MB / 0.5067 GB, free: 13.49 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01291/0.5284, allocations: 7.046 MB / 0.5136 GB, free: 12.52 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007662/0.5361, allocations: 2.767 MB / 0.5163 GB, free: 12.38 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009136/0.5453, allocations: 3.735 MB / 0.5199 GB, free: 12.02 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003577/0.5489, allocations: 0.6332 MB / 0.5205 GB, free: 12.02 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006686/0.5556, allocations: 1.772 MB / 0.5223 GB, free: 12.02 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006404/0.5621, allocations: 3.31 MB / 0.5255 GB, free: 11.23 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00944/0.5715, allocations: 3.693 MB / 0.5291 GB, free: 8.672 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0175/0.589, allocations: 11.63 MB / 0.5405 GB, free: 2.379 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.099e-05/0.5891, allocations: 0 / 0.5405 GB, free: 2.379 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.096e-06/0.5891, allocations: 0 / 0.5405 GB, free: 2.379 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0006376/0.5898, allocations: 0 / 0.5405 GB, free: 2.379 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2166 * Number of variables: 2166 Notification: Performance of Generate backend data structure: time 0.02684/0.6166, allocations: 7.89 MB / 0.5482 GB, free: 12.68 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.14e-05/0.6167, allocations: 11.5 kB / 0.5482 GB, free: 12.67 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01721/0.6339, allocations: 3.055 MB / 0.5512 GB, free: 9.605 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01451/0.6485, allocations: 4.927 MB / 0.556 GB, free: 4.855 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004612/0.649, allocations: 382.1 kB / 0.5564 GB, free: 4.527 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003036/0.652, allocations: 0.5087 MB / 0.5568 GB, free: 4.062 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04428/0.6963, allocations: 15.52 MB / 0.572 GB, free: 3.883 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007269/0.6971, allocations: 64.92 kB / 0.5721 GB, free: 3.844 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003325/0.7005, allocations: 237.8 kB / 0.5723 GB, free: 3.656 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004997/0.7055, allocations: 2.546 MB / 0.5748 GB, free: 1.148 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03258/0.7381, allocations: 13.1 MB / 0.5876 GB, free: 4.258 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09838/0.8366, allocations: 57.58 MB / 0.6438 GB, free: 9.84 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0189/0.8555, allocations: 6.397 MB / 0.6501 GB, free: 3.305 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00559/0.8612, allocations: 3.449 MB / 0.6534 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02274/0.884, allocations: 11.65 MB / 0.6648 GB, free: 3.828 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.784e-05/0.8841, allocations: 60.55 kB / 0.6649 GB, free: 3.762 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=248): time 6.743e-06/0.8841, allocations: 4 kB / 0.6649 GB, free: 3.758 MB / 0.4981 GB Notification: Performance of matching and sorting (n=343): time 0.1411/1.025, allocations: 39.1 MB / 0.703 GB, free: 12.71 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000149/1.025, allocations: 243.9 kB / 0.7033 GB, free: 12.42 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009501/1.035, allocations: 5.702 MB / 0.7088 GB, free: 6.73 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001083/1.036, allocations: 77.7 kB / 0.7089 GB, free: 6.648 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.004044/1.04, allocations: 4.345 MB / 0.7132 GB, free: 2.309 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.00217/1.042, allocations: 1.26 MB / 0.7144 GB, free: 1.059 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.2332/1.275, allocations: 1.752 MB / 0.7161 GB, free: 187.5 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 7.376e-05/1.276, allocations: 301.7 kB / 0.7164 GB, free: 187.2 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008205/1.284, allocations: 4.096 MB / 0.7204 GB, free: 186.8 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01119/1.295, allocations: 8.675 MB / 0.7289 GB, free: 179.2 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01943/1.315, allocations: 13.57 MB / 0.7421 GB, free: 169 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003192/1.315, allocations: 45.38 kB / 0.7422 GB, free: 169 MB / 0.545 GB Notification: Performance of matching and sorting (n=1132) (initialization): time 0.03589/1.351, allocations: 16.39 MB / 0.7582 GB, free: 163.5 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001516/1.351, allocations: 74.69 kB / 0.7582 GB, free: 163.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002238/1.351, allocations: 160.3 kB / 0.7584 GB, free: 163.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01364/1.365, allocations: 4.289 MB / 0.7626 GB, free: 162.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008363/1.373, allocations: 1.899 MB / 0.7644 GB, free: 162.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02997/1.403, allocations: 21.56 MB / 0.7855 GB, free: 143.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008406/1.412, allocations: 0.5002 MB / 0.786 GB, free: 143 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001936/1.414, allocations: 480 kB / 0.7864 GB, free: 142.5 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 720 * Number of states: 0 () * Number of discrete variables: 46 (jointUSP.prismatic.positiveBranch,body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],jointUSP.sphereColor[1],ground_rod.color[3],ground_rod.color[2],ground_rod.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1031): * Single equations (assignments): 1027 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,77,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006576/1.42, allocations: 3.126 MB / 0.7895 GB, free: 139.5 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001243/1.422, allocations: 0.518 MB / 0.79 GB, free: 139.3 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01873/1.44, allocations: 10.11 MB / 0.7999 GB, free: 129.1 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.045e-05/1.44, allocations: 36 kB / 0.7999 GB, free: 129 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.77e-05/1.44, allocations: 12 kB / 0.7999 GB, free: 129 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.779e-05/1.44, allocations: 15.95 kB / 0.7999 GB, free: 129 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03662/1.477, allocations: 20.17 MB / 0.8196 GB, free: 108.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.953e-05/1.477, allocations: 6.688 kB / 0.8196 GB, free: 108.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002319/1.48, allocations: 0.4992 MB / 0.8201 GB, free: 108.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01144/1.491, allocations: 3.846 MB / 0.8239 GB, free: 104.5 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006395/1.492, allocations: 64.94 kB / 0.8239 GB, free: 104.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02256/1.514, allocations: 19.1 MB / 0.8426 GB, free: 85.28 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.215e-06/1.514, allocations: 11.94 kB / 0.8426 GB, free: 85.27 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02305/1.537, allocations: 14.91 MB / 0.8572 GB, free: 70.18 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002482/1.54, allocations: 0.5723 MB / 0.8577 GB, free: 69.58 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009858/1.541, allocations: 71.98 kB / 0.8578 GB, free: 69.51 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002686/1.544, allocations: 229.5 kB / 0.858 GB, free: 69.29 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008555/1.544, allocations: 225.9 kB / 0.8582 GB, free: 69.07 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002496/1.545, allocations: 91.98 kB / 0.8583 GB, free: 68.98 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005044/1.55, allocations: 3.6 MB / 0.8618 GB, free: 65.4 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.01e-07/1.55, allocations: 0 / 0.8618 GB, free: 65.4 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008747/1.558, allocations: 1.764 MB / 0.8635 GB, free: 63.65 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * Number of states: 2 (revolute.phi,revolute.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 (261): * Single equations (assignments): 257 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,64,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007741/1.559, allocations: 251.8 kB / 0.8638 GB, free: 63.4 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.02008/1.579, allocations: 13.3 MB / 0.8768 GB, free: 50.12 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.345e-05/1.579, allocations: 4 kB / 0.8768 GB, free: 50.11 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004612/1.584, allocations: 3.786 MB / 0.8805 GB, free: 46.3 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004267/1.588, allocations: 0.7216 MB / 0.8812 GB, free: 45.61 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02688/1.615, allocations: 16.05 MB / 0.8969 GB, free: 29.43 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005935/1.621, allocations: 4.825 MB / 0.9016 GB, free: 24.57 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006201/1.627, allocations: 2.577 MB / 0.9041 GB, free: 21.98 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001116/1.629, allocations: 351.4 kB / 0.9044 GB, free: 21.64 MB / 0.545 GB Notification: Performance of SimCode: time 2.024e-06/1.629, allocations: 0 / 0.9044 GB, free: 21.64 MB / 0.545 GB Notification: Performance of Templates: time 0.3594/1.988, allocations: 78.7 MB / 0.9813 GB, free: 135.5 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/JointUSP/JointUSP.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches