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.001194/0.001194, allocations: 112.7 kB / 17.33 MB, free: 6.012 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.001338/0.001339, allocations: 193.3 kB / 18.25 MB, free: 5.105 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.375/1.375, allocations: 222.9 MB / 241.9 MB, free: 15.42 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.2097/0.2097, allocations: 44.17 MB / 336.2 MB, free: 2.941 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 64.31 kB / 407.9 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1244/0.1256, allocations: 60.82 MB / 468.7 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.3154/0.441, allocations: 68.42 MB / 0.5245 GB, free: 9.992 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03157/0.4727, allocations: 14.14 MB / 0.5383 GB, free: 4.66 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0165/0.4892, allocations: 310.4 kB / 0.5386 GB, free: 4.605 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009168/0.4985, allocations: 4.969 MB / 0.5435 GB, free: 2.871 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008192/0.5067, allocations: 2.437 MB / 0.5459 GB, free: 1.434 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003211/0.51, allocations: 1.312 MB / 0.5471 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01333/0.5233, allocations: 8.683 MB / 0.5556 GB, free: 11.69 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009763/0.5331, allocations: 7.379 MB / 0.5628 GB, free: 4.242 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005724/0.5389, allocations: 2.839 MB / 0.5656 GB, free: 1.395 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006546/0.5455, allocations: 4.137 MB / 0.5696 GB, free: 13.24 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002558/0.5481, allocations: 0.6367 MB / 0.5703 GB, free: 12.61 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005265/0.5534, allocations: 1.802 MB / 0.572 GB, free: 10.8 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004827/0.5582, allocations: 3.383 MB / 0.5753 GB, free: 7.414 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008394/0.5666, allocations: 3.738 MB / 0.579 GB, free: 3.656 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01604/0.5827, allocations: 11.75 MB / 0.5905 GB, free: 7.871 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.184e-06/0.5828, allocations: 4 kB / 0.5905 GB, free: 7.867 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.5828, allocations: 0 / 0.5905 GB, free: 7.867 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003791/0.5832, allocations: 0 / 0.5905 GB, free: 7.867 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.02208/0.6052, allocations: 7.912 MB / 0.5982 GB, free: 15.87 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.632e-05/0.6053, allocations: 12.03 kB / 0.5982 GB, free: 15.86 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01474/0.62, allocations: 3.057 MB / 0.6012 GB, free: 12.79 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01161/0.6317, allocations: 5.006 MB / 0.6061 GB, free: 7.703 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003522/0.6321, allocations: 382.3 kB / 0.6064 GB, free: 7.328 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002068/0.6342, allocations: 0.519 MB / 0.6069 GB, free: 6.809 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03127/0.6654, allocations: 15.51 MB / 0.6221 GB, free: 6.398 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002405/0.6657, allocations: 67.42 kB / 0.6222 GB, free: 6.332 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00118/0.6669, allocations: 231.8 kB / 0.6224 GB, free: 6.105 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004042/0.671, allocations: 2.552 MB / 0.6249 GB, free: 3.551 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02983/0.7008, allocations: 13.1 MB / 0.6377 GB, free: 6.426 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08762/0.7885, allocations: 57.58 MB / 0.6939 GB, free: 11.25 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01841/0.807, allocations: 6.388 MB / 0.7001 GB, free: 4.727 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005068/0.8121, allocations: 3.446 MB / 0.7035 GB, free: 1.273 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2736/1.086, allocations: 11.55 MB / 0.7148 GB, free: 184.7 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.33e-05/1.086, allocations: 65.58 kB / 0.7148 GB, free: 184.7 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=248): time 5.109e-06/1.086, allocations: 0 / 0.7148 GB, free: 184.7 MB / 0.5294 GB Notification: Performance of matching and sorting (n=343): time 0.1302/1.216, allocations: 39.54 MB / 0.7534 GB, free: 162.5 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.364e-05/1.216, allocations: 243.8 kB / 0.7537 GB, free: 162.2 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006863/1.223, allocations: 5.707 MB / 0.7592 GB, free: 156.5 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.000757/1.224, allocations: 77.7 kB / 0.7593 GB, free: 156.4 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001996/1.226, allocations: 4.348 MB / 0.7636 GB, free: 152.1 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001523/1.227, allocations: 1.266 MB / 0.7648 GB, free: 150.8 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002147/1.229, allocations: 1.749 MB / 0.7665 GB, free: 149 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.26e-05/1.23, allocations: 305.1 kB / 0.7668 GB, free: 148.7 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00461/1.234, allocations: 4.085 MB / 0.7708 GB, free: 144.7 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00658/1.241, allocations: 8.665 MB / 0.7793 GB, free: 133.8 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01283/1.254, allocations: 13.56 MB / 0.7925 GB, free: 118 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001026/1.254, allocations: 48 kB / 0.7925 GB, free: 117.9 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1132) (initialization): time 0.02816/1.282, allocations: 16.38 MB / 0.8085 GB, free: 101.5 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.344e-05/1.282, allocations: 72 kB / 0.8086 GB, free: 101.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001378/1.282, allocations: 164.2 kB / 0.8088 GB, free: 101.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01202/1.294, allocations: 4.294 MB / 0.813 GB, free: 96.96 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005811/1.3, allocations: 1.898 MB / 0.8148 GB, free: 95.06 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0251/1.325, allocations: 21.55 MB / 0.8359 GB, free: 73.37 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006424/1.332, allocations: 0.4963 MB / 0.8363 GB, free: 72.87 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001246/1.333, allocations: 484 kB / 0.8368 GB, free: 72.4 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.004864/1.338, allocations: 3.126 MB / 0.8399 GB, free: 69.26 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001065/1.339, allocations: 0.5168 MB / 0.8404 GB, free: 68.74 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01843/1.357, allocations: 10.11 MB / 0.8502 GB, free: 58.56 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.817e-05/1.357, allocations: 39.83 kB / 0.8503 GB, free: 58.52 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.093e-05/1.357, allocations: 12 kB / 0.8503 GB, free: 58.51 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.313e-05/1.357, allocations: 19.94 kB / 0.8503 GB, free: 58.49 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03458/1.392, allocations: 20.15 MB / 0.87 GB, free: 38.17 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.3e-05/1.392, allocations: 8 kB / 0.87 GB, free: 38.16 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002222/1.394, allocations: 0.4914 MB / 0.8705 GB, free: 37.67 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01138/1.406, allocations: 3.853 MB / 0.8742 GB, free: 33.81 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005608/1.406, allocations: 64 kB / 0.8743 GB, free: 33.75 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02301/1.429, allocations: 19.13 MB / 0.893 GB, free: 14.48 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.292e-06/1.429, allocations: 8 kB / 0.893 GB, free: 14.47 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2932/1.723, allocations: 14.89 MB / 0.9075 GB, free: 166.9 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001822/1.725, allocations: 0.5721 MB / 0.9081 GB, free: 166.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001429/1.726, allocations: 62.97 kB / 0.9081 GB, free: 166.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003169/1.729, allocations: 232.5 kB / 0.9084 GB, free: 166.6 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008838/1.73, allocations: 233.3 kB / 0.9086 GB, free: 166.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003073/1.73, allocations: 93.78 kB / 0.9087 GB, free: 166.6 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006164/1.737, allocations: 3.606 MB / 0.9122 GB, free: 165.4 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.6e-07/1.737, allocations: 0 / 0.9122 GB, free: 165.4 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007939/1.744, allocations: 1.784 MB / 0.9139 GB, free: 165.2 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.0007909/1.745, allocations: 262.9 kB / 0.9142 GB, free: 165 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.02035/1.766, allocations: 13.28 MB / 0.9272 GB, free: 161.2 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.109e-05/1.766, allocations: 0 / 0.9272 GB, free: 161.2 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004661/1.77, allocations: 3.785 MB / 0.9309 GB, free: 159.6 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004428/1.775, allocations: 0.727 MB / 0.9316 GB, free: 159.3 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02804/1.803, allocations: 19.16 MB / 0.9503 GB, free: 145.4 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005646/1.809, allocations: 4.823 MB / 0.955 GB, free: 141.7 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005946/1.815, allocations: 2.582 MB / 0.9575 GB, free: 140.1 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001167/1.816, allocations: 351.4 kB / 0.9579 GB, free: 139.8 MB / 0.5294 GB Notification: Performance of SimCode: time 7.71e-07/1.816, allocations: 0 / 0.9579 GB, free: 139.8 MB / 0.5294 GB Notification: Performance of Templates: time 0.1119/1.928, allocations: 78.89 MB / 1.035 GB, free: 61.98 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