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.001589/0.001589, allocations: 110.5 kB / 18.45 MB, free: 4.598 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.001734/0.001734, allocations: 187.2 kB / 19.39 MB, free: 3.672 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.478/1.478, allocations: 222.9 MB / 243.1 MB, free: 15.07 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.2024/0.2024, allocations: 44.18 MB / 337.4 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001318/0.001318, allocations: 59.91 kB / 471.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3578/0.3591, allocations: 60.82 MB / 0.5196 GB, free: 3.598 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.01653/0.3757, allocations: 16.01 MB / 0.5352 GB, free: 7.918 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01286/0.3886, allocations: 5.446 MB / 0.5405 GB, free: 3.609 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004067/0.3927, allocations: 108.8 kB / 0.5406 GB, free: 3.59 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01006/0.4028, allocations: 5.136 MB / 0.5456 GB, free: 164 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008114/0.411, allocations: 2.696 MB / 0.5483 GB, free: 14.2 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002954/0.4139, allocations: 1.391 MB / 0.5496 GB, free: 13.19 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01072/0.4247, allocations: 8.108 MB / 0.5575 GB, free: 5.078 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009975/0.4347, allocations: 7.036 MB / 0.5644 GB, free: 13.95 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005576/0.4403, allocations: 2.765 MB / 0.5671 GB, free: 11.18 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006121/0.4464, allocations: 3.759 MB / 0.5708 GB, free: 7.406 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002056/0.4485, allocations: 0.6367 MB / 0.5714 GB, free: 6.77 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004563/0.4531, allocations: 1.795 MB / 0.5732 GB, free: 4.973 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004429/0.4575, allocations: 3.375 MB / 0.5765 GB, free: 1.59 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006477/0.464, allocations: 3.718 MB / 0.5801 GB, free: 13.85 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01445/0.4785, allocations: 12.02 MB / 0.5918 GB, free: 1.785 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.4785, allocations: 0 / 0.5918 GB, free: 1.785 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.4785, allocations: 0 / 0.5918 GB, free: 1.785 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.000381/0.4789, allocations: 0 / 0.5918 GB, free: 1.785 MB / 446.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.0195/0.4984, allocations: 8.116 MB / 0.5998 GB, free: 9.566 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.704e-05/0.4985, allocations: 8.031 kB / 0.5998 GB, free: 9.559 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0147/0.5132, allocations: 3.097 MB / 0.6028 GB, free: 6.453 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01168/0.5249, allocations: 5.141 MB / 0.6078 GB, free: 1.234 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003012/0.5253, allocations: 382.2 kB / 0.6082 GB, free: 0.8594 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00193/0.5272, allocations: 0.5152 MB / 0.6087 GB, free: 352 kB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02848/0.5557, allocations: 15.51 MB / 0.6238 GB, free: 15.93 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001803/0.5559, allocations: 75.47 kB / 0.6239 GB, free: 15.86 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006092/0.5565, allocations: 235.8 kB / 0.6241 GB, free: 15.62 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003769/0.5603, allocations: 2.544 MB / 0.6266 GB, free: 13.08 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02474/0.5851, allocations: 13.1 MB / 0.6394 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07795/0.663, allocations: 57.43 MB / 0.6955 GB, free: 4.961 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01876/0.6818, allocations: 6.359 MB / 0.7017 GB, free: 14.45 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004973/0.6869, allocations: 3.446 MB / 0.7051 GB, free: 10.98 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2732/0.9601, allocations: 11.58 MB / 0.7164 GB, free: 167.3 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.047e-05/0.9601, allocations: 67.52 kB / 0.7164 GB, free: 167.3 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=248): time 4.879e-06/0.9602, allocations: 0 / 0.7164 GB, free: 167.3 MB / 0.5606 GB Notification: Performance of matching and sorting (n=343): time 0.1271/1.087, allocations: 39.89 MB / 0.7554 GB, free: 148.5 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.571e-05/1.087, allocations: 235.9 kB / 0.7556 GB, free: 148.3 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006148/1.093, allocations: 5.72 MB / 0.7612 GB, free: 142.7 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.000611/1.094, allocations: 81.53 kB / 0.7613 GB, free: 142.6 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001802/1.096, allocations: 4.515 MB / 0.7657 GB, free: 138.6 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.00107/1.097, allocations: 1.318 MB / 0.767 GB, free: 137.3 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001904/1.099, allocations: 1.774 MB / 0.7687 GB, free: 135.5 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.253e-05/1.099, allocations: 301.1 kB / 0.769 GB, free: 135.2 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004459/1.103, allocations: 4.085 MB / 0.773 GB, free: 131.1 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005851/1.109, allocations: 8.663 MB / 0.7814 GB, free: 120.2 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01153/1.121, allocations: 13.56 MB / 0.7947 GB, free: 104.4 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.791e-05/1.121, allocations: 44 kB / 0.7947 GB, free: 104.4 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1132) (initialization): time 0.02778/1.149, allocations: 16.41 MB / 0.8107 GB, free: 87.9 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001482/1.149, allocations: 76.12 kB / 0.8108 GB, free: 87.83 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002043/1.149, allocations: 164 kB / 0.811 GB, free: 87.67 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01276/1.162, allocations: 4.275 MB / 0.8151 GB, free: 83.39 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005974/1.168, allocations: 1.899 MB / 0.817 GB, free: 81.49 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02833/1.196, allocations: 21.55 MB / 0.838 GB, free: 59.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007499/1.204, allocations: 0.5111 MB / 0.8385 GB, free: 59.29 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001556/1.205, allocations: 480 kB / 0.839 GB, free: 58.82 MB / 0.5606 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.005788/1.211, allocations: 3.133 MB / 0.8421 GB, free: 55.68 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00149/1.213, allocations: 0.5472 MB / 0.8426 GB, free: 55.13 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0207/1.233, allocations: 10.1 MB / 0.8524 GB, free: 44.97 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.088e-05/1.233, allocations: 15.94 kB / 0.8525 GB, free: 44.95 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.446e-06/1.233, allocations: 4 kB / 0.8525 GB, free: 44.95 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00144/1.235, allocations: 0.5949 MB / 0.853 GB, free: 44.33 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001546/1.236, allocations: 55.84 kB / 0.8531 GB, free: 44.28 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003592/1.24, allocations: 231.6 kB / 0.8533 GB, free: 44.05 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008845/1.241, allocations: 261.8 kB / 0.8536 GB, free: 43.8 MB / 0.5606 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01885/1.26, allocations: 9.77 MB / 0.8631 GB, free: 34.04 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01314/1.273, allocations: 11.39 MB / 0.8742 GB, free: 22.58 MB / 0.5606 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003362/1.276, allocations: 3.231 MB / 0.8774 GB, free: 19.34 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.005877/1.282, allocations: 3.6 MB / 0.8809 GB, free: 15.76 MB / 0.5606 GB Notification: Performance of Backend: time 7.11e-07/1.282, allocations: 0 / 0.8809 GB, free: 15.76 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01391/1.296, allocations: 7.366 MB / 0.8881 GB, free: 8.426 MB / 0.5606 GB Notification: Performance of SimCode: time 0.02673/1.323, allocations: 14.49 MB / 0.9023 GB, free: 9.875 MB / 0.5762 GB Notification: Performance of Templates: time 0.3917/1.715, allocations: 88.36 MB / 0.9885 GB, free: 177.6 MB / 0.6075 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