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.001351/0.001351, allocations: 98.47 kB / 18.01 MB, free: 5.734 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.001651/0.001651, allocations: 176.9 kB / 18.91 MB, free: 4.871 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.372/1.372, allocations: 223.3 MB / 242.9 MB, free: 228 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2124/0.2124, allocations: 44.24 MB / 338.3 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003483/0.0003484, allocations: 12.86 kB / 411 MB, free: 27.31 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1143, allocations: 61.92 MB / 472.9 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.3063/0.4207, allocations: 66.72 MB / 0.527 GB, free: 9.992 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03447/0.4552, allocations: 14.18 MB / 0.5408 GB, free: 5.109 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01616/0.4714, allocations: 309.6 kB / 0.5411 GB, free: 5.055 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002768/0.4742, allocations: 0.5983 MB / 0.5417 GB, free: 4.82 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007631/0.4819, allocations: 2.478 MB / 0.5441 GB, free: 3.578 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003285/0.4852, allocations: 1.27 MB / 0.5454 GB, free: 2.816 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01388/0.4991, allocations: 11.65 MB / 0.5568 GB, free: 12.73 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01357/0.5127, allocations: 9.557 MB / 0.5661 GB, free: 3.73 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004426/0.5172, allocations: 1.982 MB / 0.568 GB, free: 1.824 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005413/0.5226, allocations: 3.392 MB / 0.5713 GB, free: 14.64 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001133/0.5238, allocations: 240 kB / 0.5716 GB, free: 14.41 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003559/0.5273, allocations: 1.479 MB / 0.573 GB, free: 12.99 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003203/0.5306, allocations: 2.878 MB / 0.5758 GB, free: 10.11 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005009/0.5356, allocations: 3.179 MB / 0.5789 GB, free: 6.922 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01037/0.546, allocations: 9.351 MB / 0.5881 GB, free: 13.81 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.546, allocations: 0 / 0.5881 GB, free: 13.81 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.546, allocations: 4 kB / 0.5881 GB, free: 13.8 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004421/0.5465, allocations: 0 / 0.5881 GB, free: 13.8 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.01689/0.5634, allocations: 6.523 MB / 0.5944 GB, free: 7.238 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.833e-05/0.5635, allocations: 8.031 kB / 0.5944 GB, free: 7.23 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01639/0.5799, allocations: 3.115 MB / 0.5975 GB, free: 4.105 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01241/0.5923, allocations: 5.015 MB / 0.6024 GB, free: 15.07 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004461/0.5928, allocations: 380.7 kB / 0.6027 GB, free: 14.74 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002121/0.595, allocations: 0.5111 MB / 0.6032 GB, free: 14.27 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03595/0.6309, allocations: 15.56 MB / 0.6184 GB, free: 13.95 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00033/0.6313, allocations: 67.42 kB / 0.6185 GB, free: 13.88 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001918/0.6332, allocations: 233.9 kB / 0.6187 GB, free: 13.7 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004651/0.6379, allocations: 2.544 MB / 0.6212 GB, free: 11.17 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0313/0.6692, allocations: 13.15 MB / 0.634 GB, free: 13.99 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08729/0.7566, allocations: 57.56 MB / 0.6902 GB, free: 3.082 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01863/0.7752, allocations: 6.427 MB / 0.6965 GB, free: 12.51 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005045/0.7803, allocations: 3.452 MB / 0.6999 GB, free: 9.051 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2632/1.044, allocations: 11.56 MB / 0.7112 GB, free: 185.6 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.652e-05/1.044, allocations: 63.36 kB / 0.7112 GB, free: 185.6 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=248): time 7.394e-06/1.044, allocations: 0.9688 kB / 0.7112 GB, free: 185.6 MB / 0.5294 GB Notification: Performance of matching and sorting (n=343): time 0.1313/1.175, allocations: 39.6 MB / 0.7499 GB, free: 168.6 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.231e-05/1.175, allocations: 243.9 kB / 0.7501 GB, free: 168.3 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007565/1.183, allocations: 5.709 MB / 0.7557 GB, free: 162.6 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008419/1.184, allocations: 77.7 kB / 0.7558 GB, free: 162.5 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002099/1.186, allocations: 4.337 MB / 0.76 GB, free: 158.2 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001298/1.187, allocations: 1.269 MB / 0.7613 GB, free: 157 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008776/1.188, allocations: 0.7516 MB / 0.762 GB, free: 156.2 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.609e-05/1.188, allocations: 309.1 kB / 0.7623 GB, free: 155.9 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004774/1.193, allocations: 4.085 MB / 0.7663 GB, free: 151.8 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006964/1.2, allocations: 8.663 MB / 0.7747 GB, free: 140.9 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01282/1.213, allocations: 13.56 MB / 0.788 GB, free: 125.1 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001082/1.213, allocations: 44 kB / 0.788 GB, free: 125.1 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1132) (initialization): time 0.02949/1.242, allocations: 16.39 MB / 0.804 GB, free: 108.6 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.000111/1.242, allocations: 72 kB / 0.8041 GB, free: 108.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001574/1.242, allocations: 160 kB / 0.8043 GB, free: 108.4 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01271/1.255, allocations: 4.286 MB / 0.8084 GB, free: 104.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005975/1.261, allocations: 1.899 MB / 0.8103 GB, free: 102.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02561/1.287, allocations: 20.19 MB / 0.83 GB, free: 81.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007114/1.294, allocations: 0.5042 MB / 0.8305 GB, free: 81.39 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001421/1.295, allocations: 484.7 kB / 0.831 GB, free: 80.92 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.005558/1.301, allocations: 3.128 MB / 0.834 GB, free: 77.79 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001199/1.302, allocations: 0.5168 MB / 0.8345 GB, free: 77.26 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01958/1.322, allocations: 10.11 MB / 0.8444 GB, free: 67.09 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.207e-05/1.322, allocations: 36 kB / 0.8444 GB, free: 67.05 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.504e-05/1.322, allocations: 12 kB / 0.8444 GB, free: 67.04 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.874e-05/1.322, allocations: 19.94 kB / 0.8445 GB, free: 67.02 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03597/1.358, allocations: 20.15 MB / 0.8641 GB, free: 46.69 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.77e-05/1.358, allocations: 9.031 kB / 0.8641 GB, free: 46.68 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002419/1.361, allocations: 0.4914 MB / 0.8646 GB, free: 46.19 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01207/1.373, allocations: 3.846 MB / 0.8684 GB, free: 42.34 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006566/1.373, allocations: 75.86 kB / 0.8684 GB, free: 42.27 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02202/1.395, allocations: 17.81 MB / 0.8858 GB, free: 24.32 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.885e-06/1.395, allocations: 14.59 kB / 0.8859 GB, free: 24.31 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02375/1.419, allocations: 14.9 MB / 0.9004 GB, free: 9.203 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001702/1.421, allocations: 0.5801 MB / 0.901 GB, free: 8.598 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001168/1.422, allocations: 67.92 kB / 0.901 GB, free: 8.531 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002898/1.425, allocations: 231.7 kB / 0.9013 GB, free: 8.305 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006989/1.426, allocations: 226.2 kB / 0.9015 GB, free: 8.082 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002399/1.426, allocations: 93.25 kB / 0.9016 GB, free: 7.992 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.2758/1.702, allocations: 3.602 MB / 0.9051 GB, free: 167.8 MB / 0.5294 GB Notification: Performance of sort global known variables: time 4.31e-07/1.702, allocations: 0 / 0.9051 GB, free: 167.8 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01086/1.713, allocations: 1.788 MB / 0.9068 GB, free: 167.8 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.00129/1.714, allocations: 253.7 kB / 0.9071 GB, free: 167.8 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01768/1.732, allocations: 9.812 MB / 0.9166 GB, free: 165.6 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.392e-05/1.732, allocations: 7.938 kB / 0.9167 GB, free: 165.6 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005724/1.737, allocations: 3.788 MB / 0.9204 GB, free: 164 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01059/1.748, allocations: 0.6931 MB / 0.921 GB, free: 163.7 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0278/1.776, allocations: 19.8 MB / 0.9404 GB, free: 153.4 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005598/1.782, allocations: 4.792 MB / 0.945 GB, free: 151.7 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001765/1.783, allocations: 407.6 kB / 0.9454 GB, free: 151.7 MB / 0.5294 GB Notification: Performance of SimCode: time 8.62e-07/1.783, allocations: 0 / 0.9454 GB, free: 151.7 MB / 0.5294 GB Notification: Performance of Templates: time 0.1482/1.932, allocations: 121.4 MB / 1.064 GB, free: 34.79 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/JointUSP/JointUSP.csv","/var/lib/jenkins1/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