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.001148/0.001148, allocations: 104.8 kB / 16.4 MB, free: 6.406 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.001278/0.001278, allocations: 190.9 kB / 17.34 MB, free: 5.691 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.455/1.455, allocations: 205.1 MB / 223.2 MB, free: 12.2 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.2155/0.2155, allocations: 43.52 MB / 314.1 MB, free: 448 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.001802/0.001803, allocations: 81.45 kB / 441.3 MB, free: 6.152 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1174, allocations: 57.79 MB / 499.1 MB, free: 12.29 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.01678/0.1343, allocations: 16.05 MB / 0.5031 GB, free: 12.17 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01239/0.1467, allocations: 5.453 MB / 0.5084 GB, free: 6.695 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00401/0.1508, allocations: 107.7 kB / 0.5085 GB, free: 6.59 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01008/0.1609, allocations: 5.136 MB / 0.5135 GB, free: 1.438 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006899/0.1679, allocations: 2.712 MB / 0.5162 GB, free: 14.71 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003102/0.171, allocations: 1.388 MB / 0.5175 GB, free: 13.32 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01076/0.1818, allocations: 7.596 MB / 0.5249 GB, free: 5.707 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2668/0.4486, allocations: 7.043 MB / 0.5318 GB, free: 8.488 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005514/0.4542, allocations: 2.78 MB / 0.5345 GB, free: 8.387 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00661/0.4608, allocations: 3.763 MB / 0.5382 GB, free: 8.043 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003125/0.464, allocations: 0.6346 MB / 0.5388 GB, free: 8.043 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00624/0.4703, allocations: 1.781 MB / 0.5406 GB, free: 8.043 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.009026/0.4794, allocations: 3.398 MB / 0.5439 GB, free: 7.738 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0124/0.4918, allocations: 3.823 MB / 0.5476 GB, free: 6.512 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01946/0.5113, allocations: 12.29 MB / 0.5596 GB, free: 2.656 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.283e-06/0.5114, allocations: 0 / 0.5596 GB, free: 2.656 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.5114, allocations: 0 / 0.5596 GB, free: 2.656 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004519/0.5118, allocations: 1.25 kB / 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.02816/0.54, allocations: 8.44 MB / 0.5679 GB, free: 13.08 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.246e-05/0.5401, allocations: 14.52 kB / 0.5679 GB, free: 13.07 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004525/0.5446, allocations: 1.155 MB / 0.569 GB, free: 12.38 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05398/0.5986, allocations: 8.402 MB / 0.5772 GB, free: 8.266 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01513/0.6138, allocations: 6.71 MB / 0.5838 GB, free: 3.074 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003873/0.6142, allocations: 380.3 kB / 0.5841 GB, free: 2.746 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0028/0.617, allocations: 0.5116 MB / 0.5846 GB, free: 2.281 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03278/0.6498, allocations: 15.41 MB / 0.5997 GB, free: 2.219 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000227/0.6501, allocations: 65.59 kB / 0.5997 GB, free: 2.18 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008329/0.6509, allocations: 233 kB / 0.5999 GB, free: 1.996 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003872/0.6548, allocations: 2.549 MB / 0.6024 GB, free: 15.47 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02771/0.6825, allocations: 12.88 MB / 0.615 GB, free: 2.82 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08243/0.765, allocations: 57.06 MB / 0.6707 GB, free: 9.027 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01803/0.783, allocations: 6.318 MB / 0.6769 GB, free: 2.582 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004687/0.7878, allocations: 3.321 MB / 0.6802 GB, free: 15.26 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02094/0.8087, allocations: 11.31 MB / 0.6912 GB, free: 3.605 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.052e-05/0.8088, allocations: 63.5 kB / 0.6913 GB, free: 3.539 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=245): time 5.671e-06/0.8088, allocations: 0 / 0.6913 GB, free: 3.539 MB / 0.5294 GB Notification: Performance of matching and sorting (n=338): time 0.1485/0.9574, allocations: 40.43 MB / 0.7307 GB, free: 11.2 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001548/0.9576, allocations: 243.9 kB / 0.731 GB, free: 10.91 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01279/0.9704, allocations: 5.795 MB / 0.7366 GB, free: 5.145 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0008738/0.9713, allocations: 77.7 kB / 0.7367 GB, free: 5.062 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.004296/0.9756, allocations: 4.626 MB / 0.7412 GB, free: 464 kB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.002098/0.9777, allocations: 1.298 MB / 0.7425 GB, free: 15.17 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004988/0.9827, allocations: 1.631 MB / 0.7441 GB, free: 13.53 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001168/0.9829, allocations: 313.1 kB / 0.7444 GB, free: 13.22 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006824/0.9897, allocations: 3.768 MB / 0.7481 GB, free: 9.441 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2778/1.268, allocations: 8.293 MB / 0.7562 GB, free: 197.1 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0158/1.283, allocations: 13 MB / 0.7688 GB, free: 190.2 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001657/1.284, allocations: 48.09 kB / 0.7689 GB, free: 190.2 MB / 0.5919 GB Notification: Performance of matching and sorting (n=1067) (initialization): time 0.03723/1.321, allocations: 15.48 MB / 0.784 GB, free: 184.9 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 9.73e-05/1.321, allocations: 78.69 kB / 0.7841 GB, free: 184.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001747/1.321, allocations: 157.4 kB / 0.7842 GB, free: 184.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01276/1.334, allocations: 4.098 MB / 0.7882 GB, free: 184.2 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006035/1.34, allocations: 1.795 MB / 0.79 GB, free: 183.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02591/1.366, allocations: 20.93 MB / 0.8104 GB, free: 171.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007301/1.373, allocations: 498.8 kB / 0.8109 GB, free: 171.1 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001572/1.375, allocations: 472.7 kB / 0.8114 GB, free: 170.7 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.006202/1.381, allocations: 3.123 MB / 0.8144 GB, free: 168 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001258/1.382, allocations: 0.5527 MB / 0.815 GB, free: 167.8 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01804/1.4, allocations: 9.624 MB / 0.8243 GB, free: 159.7 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.696e-05/1.4, allocations: 36 kB / 0.8244 GB, free: 159.7 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.635e-05/1.4, allocations: 12 kB / 0.8244 GB, free: 159.7 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.649e-05/1.401, allocations: 15.94 kB / 0.8244 GB, free: 159.7 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03512/1.436, allocations: 19.64 MB / 0.8436 GB, free: 140 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.544e-05/1.436, allocations: 4.781 kB / 0.8436 GB, free: 140 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002282/1.438, allocations: 0.4905 MB / 0.8441 GB, free: 139.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01112/1.449, allocations: 3.656 MB / 0.8476 GB, free: 135.9 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006519/1.45, allocations: 65.23 kB / 0.8477 GB, free: 135.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02139/1.471, allocations: 18.43 MB / 0.8657 GB, free: 117.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.432e-06/1.471, allocations: 12 kB / 0.8657 GB, free: 117.3 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02243/1.494, allocations: 14.25 MB / 0.8796 GB, free: 102.9 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00291/1.497, allocations: 1.171 MB / 0.8808 GB, free: 101.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009803/1.498, allocations: 60 kB / 0.8808 GB, free: 101.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002761/1.5, allocations: 230.5 kB / 0.881 GB, free: 101.5 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007451/1.501, allocations: 222.2 kB / 0.8813 GB, free: 101.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002545/1.501, allocations: 88 kB / 0.8813 GB, free: 101.2 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.005351/1.507, allocations: 3.675 MB / 0.8849 GB, free: 97.52 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.11e-07/1.507, allocations: 4 kB / 0.8849 GB, free: 97.52 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.007815/1.515, allocations: 1.709 MB / 0.8866 GB, free: 95.82 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.02245/1.537, allocations: 14.98 MB / 0.9012 GB, free: 80.65 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01243/1.55, allocations: 9.269 MB / 0.9103 GB, free: 71.38 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.084e-05/1.55, allocations: 0 / 0.9103 GB, free: 71.38 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.004577/1.554, allocations: 3.63 MB / 0.9138 GB, free: 67.73 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004814/1.559, allocations: 0.7795 MB / 0.9146 GB, free: 66.97 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4044/1.963, allocations: 78.89 MB / 0.9916 GB, free: 208.3 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01172/1.975, allocations: 4.837 MB / 0.9964 GB, free: 207.4 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.006525/1.982, allocations: 2.593 MB / 0.9989 GB, free: 207.3 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005316/1.987, allocations: 3.08 MB / 1.002 GB, free: 206.4 MB / 0.6075 GB Notification: Performance of SimCode: time 9.12e-07/1.987, allocations: 0 / 1.002 GB, free: 206.4 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.201/2.188, allocations: 128.7 MB / 1.128 GB, free: 93.09 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 40.32/42.51, allocations: 11.98 kB / 1.128 GB, free: 93.08 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