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.001763/0.001763, allocations: 110.4 kB / 17.78 MB, free: 5.289 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.002077/0.002078, allocations: 187.9 kB / 18.71 MB, free: 4.371 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.352/1.352, allocations: 222.9 MB / 242.4 MB, free: 15.08 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.2195/0.2195, allocations: 44.19 MB / 336.7 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001315/0.001315, allocations: 63.89 kB / 470.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3575/0.3588, allocations: 60.81 MB / 0.5189 GB, free: 3.598 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.01679/0.3756, allocations: 16.02 MB / 0.5345 GB, free: 7.91 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01274/0.3884, allocations: 5.44 MB / 0.5398 GB, free: 3.609 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003835/0.3923, allocations: 113.1 kB / 0.5399 GB, free: 3.586 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009486/0.4018, allocations: 5.14 MB / 0.545 GB, free: 156 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008912/0.4108, allocations: 2.617 MB / 0.5475 GB, free: 14.25 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004001/0.4148, allocations: 1.396 MB / 0.5489 GB, free: 13.28 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01247/0.4273, allocations: 8.095 MB / 0.5568 GB, free: 5.168 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008666/0.436, allocations: 7.034 MB / 0.5637 GB, free: 14.04 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005562/0.4416, allocations: 2.769 MB / 0.5664 GB, free: 11.27 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006244/0.4479, allocations: 3.759 MB / 0.57 GB, free: 7.496 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002221/0.4502, allocations: 0.6328 MB / 0.5706 GB, free: 6.863 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004707/0.4549, allocations: 1.795 MB / 0.5724 GB, free: 5.066 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004353/0.4593, allocations: 3.375 MB / 0.5757 GB, free: 1.684 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005913/0.4652, allocations: 3.71 MB / 0.5793 GB, free: 13.95 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01561/0.4808, allocations: 11.98 MB / 0.591 GB, free: 1.934 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.915e-06/0.4809, allocations: 0 / 0.591 GB, free: 1.934 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.4809, allocations: 0 / 0.591 GB, free: 1.934 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003522/0.4813, allocations: 0 / 0.591 GB, free: 1.934 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.02037/0.5016, allocations: 7.912 MB / 0.5987 GB, free: 9.934 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.563e-05/0.5017, allocations: 15.97 kB / 0.5988 GB, free: 9.918 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01549/0.5172, allocations: 3.049 MB / 0.6017 GB, free: 6.855 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01143/0.5287, allocations: 5.123 MB / 0.6067 GB, free: 1.652 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000313/0.529, allocations: 386.2 kB / 0.6071 GB, free: 1.273 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001756/0.5308, allocations: 0.5074 MB / 0.6076 GB, free: 0.7656 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02742/0.5582, allocations: 15.51 MB / 0.6228 GB, free: 360 kB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002104/0.5585, allocations: 71.36 kB / 0.6228 GB, free: 288 kB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007122/0.5592, allocations: 227.8 kB / 0.623 GB, free: 60 kB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003805/0.563, allocations: 2.552 MB / 0.6255 GB, free: 13.5 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02881/0.5918, allocations: 13.1 MB / 0.6383 GB, free: 396 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07952/0.6714, allocations: 57.31 MB / 0.6943 GB, free: 5.484 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01666/0.6881, allocations: 6.375 MB / 0.7005 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004452/0.6926, allocations: 3.446 MB / 0.7039 GB, free: 11.49 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.301/0.9936, allocations: 11.56 MB / 0.7152 GB, free: 167.4 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.032e-05/0.9938, allocations: 62.89 kB / 0.7152 GB, free: 167.4 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=248): time 5.58e-06/0.9938, allocations: 0 / 0.7152 GB, free: 167.4 MB / 0.5606 GB Notification: Performance of matching and sorting (n=343): time 0.123/1.117, allocations: 39.53 MB / 0.7538 GB, free: 149.4 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.131e-05/1.117, allocations: 255.8 kB / 0.7541 GB, free: 149.1 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006432/1.123, allocations: 5.706 MB / 0.7597 GB, free: 143.5 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0007662/1.124, allocations: 77.7 kB / 0.7597 GB, free: 143.4 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001836/1.126, allocations: 4.346 MB / 0.764 GB, free: 139 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001244/1.127, allocations: 1.263 MB / 0.7652 GB, free: 137.8 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001954/1.129, allocations: 1.757 MB / 0.7669 GB, free: 136 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.383e-05/1.129, allocations: 301.1 kB / 0.7672 GB, free: 135.7 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004333/1.134, allocations: 4.085 MB / 0.7712 GB, free: 131.6 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005944/1.14, allocations: 8.667 MB / 0.7797 GB, free: 120.7 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01209/1.152, allocations: 13.56 MB / 0.7929 GB, free: 104.9 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001058/1.152, allocations: 44 kB / 0.7929 GB, free: 104.9 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1132) (initialization): time 0.02736/1.179, allocations: 16.38 MB / 0.8089 GB, free: 88.47 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.583e-05/1.179, allocations: 72 kB / 0.809 GB, free: 88.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001303/1.179, allocations: 163.9 kB / 0.8092 GB, free: 88.24 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01222/1.192, allocations: 4.279 MB / 0.8133 GB, free: 83.96 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005854/1.197, allocations: 1.899 MB / 0.8152 GB, free: 82.05 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02505/1.223, allocations: 21.54 MB / 0.8362 GB, free: 60.38 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00649/1.229, allocations: 0.5032 MB / 0.8367 GB, free: 59.88 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001234/1.23, allocations: 481 kB / 0.8372 GB, free: 59.41 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.004299/1.235, allocations: 3.133 MB / 0.8402 GB, free: 56.26 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001021/1.236, allocations: 0.5168 MB / 0.8408 GB, free: 55.74 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01718/1.253, allocations: 10.1 MB / 0.8506 GB, free: 45.57 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.492e-05/1.253, allocations: 43.92 kB / 0.8507 GB, free: 45.53 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.411e-05/1.253, allocations: 12 kB / 0.8507 GB, free: 45.52 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.005e-05/1.253, allocations: 19.94 kB / 0.8507 GB, free: 45.5 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0356/1.289, allocations: 20.05 MB / 0.8703 GB, free: 25.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.314e-05/1.289, allocations: 8 kB / 0.8703 GB, free: 25.29 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002171/1.291, allocations: 0.496 MB / 0.8708 GB, free: 24.79 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01112/1.302, allocations: 3.837 MB / 0.8745 GB, free: 20.95 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000515/1.303, allocations: 67.92 kB / 0.8746 GB, free: 20.88 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02191/1.324, allocations: 19.12 MB / 0.8932 GB, free: 1.613 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.251e-06/1.325, allocations: 12.06 kB / 0.8933 GB, free: 1.602 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02601/1.351, allocations: 14.9 MB / 0.9078 GB, free: 2.5 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001862/1.352, allocations: 0.5762 MB / 0.9084 GB, free: 1.898 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008504/1.353, allocations: 64.45 kB / 0.9084 GB, free: 1.836 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002702/1.356, allocations: 227.8 kB / 0.9086 GB, free: 1.613 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007385/1.357, allocations: 234.1 kB / 0.9089 GB, free: 1.383 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000262/1.357, allocations: 92 kB / 0.909 GB, free: 1.293 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.005483/1.363, allocations: 3.604 MB / 0.9125 GB, free: 13.71 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.81e-07/1.363, allocations: 3.938 kB / 0.9125 GB, free: 13.71 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.007772/1.37, allocations: 1.789 MB / 0.9142 GB, free: 11.93 MB / 0.5919 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.0007996/1.371, allocations: 258.3 kB / 0.9145 GB, free: 11.68 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01498/1.386, allocations: 9.844 MB / 0.9241 GB, free: 1.836 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.326e-05/1.386, allocations: 4 kB / 0.9241 GB, free: 1.832 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.005826/1.392, allocations: 3.782 MB / 0.9278 GB, free: 14.04 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004856/1.397, allocations: 0.7166 MB / 0.9285 GB, free: 13.33 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2836/1.681, allocations: 15.88 MB / 0.944 GB, free: 212.2 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00613/1.687, allocations: 4.829 MB / 0.9487 GB, free: 211.4 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.005704/1.692, allocations: 2.574 MB / 0.9512 GB, free: 211.3 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001244/1.694, allocations: 350.4 kB / 0.9516 GB, free: 211.3 MB / 0.6231 GB Notification: Performance of SimCode: time 9.92e-07/1.694, allocations: 0.9375 kB / 0.9516 GB, free: 211.3 MB / 0.6231 GB Notification: Performance of Templates: time 0.1001/1.794, allocations: 75.35 MB / 1.025 GB, free: 155.3 MB / 0.6231 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","/var/lib/jenkins/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