Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001992/0.001992, allocations: 111.1 kB / 20.44 MB, free: 1.203 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001557/0.001557, allocations: 207.1 kB / 23.72 MB, free: 4.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.507/1.507, allocations: 230.6 MB / 257.5 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.24/0.24, allocations: 44.94 MB / 358.8 MB, free: 6.066 MB / 286.1 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSP2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUSP2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSP2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUSP2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002125/0.002125, allocations: 63.91 kB / 0.493 GB, free: 10.54 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3723/0.3744, allocations: 65.48 MB / 0.557 GB, free: 7.332 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUSP2): time 0.01501/0.3894, allocations: 11.58 MB / 0.5683 GB, free: 11.89 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0113/0.4007, allocations: 4.627 MB / 0.5728 GB, free: 7.258 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002238/0.403, allocations: 99.56 kB / 0.5729 GB, free: 7.16 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007821/0.4108, allocations: 3.863 MB / 0.5767 GB, free: 3.285 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006276/0.4171, allocations: 2.245 MB / 0.5789 GB, free: 1.035 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00286/0.4199, allocations: 1.193 MB / 0.58 GB, free: 15.84 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.00836/0.4283, allocations: 5.822 MB / 0.5857 GB, free: 10.01 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006015/0.4343, allocations: 4.01 MB / 0.5896 GB, free: 5.93 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004951/0.4393, allocations: 2.197 MB / 0.5918 GB, free: 3.727 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005608/0.4449, allocations: 2.991 MB / 0.5947 GB, free: 0.7266 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001531/0.4464, allocations: 0.5 MB / 0.5952 GB, free: 232 kB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003849/0.4503, allocations: 1.541 MB / 0.5967 GB, free: 14.68 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003717/0.454, allocations: 2.715 MB / 0.5993 GB, free: 11.96 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004023/0.458, allocations: 2.319 MB / 0.6016 GB, free: 9.629 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01313/0.4711, allocations: 10.15 MB / 0.6115 GB, free: 15.44 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.4711, allocations: 0 / 0.6115 GB, free: 15.44 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.4711, allocations: 3.938 kB / 0.6115 GB, free: 15.44 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0002725/0.4714, allocations: 0 / 0.6115 GB, free: 15.44 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.01747/0.4889, allocations: 6.738 MB / 0.6181 GB, free: 8.625 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.022e-05/0.4889, allocations: 8.031 kB / 0.6181 GB, free: 8.617 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00219/0.4911, allocations: 0.9216 MB / 0.619 GB, free: 7.684 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0888/0.5799, allocations: 7.444 MB / 0.6263 GB, free: 232 kB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01106/0.591, allocations: 4.075 MB / 0.6303 GB, free: 12.09 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000376/0.5914, allocations: 375.7 kB / 0.6306 GB, free: 11.71 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001304/0.5927, allocations: 435.7 kB / 0.631 GB, free: 11.29 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02645/0.6191, allocations: 13.88 MB / 0.6446 GB, free: 12.53 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001705/0.6193, allocations: 59.52 kB / 0.6446 GB, free: 12.47 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006157/0.6199, allocations: 195.8 kB / 0.6448 GB, free: 12.28 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003824/0.6237, allocations: 2.406 MB / 0.6472 GB, free: 9.867 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0251/0.6488, allocations: 11.61 MB / 0.6585 GB, free: 14.25 MB / 0.4981 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07633/0.7251, allocations: 48.34 MB / 0.7057 GB, free: 12.6 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01361/0.7387, allocations: 4.03 MB / 0.7097 GB, free: 8.527 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004106/0.7429, allocations: 2.59 MB / 0.7122 GB, free: 5.926 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02014/0.763, allocations: 9.758 MB / 0.7217 GB, free: 12.12 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.467e-05/0.7631, allocations: 59.8 kB / 0.7218 GB, free: 12.06 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=191): time 7.403e-06/0.7631, allocations: 0 / 0.7218 GB, free: 12.06 MB / 0.5606 GB Notification: Performance of matching and sorting (n=242): time 0.4073/1.17, allocations: 42.38 MB / 0.7632 GB, free: 142.1 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001064/1.171, allocations: 237.1 kB / 0.7634 GB, free: 141.8 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005687/1.176, allocations: 5.058 MB / 0.7683 GB, free: 136.9 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0005232/1.177, allocations: 65.73 kB / 0.7684 GB, free: 136.8 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001895/1.179, allocations: 4.058 MB / 0.7723 GB, free: 133.1 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001035/1.18, allocations: 0.9514 MB / 0.7733 GB, free: 132.2 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001663/1.181, allocations: 1.465 MB / 0.7747 GB, free: 130.7 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 6.182e-05/1.181, allocations: 305.1 kB / 0.775 GB, free: 130.4 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003503/1.185, allocations: 3.258 MB / 0.7782 GB, free: 127.1 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004755/1.19, allocations: 7.606 MB / 0.7856 GB, free: 117.4 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009557/1.199, allocations: 11.59 MB / 0.7969 GB, free: 103.7 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001064/1.199, allocations: 40 kB / 0.797 GB, free: 103.7 MB / 0.5606 GB Notification: Performance of matching and sorting (n=940) (initialization): time 0.02397/1.223, allocations: 13.84 MB / 0.8105 GB, free: 89.83 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.171e-05/1.223, allocations: 74.02 kB / 0.8106 GB, free: 89.76 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001423/1.224, allocations: 152 kB / 0.8107 GB, free: 89.61 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01038/1.234, allocations: 3.766 MB / 0.8144 GB, free: 85.84 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004778/1.239, allocations: 1.599 MB / 0.8159 GB, free: 84.24 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02168/1.26, allocations: 18.88 MB / 0.8344 GB, free: 65.25 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005518/1.266, allocations: 459.5 kB / 0.8348 GB, free: 64.8 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000787/1.267, allocations: 431.8 kB / 0.8352 GB, free: 64.38 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 687 * Number of states: 0 () * Number of discrete variables: 37 (jointUSP.prismatic.positiveBranch,bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],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],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 (857): * Single equations (assignments): 853 * 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 {(2,58,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003192/1.27, allocations: 2.65 MB / 0.8378 GB, free: 61.71 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000779/1.271, allocations: 456.9 kB / 0.8382 GB, free: 61.27 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01522/1.286, allocations: 8.099 MB / 0.8462 GB, free: 53.14 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.954e-05/1.286, allocations: 24 kB / 0.8462 GB, free: 53.12 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.857e-05/1.286, allocations: 12 kB / 0.8462 GB, free: 53.11 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.625e-05/1.286, allocations: 15.89 kB / 0.8462 GB, free: 53.09 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02927/1.315, allocations: 16.64 MB / 0.8625 GB, free: 36.43 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.486e-05/1.315, allocations: 0.6562 kB / 0.8625 GB, free: 36.43 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001898/1.317, allocations: 391.4 kB / 0.8628 GB, free: 36.05 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01038/1.328, allocations: 3.838 MB / 0.8666 GB, free: 32.2 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004847/1.328, allocations: 39.94 kB / 0.8666 GB, free: 32.16 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01985/1.348, allocations: 17.26 MB / 0.8835 GB, free: 14.79 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.252e-06/1.348, allocations: 3.984 kB / 0.8835 GB, free: 14.79 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02186/1.37, allocations: 12.53 MB / 0.8957 GB, free: 2.219 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001721/1.371, allocations: 401.9 kB / 0.8961 GB, free: 1.824 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001432/1.373, allocations: 36 kB / 0.8961 GB, free: 1.789 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002659/1.376, allocations: 211.6 kB / 0.8963 GB, free: 1.586 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005946/1.376, allocations: 162 kB / 0.8965 GB, free: 1.426 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001825/1.376, allocations: 59.98 kB / 0.8965 GB, free: 1.367 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004729/1.381, allocations: 2.998 MB / 0.8995 GB, free: 14.38 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.7e-07/1.381, allocations: 4 kB / 0.8995 GB, free: 14.37 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.00717/1.388, allocations: 1.422 MB / 0.9009 GB, free: 12.95 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (167): * Single equations (assignments): 163 * 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 {(2,52,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02727/1.415, allocations: 13.23 MB / 0.9138 GB, free: 15.69 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01437/1.43, allocations: 7.594 MB / 0.9212 GB, free: 8.109 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 9.969e-06/1.43, allocations: 9.875 kB / 0.9212 GB, free: 8.102 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.004966/1.435, allocations: 2.728 MB / 0.9239 GB, free: 5.355 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003614/1.438, allocations: 0.5361 MB / 0.9244 GB, free: 4.824 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4226/1.861, allocations: 66.03 MB / 0.9889 GB, free: 236.3 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004214/1.865, allocations: 3.574 MB / 0.9924 GB, free: 236 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.004275/1.87, allocations: 2.181 MB / 0.9945 GB, free: 236 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002941/1.872, allocations: 2.472 MB / 0.9969 GB, free: 234 MB / 0.6544 GB Notification: Performance of SimCode: time 9.82e-07/1.872, allocations: 0 / 0.9969 GB, free: 234 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1707/2.043, allocations: 104.7 MB / 1.099 GB, free: 132.7 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.69/20.73, allocations: 11.62 kB / 1.099 GB, free: 132.7 MB / 0.6544 GB " [Timeout remaining time 639] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00079952 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUSP2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/JointUSP2/JointUSP2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,revolute.phi,revolute.w Variables in the result:time,revolute.phi,revolute.w [Calling sys.exit(0), Time elapsed: 24.186977884266526]