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.001092/0.001092, allocations: 106.8 kB / 17.98 MB, free: 5.219 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.001065/0.001065, allocations: 193.3 kB / 18.9 MB, free: 4.297 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.346/1.346, allocations: 222.9 MB / 242.6 MB, free: 15.29 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.2094/0.2094, allocations: 44.18 MB / 336.9 MB, free: 2.828 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001294/0.001294, allocations: 73.05 kB / 408.6 MB, free: 27.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1272/0.1285, allocations: 60.82 MB / 469.4 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.2995/0.428, allocations: 68.42 MB / 0.5252 GB, free: 10.01 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03257/0.4606, allocations: 14.14 MB / 0.539 GB, free: 4.668 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01714/0.4778, allocations: 306.8 kB / 0.5393 GB, free: 4.617 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008218/0.4861, allocations: 4.967 MB / 0.5441 GB, free: 2.891 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007058/0.4932, allocations: 2.433 MB / 0.5465 GB, free: 1.457 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002963/0.4962, allocations: 1.321 MB / 0.5478 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01083/0.507, allocations: 8.668 MB / 0.5563 GB, free: 11.66 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009233/0.5163, allocations: 7.387 MB / 0.5635 GB, free: 4.203 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005057/0.5214, allocations: 2.843 MB / 0.5663 GB, free: 1.352 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00596/0.5273, allocations: 4.137 MB / 0.5703 GB, free: 13.2 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0018/0.5292, allocations: 0.6328 MB / 0.5709 GB, free: 12.57 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004173/0.5334, allocations: 1.806 MB / 0.5727 GB, free: 10.76 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00422/0.5376, allocations: 3.371 MB / 0.576 GB, free: 7.383 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00689/0.5445, allocations: 3.745 MB / 0.5796 GB, free: 3.617 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01076/0.5553, allocations: 9.671 MB / 0.5891 GB, free: 9.926 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/0.5553, allocations: 4 kB / 0.5891 GB, free: 9.922 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.013e-06/0.5554, allocations: 0 / 0.5891 GB, free: 9.922 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000415/0.5558, allocations: 0 / 0.5891 GB, free: 9.922 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.0211/0.5769, allocations: 7.908 MB / 0.5968 GB, free: 1.93 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.775e-05/0.577, allocations: 12.03 kB / 0.5968 GB, free: 1.918 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01468/0.5916, allocations: 3.053 MB / 0.5998 GB, free: 14.85 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01187/0.6035, allocations: 5.014 MB / 0.6047 GB, free: 9.758 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004169/0.604, allocations: 382.4 kB / 0.6051 GB, free: 9.383 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002386/0.6064, allocations: 0.5151 MB / 0.6056 GB, free: 8.867 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03563/0.642, allocations: 15.51 MB / 0.6207 GB, free: 8.453 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000353/0.6424, allocations: 63.38 kB / 0.6208 GB, free: 8.391 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001991/0.6444, allocations: 231.8 kB / 0.621 GB, free: 8.164 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00467/0.6491, allocations: 2.556 MB / 0.6235 GB, free: 5.605 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02955/0.6787, allocations: 13.09 MB / 0.6363 GB, free: 8.484 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08342/0.7622, allocations: 57.59 MB / 0.6925 GB, free: 13.31 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01754/0.7798, allocations: 6.378 MB / 0.6987 GB, free: 6.789 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00491/0.7847, allocations: 3.444 MB / 0.7021 GB, free: 3.336 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.275/1.06, allocations: 11.56 MB / 0.7134 GB, free: 186 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.492e-05/1.06, allocations: 61.14 kB / 0.7134 GB, free: 185.9 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=248): time 5.871e-06/1.06, allocations: 0 / 0.7134 GB, free: 185.9 MB / 0.5294 GB Notification: Performance of matching and sorting (n=343): time 0.1248/1.185, allocations: 39.54 MB / 0.7521 GB, free: 164.4 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.264e-05/1.185, allocations: 239.9 kB / 0.7523 GB, free: 164.1 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006812/1.192, allocations: 5.703 MB / 0.7579 GB, free: 158.5 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008418/1.192, allocations: 77.7 kB / 0.7579 GB, free: 158.4 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002028/1.194, allocations: 4.351 MB / 0.7622 GB, free: 154 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001374/1.196, allocations: 1.266 MB / 0.7634 GB, free: 152.8 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002297/1.198, allocations: 1.749 MB / 0.7651 GB, free: 151 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.475e-05/1.198, allocations: 310.3 kB / 0.7654 GB, free: 150.7 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004826/1.203, allocations: 4.089 MB / 0.7694 GB, free: 146.6 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007229/1.21, allocations: 8.665 MB / 0.7779 GB, free: 135.7 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01383/1.224, allocations: 13.56 MB / 0.7911 GB, free: 119.9 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001183/1.224, allocations: 44 kB / 0.7912 GB, free: 119.9 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1132) (initialization): time 0.03015/1.254, allocations: 16.39 MB / 0.8072 GB, free: 103.4 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.954e-05/1.255, allocations: 72 kB / 0.8072 GB, free: 103.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001406/1.255, allocations: 160.1 kB / 0.8074 GB, free: 103.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01222/1.267, allocations: 4.287 MB / 0.8116 GB, free: 98.92 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006092/1.273, allocations: 1.899 MB / 0.8134 GB, free: 97.02 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02714/1.3, allocations: 21.56 MB / 0.8345 GB, free: 75.32 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007377/1.308, allocations: 0.4954 MB / 0.835 GB, free: 74.83 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001606/1.309, allocations: 486.6 kB / 0.8354 GB, free: 74.36 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.00667/1.316, allocations: 3.119 MB / 0.8385 GB, free: 71.22 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001235/1.317, allocations: 0.5207 MB / 0.839 GB, free: 70.7 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01867/1.336, allocations: 10.11 MB / 0.8489 GB, free: 60.52 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.457e-05/1.336, allocations: 36 kB / 0.8489 GB, free: 60.48 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.507e-05/1.336, allocations: 16 kB / 0.8489 GB, free: 60.47 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.879e-05/1.336, allocations: 15.94 kB / 0.8489 GB, free: 60.45 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.035/1.371, allocations: 20.16 MB / 0.8686 GB, free: 40.12 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.473e-05/1.371, allocations: 8 kB / 0.8686 GB, free: 40.11 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002267/1.373, allocations: 0.4914 MB / 0.8691 GB, free: 39.62 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01149/1.385, allocations: 3.849 MB / 0.8729 GB, free: 35.76 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007584/1.386, allocations: 63.98 kB / 0.8729 GB, free: 35.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02253/1.408, allocations: 19.12 MB / 0.8916 GB, free: 16.44 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.572e-06/1.408, allocations: 11.94 kB / 0.8916 GB, free: 16.43 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2553/1.664, allocations: 14.89 MB / 0.9061 GB, free: 166.9 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001603/1.665, allocations: 0.5715 MB / 0.9067 GB, free: 166.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001637/1.667, allocations: 67.44 kB / 0.9068 GB, free: 166.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003462/1.67, allocations: 229.9 kB / 0.907 GB, free: 166.8 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009747/1.671, allocations: 233.2 kB / 0.9072 GB, free: 166.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003017/1.672, allocations: 90.28 kB / 0.9073 GB, free: 166.8 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006286/1.678, allocations: 3.607 MB / 0.9108 GB, free: 165.6 MB / 0.5294 GB Notification: Performance of sort global known variables: time 4.21e-07/1.678, allocations: 0 / 0.9108 GB, free: 165.6 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008441/1.687, allocations: 1.783 MB / 0.9126 GB, free: 165.4 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.0009215/1.687, allocations: 267.5 kB / 0.9128 GB, free: 165.2 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01985/1.707, allocations: 13.28 MB / 0.9258 GB, free: 161.4 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.473e-05/1.707, allocations: 0 / 0.9258 GB, free: 161.4 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004854/1.712, allocations: 3.789 MB / 0.9295 GB, free: 159.8 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004716/1.717, allocations: 0.7289 MB / 0.9302 GB, free: 159.4 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02467/1.742, allocations: 19.73 MB / 0.9495 GB, free: 146.4 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005249/1.747, allocations: 4.792 MB / 0.9541 GB, free: 142.8 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001608/1.749, allocations: 406.9 kB / 0.9545 GB, free: 142.4 MB / 0.5294 GB Notification: Performance of SimCode: time 7.82e-07/1.749, allocations: 0 / 0.9545 GB, free: 142.4 MB / 0.5294 GB Notification: Performance of Templates: time 0.1217/1.87, allocations: 122.8 MB / 1.074 GB, free: 21.66 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