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.001111/0.001111, allocations: 109.6 kB / 16.4 MB, free: 6.332 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.001159/0.001159, allocations: 186.2 kB / 17.33 MB, free: 5.816 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.356/1.356, allocations: 205.1 MB / 223.2 MB, free: 12.3 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.2053/0.2053, allocations: 43.53 MB / 314.1 MB, free: 472 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.001532/0.001532, allocations: 60.33 kB / 441.3 MB, free: 6.203 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1106, allocations: 57.8 MB / 499.1 MB, free: 12.33 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.01711/0.1278, allocations: 16.05 MB / 0.5031 GB, free: 12.2 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01184/0.1397, allocations: 5.453 MB / 0.5084 GB, free: 6.727 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002973/0.1427, allocations: 111.6 kB / 0.5085 GB, free: 6.617 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009816/0.1526, allocations: 5.132 MB / 0.5135 GB, free: 1.469 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007392/0.16, allocations: 2.716 MB / 0.5162 GB, free: 14.74 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003391/0.1634, allocations: 1.388 MB / 0.5175 GB, free: 13.35 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01084/0.1743, allocations: 7.596 MB / 0.5249 GB, free: 5.734 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2612/0.4355, allocations: 7.04 MB / 0.5318 GB, free: 8.637 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00596/0.4415, allocations: 2.781 MB / 0.5345 GB, free: 8.535 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006623/0.4481, allocations: 3.764 MB / 0.5382 GB, free: 8.191 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002605/0.4508, allocations: 0.6349 MB / 0.5388 GB, free: 8.191 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005086/0.4559, allocations: 1.783 MB / 0.5406 GB, free: 8.191 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006921/0.4628, allocations: 3.398 MB / 0.5439 GB, free: 7.887 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008899/0.4718, allocations: 3.822 MB / 0.5476 GB, free: 6.66 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01663/0.4884, allocations: 12.28 MB / 0.5596 GB, free: 2.656 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.156e-06/0.4885, allocations: 0 / 0.5596 GB, free: 2.656 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.4885, allocations: 0 / 0.5596 GB, free: 2.656 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004438/0.4889, allocations: 0 / 0.5596 GB, free: 2.656 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.02385/0.5128, allocations: 8.443 MB / 0.5678 GB, free: 13.08 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.44e-05/0.5128, allocations: 12.86 kB / 0.5679 GB, free: 13.07 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003916/0.5168, allocations: 1.154 MB / 0.569 GB, free: 12.38 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05537/0.5721, allocations: 8.411 MB / 0.5772 GB, free: 8.27 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0158/0.588, allocations: 6.701 MB / 0.5837 GB, free: 3.098 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003579/0.5884, allocations: 379.6 kB / 0.5841 GB, free: 2.77 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002314/0.5907, allocations: 0.5178 MB / 0.5846 GB, free: 2.301 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0347/0.6254, allocations: 15.4 MB / 0.5996 GB, free: 2.242 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003916/0.6258, allocations: 65.95 kB / 0.5997 GB, free: 2.203 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002441/0.6283, allocations: 234.6 kB / 0.5999 GB, free: 2.02 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004387/0.6327, allocations: 2.547 MB / 0.6024 GB, free: 15.5 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03151/0.6642, allocations: 12.89 MB / 0.615 GB, free: 2.844 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08868/0.7529, allocations: 57.06 MB / 0.6707 GB, free: 9.055 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0185/0.7715, allocations: 6.316 MB / 0.6769 GB, free: 2.613 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005561/0.7771, allocations: 3.319 MB / 0.6801 GB, free: 15.29 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02337/0.8005, allocations: 11.31 MB / 0.6912 GB, free: 3.625 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.315e-05/0.8006, allocations: 60.03 kB / 0.6912 GB, free: 3.562 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=245): time 5.641e-06/0.8006, allocations: 4 kB / 0.6912 GB, free: 3.559 MB / 0.5294 GB Notification: Performance of matching and sorting (n=338): time 0.1535/0.9541, allocations: 40.42 MB / 0.7307 GB, free: 11.22 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001437/0.9543, allocations: 250.7 kB / 0.731 GB, free: 10.93 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01365/0.968, allocations: 5.794 MB / 0.7366 GB, free: 5.164 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.001026/0.9691, allocations: 77.7 kB / 0.7367 GB, free: 5.082 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.004983/0.9741, allocations: 4.623 MB / 0.7412 GB, free: 488 kB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.00258/0.9767, allocations: 1.296 MB / 0.7425 GB, free: 15.19 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006985/0.9837, allocations: 1.644 MB / 0.7441 GB, free: 13.54 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001852/0.9839, allocations: 301.1 kB / 0.7444 GB, free: 13.24 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008881/0.9928, allocations: 3.772 MB / 0.748 GB, free: 9.457 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3067/1.3, allocations: 8.292 MB / 0.7561 GB, free: 197.5 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01765/1.317, allocations: 13.01 MB / 0.7688 GB, free: 190.3 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001561/1.318, allocations: 45 kB / 0.7689 GB, free: 190.3 MB / 0.5919 GB Notification: Performance of matching and sorting (n=1067) (initialization): time 0.0379/1.355, allocations: 15.48 MB / 0.784 GB, free: 185.1 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001863/1.356, allocations: 72.72 kB / 0.7841 GB, free: 185.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003256/1.356, allocations: 154.9 kB / 0.7842 GB, free: 185.1 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01302/1.369, allocations: 4.097 MB / 0.7882 GB, free: 184.4 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00596/1.375, allocations: 1.798 MB / 0.79 GB, free: 184.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02977/1.405, allocations: 20.93 MB / 0.8104 GB, free: 171.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007703/1.413, allocations: 497.4 kB / 0.8109 GB, free: 171.1 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001835/1.414, allocations: 475.8 kB / 0.8113 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.008628/1.423, allocations: 3.12 MB / 0.8144 GB, free: 168 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001651/1.425, allocations: 0.5547 MB / 0.8149 GB, free: 167.8 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02047/1.445, allocations: 9.62 MB / 0.8243 GB, free: 159.7 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.405e-05/1.445, allocations: 37.75 kB / 0.8244 GB, free: 159.7 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.837e-05/1.445, allocations: 12 kB / 0.8244 GB, free: 159.6 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.585e-05/1.445, allocations: 15.94 kB / 0.8244 GB, free: 159.6 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04383/1.489, allocations: 19.64 MB / 0.8436 GB, free: 140 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.826e-05/1.489, allocations: 7.984 kB / 0.8436 GB, free: 140 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002453/1.492, allocations: 495.2 kB / 0.8441 GB, free: 139.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01141/1.503, allocations: 3.656 MB / 0.8476 GB, free: 135.8 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007435/1.504, allocations: 64 kB / 0.8477 GB, free: 135.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02324/1.527, allocations: 18.43 MB / 0.8657 GB, free: 117.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.385e-05/1.527, allocations: 11.94 kB / 0.8657 GB, free: 117.3 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02434/1.552, allocations: 14.24 MB / 0.8796 GB, free: 102.9 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004419/1.556, allocations: 1.169 MB / 0.8807 GB, free: 101.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0028/1.559, allocations: 60 kB / 0.8808 GB, free: 101.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00427/1.563, allocations: 230.5 kB / 0.881 GB, free: 101.4 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009628/1.564, allocations: 226.2 kB / 0.8812 GB, free: 101.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004646/1.565, allocations: 85.25 kB / 0.8813 GB, free: 101.1 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.008034/1.573, allocations: 3.679 MB / 0.8849 GB, free: 97.49 MB / 0.5919 GB Notification: Performance of sort global known variables: time 3.41e-07/1.573, allocations: 0 / 0.8849 GB, free: 97.49 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.01022/1.583, allocations: 1.71 MB / 0.8866 GB, free: 95.79 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.02719/1.61, allocations: 14.99 MB / 0.9012 GB, free: 80.62 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01382/1.624, allocations: 9.269 MB / 0.9103 GB, free: 71.34 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.217e-05/1.624, allocations: 0 / 0.9103 GB, free: 71.34 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.004774/1.629, allocations: 3.637 MB / 0.9138 GB, free: 67.69 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006166/1.635, allocations: 0.7744 MB / 0.9146 GB, free: 66.94 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4023/2.038, allocations: 78.89 MB / 0.9916 GB, free: 209 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006694/2.044, allocations: 4.842 MB / 0.9964 GB, free: 208.2 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.005525/2.05, allocations: 2.589 MB / 0.9989 GB, free: 208.1 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003777/2.054, allocations: 3.081 MB / 1.002 GB, free: 207 MB / 0.6075 GB Notification: Performance of SimCode: time 1.503e-06/2.054, allocations: 3 kB / 1.002 GB, free: 207 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1709/2.225, allocations: 128.7 MB / 1.128 GB, free: 93.1 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 37.77/40, allocations: 7.984 kB / 1.128 GB, free: 93.09 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