Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_MultiBody_FourbarVariants_JointUSP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSP,fileNamePrefix="ModelicaTest_3_2_3_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.001296/0.001296, allocations: 110.9 kB / 16.41 MB, free: 6.492 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.001309/0.001309, allocations: 189.5 kB / 17.34 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.53/1.53, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2195/0.2195, allocations: 43.53 MB / 314.1 MB, free: 468 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00199/0.00199, allocations: 71.91 kB / 441.3 MB, free: 6.207 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1141, allocations: 57.79 MB / 499.1 MB, free: 12.34 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.01817/0.1323, allocations: 16.05 MB / 0.5031 GB, free: 12.21 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01201/0.1443, allocations: 5.449 MB / 0.5084 GB, free: 6.75 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002844/0.1472, allocations: 111.6 kB / 0.5085 GB, free: 6.641 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01025/0.1575, allocations: 5.14 MB / 0.5135 GB, free: 1.484 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007638/0.1652, allocations: 2.63 MB / 0.5161 GB, free: 14.84 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00357/0.1688, allocations: 1.4 MB / 0.5174 GB, free: 13.44 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0124/0.1812, allocations: 7.596 MB / 0.5249 GB, free: 5.824 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2683/0.4496, allocations: 7.035 MB / 0.5317 GB, free: 8.652 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006374/0.456, allocations: 2.78 MB / 0.5345 GB, free: 8.551 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007823/0.4639, allocations: 3.754 MB / 0.5381 GB, free: 8.207 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004066/0.468, allocations: 0.6347 MB / 0.5387 GB, free: 8.207 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006576/0.4745, allocations: 1.777 MB / 0.5405 GB, free: 8.207 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007155/0.4817, allocations: 3.345 MB / 0.5437 GB, free: 7.902 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01078/0.4925, allocations: 3.827 MB / 0.5475 GB, free: 6.676 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02082/0.5134, allocations: 12.28 MB / 0.5595 GB, free: 2.734 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.145e-06/0.5135, allocations: 1.094 kB / 0.5595 GB, free: 2.734 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.5135, allocations: 0 / 0.5595 GB, free: 2.734 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0006148/0.5141, allocations: 0 / 0.5595 GB, free: 2.734 MB / 414.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.02753/0.5416, allocations: 8.436 MB / 0.5677 GB, free: 13.17 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.874e-05/0.5417, allocations: 12.58 kB / 0.5677 GB, free: 13.16 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004551/0.5463, allocations: 1.159 MB / 0.5689 GB, free: 12.46 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05776/0.604, allocations: 8.407 MB / 0.5771 GB, free: 8.344 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01694/0.621, allocations: 6.696 MB / 0.5836 GB, free: 3.199 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003877/0.6214, allocations: 384.8 kB / 0.584 GB, free: 2.867 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00275/0.6242, allocations: 0.5136 MB / 0.5845 GB, free: 2.398 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03643/0.6606, allocations: 15.41 MB / 0.5995 GB, free: 2.336 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002387/0.6609, allocations: 63.16 kB / 0.5996 GB, free: 2.297 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008104/0.6617, allocations: 234.2 kB / 0.5998 GB, free: 2.113 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004307/0.666, allocations: 2.544 MB / 0.6023 GB, free: 15.59 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02994/0.696, allocations: 12.89 MB / 0.6149 GB, free: 2.938 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09545/0.7915, allocations: 57.06 MB / 0.6706 GB, free: 9.141 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01925/0.8108, allocations: 6.31 MB / 0.6768 GB, free: 2.695 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006046/0.8169, allocations: 3.319 MB / 0.68 GB, free: 15.38 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02191/0.8388, allocations: 11.32 MB / 0.6911 GB, free: 3.707 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.38e-05/0.8389, allocations: 64.2 kB / 0.6911 GB, free: 3.641 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=245): time 7.093e-06/0.839, allocations: 0 / 0.6911 GB, free: 3.641 MB / 0.5294 GB Notification: Performance of matching and sorting (n=338): time 0.1692/1.008, allocations: 40.42 MB / 0.7306 GB, free: 11.31 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002026/1.008, allocations: 251.2 kB / 0.7308 GB, free: 11.02 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0143/1.023, allocations: 5.799 MB / 0.7365 GB, free: 5.246 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.00125/1.024, allocations: 77.7 kB / 0.7366 GB, free: 5.164 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.005849/1.03, allocations: 4.618 MB / 0.7411 GB, free: 0.5625 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.002731/1.033, allocations: 1.293 MB / 0.7423 GB, free: 15.28 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003742/1.036, allocations: 1.642 MB / 0.7439 GB, free: 13.63 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001439/1.037, allocations: 305.1 kB / 0.7442 GB, free: 13.33 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006537/1.043, allocations: 3.772 MB / 0.7479 GB, free: 9.547 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2709/1.314, allocations: 8.292 MB / 0.756 GB, free: 197.3 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01633/1.33, allocations: 13 MB / 0.7687 GB, free: 190.2 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001428/1.331, allocations: 46.09 kB / 0.7688 GB, free: 190.2 MB / 0.5919 GB Notification: Performance of matching and sorting (n=1067) (initialization): time 0.03471/1.365, allocations: 15.48 MB / 0.7839 GB, free: 184.9 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001056/1.365, allocations: 73.16 kB / 0.7839 GB, free: 184.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002076/1.366, allocations: 158.1 kB / 0.7841 GB, free: 184.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01307/1.379, allocations: 4.095 MB / 0.7881 GB, free: 184.2 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006529/1.385, allocations: 1.795 MB / 0.7898 GB, free: 184 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02708/1.412, allocations: 20.93 MB / 0.8103 GB, free: 171.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008149/1.421, allocations: 0.4986 MB / 0.8108 GB, free: 171.1 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002128/1.423, allocations: 467.8 kB / 0.8112 GB, free: 170.6 MB / 0.5919 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.007463/1.43, allocations: 3.118 MB / 0.8143 GB, free: 168 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001425/1.432, allocations: 0.5576 MB / 0.8148 GB, free: 167.7 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01897/1.451, allocations: 9.616 MB / 0.8242 GB, free: 159.7 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.414e-05/1.451, allocations: 36 kB / 0.8242 GB, free: 159.7 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.207e-05/1.451, allocations: 16 kB / 0.8243 GB, free: 159.7 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.564e-05/1.451, allocations: 15.95 kB / 0.8243 GB, free: 159.6 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03915/1.49, allocations: 19.64 MB / 0.8434 GB, free: 140 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.419e-05/1.49, allocations: 9.938 kB / 0.8435 GB, free: 140 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00236/1.493, allocations: 496.1 kB / 0.8439 GB, free: 139.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0119/1.504, allocations: 3.655 MB / 0.8475 GB, free: 135.8 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001067/1.506, allocations: 60 kB / 0.8476 GB, free: 135.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02369/1.529, allocations: 18.43 MB / 0.8656 GB, free: 117.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.965e-06/1.529, allocations: 11.94 kB / 0.8656 GB, free: 117.3 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02471/1.554, allocations: 14.26 MB / 0.8795 GB, free: 102.9 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003449/1.558, allocations: 1.16 MB / 0.8806 GB, free: 101.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001667/1.559, allocations: 63.98 kB / 0.8807 GB, free: 101.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003851/1.563, allocations: 222.7 kB / 0.8809 GB, free: 101.5 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008653/1.564, allocations: 226.2 kB / 0.8811 GB, free: 101.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002702/1.564, allocations: 91.98 kB / 0.8812 GB, free: 101.2 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.006896/1.571, allocations: 3.675 MB / 0.8848 GB, free: 97.51 MB / 0.5919 GB Notification: Performance of sort global known variables: time 5.51e-07/1.571, allocations: 0 / 0.8848 GB, free: 97.51 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.01001/1.581, allocations: 1.713 MB / 0.8865 GB, free: 95.81 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.02598/1.607, allocations: 14.98 MB / 0.9011 GB, free: 80.64 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01693/1.624, allocations: 9.266 MB / 0.9101 GB, free: 71.37 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.352e-05/1.624, allocations: 0 / 0.9101 GB, free: 71.37 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.006186/1.63, allocations: 3.639 MB / 0.9137 GB, free: 67.71 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008304/1.639, allocations: 0.7666 MB / 0.9144 GB, free: 66.97 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4278/2.067, allocations: 78.9 MB / 0.9915 GB, free: 208.5 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01/2.077, allocations: 4.837 MB / 0.9962 GB, free: 207.6 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.006892/2.084, allocations: 2.599 MB / 0.9988 GB, free: 207.6 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0056/2.089, allocations: 3.073 MB / 1.002 GB, free: 206.5 MB / 0.6075 GB Notification: Performance of SimCode: time 1.403e-06/2.089, allocations: 3 kB / 1.002 GB, free: 206.5 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1794/2.269, allocations: 128.7 MB / 1.127 GB, free: 93.13 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 36.09/38.36, allocations: 3.984 kB / 1.127 GB, free: 93.12 MB / 0.6075 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSP.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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_3_2_3_ModelicaTest_MultiBody_FourbarVariants_JointUSP.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/FourbarVariants/JointUSP/JointUSP.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches