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: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSP,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointUSP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSP,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointUSP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007205/0.0007203, allocations: 92.58 kB / 17.35 MB, free: 6.367 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.000864/0.0008642, allocations: 176.5 kB / 18.25 MB, free: 5.523 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.322/1.322, allocations: 223.3 MB / 242.3 MB, free: 220 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.1951/0.1951, allocations: 44.25 MB / 337.7 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003131/0.0003132, allocations: 8 kB / 410.4 MB, free: 27.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.1147, allocations: 61.92 MB / 472.4 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.2877/0.4025, allocations: 66.72 MB / 0.5264 GB, free: 10.02 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03161/0.4341, allocations: 14.18 MB / 0.5403 GB, free: 5.137 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01389/0.4481, allocations: 309.2 kB / 0.5406 GB, free: 5.082 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002267/0.4504, allocations: 0.5932 MB / 0.5412 GB, free: 4.852 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007734/0.4581, allocations: 2.485 MB / 0.5436 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003128/0.4613, allocations: 1.278 MB / 0.5448 GB, free: 2.836 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01328/0.4746, allocations: 11.64 MB / 0.5562 GB, free: 12.73 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01358/0.4882, allocations: 9.555 MB / 0.5655 GB, free: 3.723 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004691/0.4929, allocations: 1.986 MB / 0.5675 GB, free: 1.812 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005992/0.4989, allocations: 3.386 MB / 0.5708 GB, free: 14.64 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000924/0.4999, allocations: 240 kB / 0.571 GB, free: 14.4 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003655/0.5036, allocations: 1.482 MB / 0.5725 GB, free: 12.98 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003434/0.507, allocations: 2.886 MB / 0.5753 GB, free: 10.1 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007121/0.5141, allocations: 3.256 MB / 0.5785 GB, free: 6.832 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01377/0.5279, allocations: 11.36 MB / 0.5896 GB, free: 11.71 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.528, allocations: 0 / 0.5896 GB, free: 11.71 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.528, allocations: 0 / 0.5896 GB, free: 11.71 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003899/0.5284, allocations: 0 / 0.5896 GB, free: 11.71 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.01854/0.5469, allocations: 6.773 MB / 0.5962 GB, free: 4.898 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.024e-05/0.547, allocations: 8.031 kB / 0.5962 GB, free: 4.891 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005334/0.5524, allocations: 1.158 MB / 0.5973 GB, free: 3.766 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05739/0.6098, allocations: 8.466 MB / 0.6056 GB, free: 11.28 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01283/0.6226, allocations: 6.082 MB / 0.6115 GB, free: 5.207 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003345/0.623, allocations: 380.6 kB / 0.6119 GB, free: 4.879 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001897/0.6249, allocations: 0.5184 MB / 0.6124 GB, free: 4.406 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03223/0.6572, allocations: 15.44 MB / 0.6275 GB, free: 4.199 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002399/0.6574, allocations: 67.42 kB / 0.6275 GB, free: 4.133 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009713/0.6584, allocations: 238 kB / 0.6278 GB, free: 3.945 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003904/0.6623, allocations: 2.551 MB / 0.6303 GB, free: 1.406 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02854/0.6909, allocations: 12.92 MB / 0.6429 GB, free: 4.465 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08371/0.7747, allocations: 57.16 MB / 0.6987 GB, free: 9.742 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01749/0.7922, allocations: 6.354 MB / 0.7049 GB, free: 3.242 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.2152/1.007, allocations: 3.312 MB / 0.7081 GB, free: 187.1 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01728/1.025, allocations: 11.27 MB / 0.7191 GB, free: 182.7 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.233e-05/1.025, allocations: 64.16 kB / 0.7192 GB, free: 182.7 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=245): time 5.721e-06/1.025, allocations: 0 / 0.7192 GB, free: 182.7 MB / 0.5294 GB Notification: Performance of matching and sorting (n=338): time 0.1252/1.15, allocations: 40.03 MB / 0.7583 GB, free: 159.5 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000114/1.15, allocations: 246.2 kB / 0.7585 GB, free: 159.2 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007217/1.157, allocations: 5.734 MB / 0.7641 GB, free: 153.5 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007699/1.158, allocations: 77.7 kB / 0.7642 GB, free: 153.4 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002624/1.161, allocations: 4.452 MB / 0.7685 GB, free: 149 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001522/1.162, allocations: 1.233 MB / 0.7697 GB, free: 147.8 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008282/1.163, allocations: 0.6958 MB / 0.7704 GB, free: 147.1 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.402e-05/1.163, allocations: 301.1 kB / 0.7707 GB, free: 146.8 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004531/1.168, allocations: 3.768 MB / 0.7744 GB, free: 143 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0067/1.175, allocations: 8.296 MB / 0.7825 GB, free: 132.5 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01304/1.188, allocations: 13.01 MB / 0.7952 GB, free: 117.2 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001189/1.188, allocations: 51.94 kB / 0.7952 GB, free: 117.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1067) (initialization): time 0.02948/1.217, allocations: 15.46 MB / 0.8103 GB, free: 101.7 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.198e-05/1.217, allocations: 75.94 kB / 0.8104 GB, free: 101.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001501/1.218, allocations: 160.9 kB / 0.8106 GB, free: 101.4 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01252/1.23, allocations: 4.103 MB / 0.8146 GB, free: 97.32 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005769/1.236, allocations: 1.797 MB / 0.8163 GB, free: 95.52 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02427/1.26, allocations: 19.61 MB / 0.8355 GB, free: 75.79 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00665/1.267, allocations: 495.2 kB / 0.8359 GB, free: 75.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001229/1.268, allocations: 472.6 kB / 0.8364 GB, free: 74.84 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 717 * 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 (966): * Single equations (assignments): 962 * 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.005349/1.274, allocations: 3.11 MB / 0.8394 GB, free: 71.72 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001143/1.275, allocations: 0.5294 MB / 0.84 GB, free: 71.19 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01828/1.293, allocations: 9.615 MB / 0.8493 GB, free: 61.51 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.943e-05/1.293, allocations: 36.62 kB / 0.8494 GB, free: 61.47 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.351e-05/1.293, allocations: 12 kB / 0.8494 GB, free: 61.46 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.399e-05/1.293, allocations: 23.03 kB / 0.8494 GB, free: 61.44 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03519/1.328, allocations: 19.72 MB / 0.8687 GB, free: 41.56 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.976e-05/1.328, allocations: 11.94 kB / 0.8687 GB, free: 41.55 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002327/1.331, allocations: 493 kB / 0.8691 GB, free: 41.07 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01178/1.343, allocations: 3.666 MB / 0.8727 GB, free: 37.4 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000839/1.344, allocations: 64 kB / 0.8728 GB, free: 37.34 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02138/1.365, allocations: 17.16 MB / 0.8896 GB, free: 20.03 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.171e-06/1.365, allocations: 8 kB / 0.8896 GB, free: 20.02 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2584/1.623, allocations: 14.21 MB / 0.9034 GB, free: 166.1 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001449/1.625, allocations: 0.5706 MB / 0.904 GB, free: 166 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001049/1.626, allocations: 65.41 kB / 0.9041 GB, free: 166 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002931/1.629, allocations: 227.1 kB / 0.9043 GB, free: 166 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008075/1.63, allocations: 219.8 kB / 0.9045 GB, free: 166 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000251/1.63, allocations: 91.66 kB / 0.9046 GB, free: 166 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00631/1.636, allocations: 3.648 MB / 0.9081 GB, free: 165.8 MB / 0.5294 GB Notification: Performance of sort global known variables: time 4.2e-07/1.636, allocations: 0 / 0.9081 GB, free: 165.8 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008641/1.645, allocations: 1.703 MB / 0.9098 GB, free: 165.8 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * 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 (256): * Single equations (assignments): 252 * 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.02571/1.671, allocations: 14.95 MB / 0.9244 GB, free: 160.5 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01211/1.683, allocations: 9.227 MB / 0.9334 GB, free: 157 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.192e-05/1.683, allocations: 0 / 0.9334 GB, free: 157 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004431/1.687, allocations: 3.643 MB / 0.937 GB, free: 155.4 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009088/1.696, allocations: 0.7279 MB / 0.9377 GB, free: 155.1 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1243/1.821, allocations: 96.18 MB / 1.032 GB, free: 57.59 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005358/1.826, allocations: 4.826 MB / 1.036 GB, free: 52.73 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006097/1.832, allocations: 2.592 MB / 1.039 GB, free: 50.13 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004191/1.836, allocations: 3.065 MB / 1.042 GB, free: 47.07 MB / 0.5294 GB Notification: Performance of SimCode: time 8.42e-07/1.836, allocations: 0 / 1.042 GB, free: 47.07 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3894/2.226, allocations: 127.9 MB / 1.167 GB, free: 143.1 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001422/2.226, allocations: 227.3 kB / 1.167 GB, free: 142.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.814/7.04, allocations: 0 / 1.167 GB, free: 142.9 MB / 0.545 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointUSP_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointUSP.fmu > 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