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.001539/0.001539, allocations: 113.8 kB / 17.78 MB, free: 5.281 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.001629/0.001629, allocations: 179.9 kB / 18.71 MB, free: 4.363 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.413/1.413, allocations: 222.9 MB / 242.4 MB, free: 15.15 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.2213/0.2213, allocations: 44.18 MB / 336.7 MB, free: 2.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002745/0.002745, allocations: 63.89 kB / 470 MB, free: 13.69 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3666/0.3694, allocations: 60.83 MB / 0.5184 GB, free: 3.266 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.0182/0.3876, allocations: 16 MB / 0.534 GB, free: 7.746 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01277/0.4005, allocations: 5.451 MB / 0.5394 GB, free: 3.434 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003215/0.4037, allocations: 108.5 kB / 0.5395 GB, free: 3.414 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01022/0.4139, allocations: 5.127 MB / 0.5445 GB, free: 15.99 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007928/0.4219, allocations: 2.622 MB / 0.547 GB, free: 14.08 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003928/0.4259, allocations: 1.386 MB / 0.5484 GB, free: 13.14 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01354/0.4394, allocations: 8.105 MB / 0.5563 GB, free: 5.238 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009769/0.4492, allocations: 7.029 MB / 0.5632 GB, free: 14.12 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005246/0.4545, allocations: 2.773 MB / 0.5659 GB, free: 11.34 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006914/0.4615, allocations: 3.747 MB / 0.5695 GB, free: 7.578 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002859/0.4644, allocations: 0.6328 MB / 0.5702 GB, free: 6.945 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006388/0.4708, allocations: 1.787 MB / 0.5719 GB, free: 5.156 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006092/0.4769, allocations: 3.332 MB / 0.5752 GB, free: 1.816 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00829/0.4852, allocations: 3.812 MB / 0.5789 GB, free: 13.98 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02693/0.5122, allocations: 12.23 MB / 0.5908 GB, free: 1.711 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.457e-05/0.5123, allocations: 4 kB / 0.5908 GB, free: 1.707 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.5123, allocations: 3.938 kB / 0.5908 GB, free: 1.703 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004444/0.5128, allocations: 4 kB / 0.5908 GB, free: 1.699 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.03512/0.5479, allocations: 8.396 MB / 0.599 GB, free: 9.203 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.856e-05/0.548, allocations: 12.03 kB / 0.599 GB, free: 9.191 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004376/0.5524, allocations: 1.16 MB / 0.6002 GB, free: 8.02 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0715/0.6239, allocations: 8.398 MB / 0.6084 GB, free: 15.6 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0143/0.6382, allocations: 6.231 MB / 0.6145 GB, free: 9.297 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004429/0.6387, allocations: 386 kB / 0.6148 GB, free: 8.918 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002068/0.6408, allocations: 0.5075 MB / 0.6153 GB, free: 8.41 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03721/0.678, allocations: 15.41 MB / 0.6304 GB, free: 8.102 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004203/0.6785, allocations: 63.47 kB / 0.6304 GB, free: 8.039 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001895/0.6804, allocations: 235.8 kB / 0.6307 GB, free: 7.809 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004672/0.6851, allocations: 2.552 MB / 0.6332 GB, free: 5.254 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03091/0.716, allocations: 12.87 MB / 0.6457 GB, free: 8.363 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1033/0.8194, allocations: 57.01 MB / 0.7014 GB, free: 13.79 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01865/0.8381, allocations: 6.307 MB / 0.7076 GB, free: 7.32 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005265/0.8434, allocations: 3.312 MB / 0.7108 GB, free: 3.992 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2867/1.13, allocations: 11.3 MB / 0.7218 GB, free: 165.1 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.799e-05/1.13, allocations: 62.64 kB / 0.7219 GB, free: 165.1 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=245): time 6.102e-06/1.13, allocations: 0 / 0.7219 GB, free: 165.1 MB / 0.5606 GB Notification: Performance of matching and sorting (n=338): time 0.1255/1.256, allocations: 40.27 MB / 0.7612 GB, free: 141.9 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.519e-05/1.256, allocations: 243.9 kB / 0.7614 GB, free: 141.6 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006601/1.262, allocations: 5.75 MB / 0.7671 GB, free: 136 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0007487/1.263, allocations: 83.84 kB / 0.7671 GB, free: 135.9 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.00214/1.265, allocations: 4.607 MB / 0.7716 GB, free: 131.7 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009796/1.266, allocations: 1.303 MB / 0.7729 GB, free: 130.4 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001843/1.268, allocations: 1.64 MB / 0.7745 GB, free: 128.8 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.37e-05/1.268, allocations: 305.1 kB / 0.7748 GB, free: 128.5 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004117/1.272, allocations: 3.768 MB / 0.7785 GB, free: 124.7 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006285/1.279, allocations: 8.299 MB / 0.7866 GB, free: 114.2 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01152/1.29, allocations: 13 MB / 0.7993 GB, free: 98.94 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.208e-05/1.29, allocations: 44 kB / 0.7993 GB, free: 98.89 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1067) (initialization): time 0.02524/1.316, allocations: 15.48 MB / 0.8144 GB, free: 83.36 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.468e-05/1.316, allocations: 72 kB / 0.8145 GB, free: 83.29 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001349/1.316, allocations: 163.9 kB / 0.8147 GB, free: 83.13 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01185/1.328, allocations: 4.099 MB / 0.8187 GB, free: 79.03 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005238/1.333, allocations: 1.797 MB / 0.8204 GB, free: 77.23 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02426/1.357, allocations: 20.93 MB / 0.8409 GB, free: 56.16 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006178/1.363, allocations: 0.4988 MB / 0.8414 GB, free: 55.67 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001179/1.365, allocations: 471.9 kB / 0.8418 GB, free: 55.21 MB / 0.5606 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.004434/1.369, allocations: 3.111 MB / 0.8448 GB, free: 52.08 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001175/1.37, allocations: 0.551 MB / 0.8454 GB, free: 51.53 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0174/1.388, allocations: 9.615 MB / 0.8548 GB, free: 41.85 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.684e-05/1.388, allocations: 35.94 kB / 0.8548 GB, free: 41.82 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.293e-05/1.388, allocations: 22.61 kB / 0.8548 GB, free: 41.8 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-05/1.388, allocations: 15.94 kB / 0.8548 GB, free: 41.79 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03211/1.42, allocations: 19.61 MB / 0.874 GB, free: 22.02 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.485e-05/1.42, allocations: 8 kB / 0.874 GB, free: 22.01 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0023/1.422, allocations: 499.3 kB / 0.8745 GB, free: 21.52 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01112/1.433, allocations: 3.654 MB / 0.878 GB, free: 17.86 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006534/1.434, allocations: 64 kB / 0.8781 GB, free: 17.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02302/1.457, allocations: 18.42 MB / 0.8961 GB, free: 15.23 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-05/1.457, allocations: 15.92 kB / 0.8961 GB, free: 15.21 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02894/1.486, allocations: 14.23 MB / 0.91 GB, free: 0.7891 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001705/1.488, allocations: 0.5949 MB / 0.9106 GB, free: 176 kB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00127/1.489, allocations: 60 kB / 0.9106 GB, free: 116 kB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003138/1.492, allocations: 231.7 kB / 0.9109 GB, free: 15.89 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000793/1.493, allocations: 222.2 kB / 0.9111 GB, free: 15.67 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002817/1.493, allocations: 88 kB / 0.9112 GB, free: 15.58 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.006571/1.5, allocations: 3.647 MB / 0.9147 GB, free: 11.96 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.9e-07/1.5, allocations: 0 / 0.9147 GB, free: 11.96 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.008237/1.508, allocations: 1.707 MB / 0.9164 GB, free: 10.26 MB / 0.5919 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.03042/1.539, allocations: 14.99 MB / 0.931 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.01642/1.555, allocations: 9.261 MB / 0.9401 GB, free: 1.797 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.259e-05/1.555, allocations: 4 kB / 0.9401 GB, free: 1.793 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.2444/1.8, allocations: 3.636 MB / 0.9436 GB, free: 205 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004893/1.805, allocations: 0.7675 MB / 0.9444 GB, free: 205 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.114/1.919, allocations: 78.62 MB / 1.021 GB, free: 142.2 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005357/1.924, allocations: 4.823 MB / 1.026 GB, free: 137.4 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.005624/1.93, allocations: 2.594 MB / 1.028 GB, free: 134.8 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004367/1.934, allocations: 3.069 MB / 1.031 GB, free: 131.7 MB / 0.6075 GB Notification: Performance of SimCode: time 1.012e-06/1.934, allocations: 0 / 1.031 GB, free: 131.7 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1682/2.102, allocations: 128.3 MB / 1.157 GB, free: 4.02 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 38.55/40.65, allocations: 0 / 1.157 GB, free: 4.02 MB / 0.6075 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 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.csv","/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