Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.JointUSP,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP") translateModel(ModelicaTest.MultiBody.FourbarVariants.JointUSP,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001457/0.001457, allocations: 107.6 kB / 17.21 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001397/0.001397, allocations: 194 kB / 18.12 MB, free: 5.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.435/1.435, allocations: 222.9 MB / 241.8 MB, free: 15.35 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2252/0.2252, allocations: 44.18 MB / 336.1 MB, free: 2.961 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 63.27 kB / 407.7 MB, free: 27.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1344/0.1356, allocations: 60.84 MB / 468.5 MB, free: 14.81 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.3684/0.504, allocations: 68.41 MB / 0.5243 GB, free: 9.938 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03549/0.5396, allocations: 14.26 MB / 0.5383 GB, free: 4.582 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01535/0.555, allocations: 303.5 kB / 0.5386 GB, free: 4.535 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008353/0.5634, allocations: 5.151 MB / 0.5436 GB, free: 2.699 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00686/0.5703, allocations: 2.475 MB / 0.546 GB, free: 1.227 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003553/0.5739, allocations: 1.277 MB / 0.5473 GB, free: 468 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01524/0.5891, allocations: 11.64 MB / 0.5586 GB, free: 8.477 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0107/0.5999, allocations: 6.888 MB / 0.5653 GB, free: 1.527 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005846/0.6058, allocations: 2.445 MB / 0.5677 GB, free: 15.07 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006764/0.6126, allocations: 3.949 MB / 0.5716 GB, free: 11.11 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002227/0.6148, allocations: 428 kB / 0.572 GB, free: 10.7 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004998/0.6198, allocations: 1.677 MB / 0.5736 GB, free: 9.016 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00497/0.6248, allocations: 3.152 MB / 0.5767 GB, free: 5.855 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006616/0.6315, allocations: 3.499 MB / 0.5801 GB, free: 2.336 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01407/0.6456, allocations: 11.52 MB / 0.5914 GB, free: 6.781 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.6456, allocations: 0 / 0.5914 GB, free: 6.781 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.6456, allocations: 0 / 0.5914 GB, free: 6.781 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003895/0.646, allocations: 0 / 0.5914 GB, free: 6.781 MB / 430.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.02137/0.6674, allocations: 7.908 MB / 0.5991 GB, free: 14.79 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.287e-05/0.6675, allocations: 12.03 kB / 0.5991 GB, free: 14.78 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01483/0.6823, allocations: 3.057 MB / 0.6021 GB, free: 11.71 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01482/0.6972, allocations: 5.006 MB / 0.607 GB, free: 6.621 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007787/0.6981, allocations: 378.4 kB / 0.6074 GB, free: 6.25 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00297/0.7011, allocations: 0.5152 MB / 0.6079 GB, free: 5.734 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03792/0.739, allocations: 15.51 MB / 0.623 GB, free: 5.316 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003617/0.7394, allocations: 59.44 kB / 0.6231 GB, free: 5.258 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002047/0.7415, allocations: 235.8 kB / 0.6233 GB, free: 5.027 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004615/0.7461, allocations: 2.552 MB / 0.6258 GB, free: 2.473 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03283/0.779, allocations: 13.1 MB / 0.6386 GB, free: 5.348 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0933/0.8723, allocations: 57.58 MB / 0.6948 GB, free: 10.18 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01859/0.891, allocations: 6.382 MB / 0.701 GB, free: 3.652 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005435/0.8964, allocations: 3.453 MB / 0.7044 GB, free: 196 kB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.317/1.214, allocations: 11.56 MB / 0.7157 GB, free: 183.9 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.585e-05/1.214, allocations: 61.72 kB / 0.7158 GB, free: 183.9 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=248): time 4.449e-06/1.214, allocations: 0 / 0.7158 GB, free: 183.9 MB / 0.5294 GB Notification: Performance of matching and sorting (n=343): time 0.1342/1.348, allocations: 39.53 MB / 0.7544 GB, free: 161.4 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001096/1.348, allocations: 243.9 kB / 0.7546 GB, free: 161.1 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007965/1.356, allocations: 5.707 MB / 0.7602 GB, free: 155.4 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001173/1.357, allocations: 77.7 kB / 0.7602 GB, free: 155.3 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002331/1.359, allocations: 4.352 MB / 0.7645 GB, free: 150.9 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001821/1.361, allocations: 1.254 MB / 0.7657 GB, free: 149.7 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0024/1.364, allocations: 1.753 MB / 0.7674 GB, free: 147.9 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 6.432e-05/1.364, allocations: 309 kB / 0.7677 GB, free: 147.6 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005126/1.369, allocations: 4.089 MB / 0.7717 GB, free: 143.5 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007697/1.377, allocations: 8.669 MB / 0.7802 GB, free: 132.6 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01348/1.39, allocations: 13.56 MB / 0.7934 GB, free: 116.8 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001195/1.39, allocations: 44 kB / 0.7935 GB, free: 116.8 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1132) (initialization): time 0.02979/1.42, allocations: 16.38 MB / 0.8095 GB, free: 100.4 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001932/1.42, allocations: 72 kB / 0.8095 GB, free: 100.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002411/1.421, allocations: 156 kB / 0.8097 GB, free: 100.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0131/1.434, allocations: 4.276 MB / 0.8139 GB, free: 95.85 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006095/1.44, allocations: 1.899 MB / 0.8157 GB, free: 93.95 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02802/1.468, allocations: 20.18 MB / 0.8354 GB, free: 73.63 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006849/1.475, allocations: 0.5054 MB / 0.8359 GB, free: 73.13 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00146/1.476, allocations: 487.4 kB / 0.8364 GB, free: 72.66 MB / 0.5294 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.00618/1.482, allocations: 3.118 MB / 0.8394 GB, free: 69.53 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002338/1.485, allocations: 0.5207 MB / 0.8399 GB, free: 69 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0216/1.506, allocations: 10.1 MB / 0.8498 GB, free: 58.83 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.988e-05/1.507, allocations: 36 kB / 0.8498 GB, free: 58.8 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.411e-05/1.507, allocations: 16 kB / 0.8499 GB, free: 58.78 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.64e-05/1.507, allocations: 19.88 kB / 0.8499 GB, free: 58.76 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05579/1.562, allocations: 20.16 MB / 0.8696 GB, free: 38.43 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.876e-05/1.563, allocations: 8 kB / 0.8696 GB, free: 38.42 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00358/1.566, allocations: 0.4994 MB / 0.8701 GB, free: 37.93 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01819/1.584, allocations: 3.837 MB / 0.8738 GB, free: 34.08 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000876/1.585, allocations: 65.33 kB / 0.8739 GB, free: 34.02 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03607/1.621, allocations: 17.81 MB / 0.8912 GB, free: 16.08 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.106e-05/1.621, allocations: 11.94 kB / 0.8913 GB, free: 16.07 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3089/1.93, allocations: 14.9 MB / 0.9058 GB, free: 166.9 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001754/1.932, allocations: 0.5773 MB / 0.9064 GB, free: 166.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001577/1.934, allocations: 62.91 kB / 0.9064 GB, free: 166.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003957/1.938, allocations: 229.3 kB / 0.9067 GB, free: 166.7 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001265/1.939, allocations: 227.7 kB / 0.9069 GB, free: 166.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003221/1.939, allocations: 96.52 kB / 0.907 GB, free: 166.6 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.008305/1.948, allocations: 3.602 MB / 0.9105 GB, free: 165.5 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.31e-07/1.948, allocations: 3.828 kB / 0.9105 GB, free: 165.5 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01155/1.959, allocations: 1.781 MB / 0.9122 GB, free: 165.3 MB / 0.5294 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.001019/1.96, allocations: 260.7 kB / 0.9125 GB, free: 165.1 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01379/1.974, allocations: 9.805 MB / 0.922 GB, free: 161.3 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.031e-05/1.974, allocations: 1.719 kB / 0.922 GB, free: 161.3 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005014/1.979, allocations: 3.788 MB / 0.9257 GB, free: 159.7 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004594/1.984, allocations: 0.6976 MB / 0.9264 GB, free: 159.4 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02386/2.008, allocations: 19.15 MB / 0.9451 GB, free: 149.6 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005343/2.013, allocations: 4.823 MB / 0.9498 GB, free: 146.5 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006193/2.019, allocations: 2.588 MB / 0.9524 GB, free: 144.9 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001268/2.02, allocations: 346.5 kB / 0.9527 GB, free: 144.6 MB / 0.5294 GB Notification: Performance of SimCode: time 9.71e-07/2.02, allocations: 4 kB / 0.9527 GB, free: 144.6 MB / 0.5294 GB Notification: Performance of Templates: time 0.1019/2.122, allocations: 75.94 MB / 1.027 GB, free: 69.99 MB / 0.5294 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches