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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001072/0.001072, allocations: 170.4 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.454/1.454, allocations: 221.5 MB / 230.7 MB, free: 7.582 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008849/0.000885, allocations: 97.84 kB / 281.6 MB, free: 5.324 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1894/0.1894, allocations: 44.15 MB / 376.5 MB, free: 3.051 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.375e-05/2.377e-05, allocations: 4.219 kB / 444.6 MB, free: 15.24 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1341/0.1341, allocations: 61.91 MB / 0.4947 GB, free: 1.266 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4143/0.5484, allocations: 116.7 MB / 0.6086 GB, free: 11.77 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002621/0.5488, allocations: 79.95 kB / 0.6087 GB, free: 11.7 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6302/1.179, allocations: 142 MB / 0.7474 GB, free: 108 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.104e-06/1.179, allocations: 0 / 0.7474 GB, free: 108 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0004654/1.18, allocations: 133.8 kB / 0.7475 GB, free: 108 MB / 0.4948 GB 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.02168/1.201, allocations: 6.622 MB / 0.754 GB, free: 105.5 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.402e-05/1.201, allocations: 14.86 kB / 0.754 GB, free: 105.5 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03731/1.239, allocations: 9.332 MB / 0.7631 GB, free: 104.3 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02368/1.262, allocations: 8.65 MB / 0.7716 GB, free: 101.3 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004088/1.263, allocations: 206.7 kB / 0.7718 GB, free: 101.3 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003395/1.266, allocations: 387.6 kB / 0.7721 GB, free: 101.3 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01763/1.284, allocations: 9.341 MB / 0.7812 GB, free: 97.36 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03293/1.317, allocations: 13.27 MB / 0.7942 GB, free: 82.91 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000568/1.317, allocations: 91.23 kB / 0.7943 GB, free: 82.82 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003378/1.321, allocations: 36 kB / 0.7943 GB, free: 82.79 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002114/1.323, allocations: 1.391 MB / 0.7957 GB, free: 81.4 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07712/1.4, allocations: 62.25 MB / 0.8565 GB, free: 17.75 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005239/1.405, allocations: 4.355 MB / 0.8607 GB, free: 13.26 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003479/1.409, allocations: 3.009 MB / 0.8637 GB, free: 10.25 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002045/1.411, allocations: 2.384 MB / 0.866 GB, free: 7.512 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001087/1.411, allocations: 68.08 kB / 0.8661 GB, free: 7.438 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=251): time 6.653e-06/1.411, allocations: 0 / 0.8661 GB, free: 7.438 MB / 0.4948 GB Notification: Performance of matching and sorting (n=343): time 0.3853/1.797, allocations: 27.41 MB / 0.8928 GB, free: 114.3 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001085/1.797, allocations: 238.5 kB / 0.8931 GB, free: 114.1 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008931/1.806, allocations: 4.36 MB / 0.8973 GB, free: 113.8 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0008796/1.807, allocations: 26.98 kB / 0.8973 GB, free: 113.8 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003649/1.81, allocations: 4.505 MB / 0.9017 GB, free: 112.4 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001865/1.812, allocations: 1.217 MB / 0.9029 GB, free: 111.6 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007229/1.813, allocations: 1.406 kB / 0.9029 GB, free: 111.6 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0005467/1.813, allocations: 0.6593 MB / 0.9036 GB, free: 111.3 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005503/1.819, allocations: 3.436 MB / 0.9069 GB, free: 111.3 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008889/1.828, allocations: 8.092 MB / 0.9148 GB, free: 105.3 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008051/1.836, allocations: 5.214 MB / 0.9199 GB, free: 105.2 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00019/1.836, allocations: 46.72 kB / 0.92 GB, free: 105.2 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1105) (initialization): time 0.02944/1.866, allocations: 13.68 MB / 0.9333 GB, free: 101.1 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001368/1.866, allocations: 79.56 kB / 0.9334 GB, free: 101.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001967/1.866, allocations: 163.2 kB / 0.9336 GB, free: 101.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01135/1.877, allocations: 3.504 MB / 0.937 GB, free: 100.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006968/1.884, allocations: 1.856 MB / 0.9388 GB, free: 100.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02309/1.907, allocations: 16.83 MB / 0.9552 GB, free: 92.57 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007206/1.915, allocations: 331 kB / 0.9555 GB, free: 92.55 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001842/1.917, allocations: 488 kB / 0.956 GB, free: 92.48 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 751 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1004): * Single equations (assignments): 1000 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 77} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002586/1.919, allocations: 0.5209 MB / 0.9565 GB, free: 92.05 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001296/1.921, allocations: 0.5045 MB / 0.957 GB, free: 91.77 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01792/1.938, allocations: 8.518 MB / 0.9653 GB, free: 88.87 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.357e-05/1.939, allocations: 39.67 kB / 0.9654 GB, free: 88.87 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-05/1.939, allocations: 16.86 kB / 0.9654 GB, free: 88.86 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.46e-05/1.939, allocations: 17.38 kB / 0.9654 GB, free: 88.86 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03884/1.978, allocations: 17.28 MB / 0.9823 GB, free: 82.37 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.933e-05/1.978, allocations: 8 kB / 0.9823 GB, free: 82.36 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002495/1.98, allocations: 0.4902 MB / 0.9828 GB, free: 82.32 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01051/1.991, allocations: 3.047 MB / 0.9857 GB, free: 80.32 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001117/1.992, allocations: 12 kB / 0.9857 GB, free: 80.31 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01911/2.011, allocations: 14.49 MB / 0.9999 GB, free: 67.88 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.016e-05/2.011, allocations: 8.75 kB / 0.9999 GB, free: 67.87 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02195/2.033, allocations: 13.8 MB / 1.013 GB, free: 55.82 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001431/2.034, allocations: 0.5121 MB / 1.014 GB, free: 55.29 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001208/2.036, allocations: 11.94 kB / 1.014 GB, free: 55.28 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003079/2.039, allocations: 158.9 kB / 1.014 GB, free: 55.2 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007481/2.04, allocations: 231.6 kB / 1.014 GB, free: 55.04 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002517/2.04, allocations: 95.52 kB / 1.014 GB, free: 54.95 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.00474/2.045, allocations: 2.959 MB / 1.017 GB, free: 52.39 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5.61e-07/2.045, allocations: 4.5 kB / 1.017 GB, free: 52.39 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01014/2.055, allocations: 1.459 MB / 1.019 GB, free: 50.95 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 2 (revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (259): * Single equations (assignments): 255 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 64} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009125/2.056, allocations: 206.1 kB / 1.019 GB, free: 50.76 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01213/2.068, allocations: 8.441 MB / 1.027 GB, free: 43.02 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.79e-05/2.068, allocations: 9 kB / 1.027 GB, free: 43.02 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004272/2.072, allocations: 3.362 MB / 1.03 GB, free: 39.92 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003634/2.076, allocations: 0.5792 MB / 1.031 GB, free: 39.44 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02218/2.098, allocations: 12.73 MB / 1.043 GB, free: 26.57 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005066/2.103, allocations: 4.948 MB / 1.048 GB, free: 21.62 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.006632/2.11, allocations: 2.68 MB / 1.051 GB, free: 18.98 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001102/2.111, allocations: 331.4 kB / 1.051 GB, free: 18.66 MB / 0.5105 GB Notification: Performance of SimCode: time 1.082e-06/2.111, allocations: 0 / 1.051 GB, free: 18.66 MB / 0.5105 GB Notification: Performance of Templates: time 0.4657/2.577, allocations: 63.16 MB / 1.113 GB, free: 113.1 MB / 0.5261 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","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches