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.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: translateModel(ModelicaTest.MultiBody.Joints.JointUSP2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2") translateModel(ModelicaTest.MultiBody.Joints.JointUSP2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001291/0.001291, allocations: 108.2 kB / 18.39 MB, free: 4.629 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.001466/0.001466, allocations: 182.9 kB / 19.33 MB, free: 3.699 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.418/1.418, allocations: 222.9 MB / 243 MB, free: 15.09 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.211/0.211, allocations: 44.18 MB / 337.4 MB, free: 2.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 66.81 kB / 409.9 MB, free: 26.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.136/0.1373, allocations: 60.82 MB / 470.7 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUSP2): time 0.01619/0.1536, allocations: 13.27 MB / 484 MB, free: 324 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01314/0.1668, allocations: 4.837 MB / 488.8 MB, free: 11.46 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003224/0.1701, allocations: 87.75 kB / 488.9 MB, free: 11.38 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008169/0.1783, allocations: 3.991 MB / 492.9 MB, free: 7.371 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00739/0.1857, allocations: 2.193 MB / 495.1 MB, free: 5.172 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003346/0.1891, allocations: 1.178 MB / 496.2 MB, free: 3.992 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009476/0.1986, allocations: 5.743 MB / 0.4902 GB, free: 14.24 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007172/0.2058, allocations: 5.174 MB / 0.4953 GB, free: 8.996 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006268/0.2121, allocations: 2.173 MB / 0.4974 GB, free: 6.816 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006173/0.2183, allocations: 2.968 MB / 0.5003 GB, free: 3.84 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002691/0.2211, allocations: 0.5 MB / 0.5008 GB, free: 3.34 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005305/0.2264, allocations: 1.654 MB / 0.5024 GB, free: 1.684 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.3484/0.5749, allocations: 2.657 MB / 0.505 GB, free: 20.86 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01007/0.585, allocations: 3.022 MB / 0.5079 GB, free: 20.16 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01917/0.6042, allocations: 9.937 MB / 0.5177 GB, free: 18.88 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.6043, allocations: 4.062 kB / 0.5177 GB, free: 18.88 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.6043, allocations: 0 / 0.5177 GB, free: 18.88 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000459/0.6048, allocations: 1.5 kB / 0.5177 GB, free: 18.88 MB / 382.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.03267/0.6374, allocations: 6.524 MB / 0.524 GB, free: 16.21 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.721e-05/0.6375, allocations: 10.41 kB / 0.524 GB, free: 16.21 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02257/0.6601, allocations: 2.714 MB / 0.5267 GB, free: 15.77 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0121/0.6723, allocations: 3.702 MB / 0.5303 GB, free: 14.04 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004497/0.6728, allocations: 345.6 kB / 0.5306 GB, free: 13.9 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003121/0.6759, allocations: 435 kB / 0.531 GB, free: 13.79 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03225/0.7082, allocations: 13.85 MB / 0.5446 GB, free: 5.609 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002142/0.7084, allocations: 54.61 kB / 0.5446 GB, free: 5.602 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001121/0.7096, allocations: 204.5 kB / 0.5448 GB, free: 5.504 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003169/0.7127, allocations: 2.407 MB / 0.5472 GB, free: 4.211 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02744/0.7402, allocations: 11.75 MB / 0.5586 GB, free: 8.68 MB / 398.1 MB 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.08178/0.822, allocations: 51.55 MB / 0.609 GB, free: 4.387 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01284/0.8349, allocations: 4.742 MB / 0.6136 GB, free: 15.5 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004746/0.8397, allocations: 2.957 MB / 0.6165 GB, free: 12.53 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02086/0.8606, allocations: 12.85 MB / 0.629 GB, free: 15.2 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.985e-05/0.8607, allocations: 63.05 kB / 0.6291 GB, free: 15.14 MB / 478.1 MB Notification: Performance of pre-optimization done (n=197): time 5.13e-06/0.8607, allocations: 0 / 0.6291 GB, free: 15.14 MB / 478.1 MB Notification: Performance of matching and sorting (n=248): time 0.1578/1.019, allocations: 43.39 MB / 0.6715 GB, free: 3.684 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001579/1.019, allocations: 235.6 kB / 0.6717 GB, free: 3.402 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008546/1.027, allocations: 4.766 MB / 0.6764 GB, free: 14.63 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0008459/1.028, allocations: 65.7 kB / 0.6764 GB, free: 14.56 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0032/1.031, allocations: 3.84 MB / 0.6802 GB, free: 10.71 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001651/1.033, allocations: 0.9372 MB / 0.6811 GB, free: 9.785 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002549/1.036, allocations: 1.507 MB / 0.6826 GB, free: 8.27 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001152/1.036, allocations: 309.1 kB / 0.6829 GB, free: 7.965 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00552/1.041, allocations: 3.45 MB / 0.6862 GB, free: 4.516 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009231/1.051, allocations: 7.7 MB / 0.6937 GB, free: 10.8 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3218/1.372, allocations: 11.87 MB / 0.7053 GB, free: 181.1 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001741/1.373, allocations: 44 kB / 0.7054 GB, free: 181.1 MB / 0.5294 GB Notification: Performance of matching and sorting (n=967) (initialization): time 0.03854/1.411, allocations: 14.49 MB / 0.7195 GB, free: 178.2 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001326/1.411, allocations: 68.59 kB / 0.7196 GB, free: 178.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002317/1.412, allocations: 152.5 kB / 0.7197 GB, free: 178.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.012/1.424, allocations: 4.02 MB / 0.7237 GB, free: 177.5 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005831/1.429, allocations: 1.632 MB / 0.7252 GB, free: 177.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02527/1.455, allocations: 19.84 MB / 0.7446 GB, free: 164 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008533/1.463, allocations: 460.9 kB / 0.7451 GB, free: 163.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002038/1.465, allocations: 435.9 kB / 0.7455 GB, free: 163.1 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 679 * 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 (884): * Single equations (assignments): 880 * 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.006444/1.472, allocations: 2.657 MB / 0.7481 GB, free: 160.5 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001184/1.473, allocations: 424.6 kB / 0.7485 GB, free: 160.4 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0167/1.49, allocations: 8.647 MB / 0.7569 GB, free: 151.7 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-05/1.49, allocations: 28 kB / 0.7569 GB, free: 151.7 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.202e-05/1.49, allocations: 15.06 kB / 0.757 GB, free: 151.7 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.885e-05/1.49, allocations: 7.969 kB / 0.757 GB, free: 151.6 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03221/1.522, allocations: 17.84 MB / 0.7744 GB, free: 133.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.242e-05/1.522, allocations: 4 kB / 0.7744 GB, free: 133.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00202/1.524, allocations: 391.4 kB / 0.7748 GB, free: 133.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01086/1.535, allocations: 4.069 MB / 0.7787 GB, free: 129.4 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007652/1.536, allocations: 45.86 kB / 0.7788 GB, free: 129.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02039/1.556, allocations: 18.22 MB / 0.7966 GB, free: 111.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.711e-06/1.556, allocations: 7.938 kB / 0.7966 GB, free: 111.1 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02142/1.578, allocations: 13.21 MB / 0.8095 GB, free: 97.91 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001655/1.58, allocations: 475.4 kB / 0.8099 GB, free: 97.42 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001057/1.581, allocations: 41.55 kB / 0.81 GB, free: 97.38 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002292/1.583, allocations: 211.7 kB / 0.8102 GB, free: 97.18 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006135/1.584, allocations: 146.8 kB / 0.8103 GB, free: 97.03 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002166/1.584, allocations: 67.98 kB / 0.8104 GB, free: 96.96 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004649/1.588, allocations: 2.985 MB / 0.8133 GB, free: 93.98 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3e-07/1.588, allocations: 3.281 kB / 0.8133 GB, free: 93.98 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.009007/1.597, allocations: 1.484 MB / 0.8147 GB, free: 92.51 MB / 0.5294 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 (173): * Single equations (assignments): 169 * 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.001015/1.598, allocations: 235.3 kB / 0.815 GB, free: 92.29 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01163/1.61, allocations: 8.272 MB / 0.8231 GB, free: 84.04 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.405e-06/1.61, allocations: 0 / 0.8231 GB, free: 84.04 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003905/1.614, allocations: 3.111 MB / 0.8261 GB, free: 80.91 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003681/1.618, allocations: 0.5244 MB / 0.8266 GB, free: 80.41 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02471/1.643, allocations: 12.86 MB / 0.8392 GB, free: 67.52 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005977/1.649, allocations: 4.099 MB / 0.8432 GB, free: 63.4 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00505/1.654, allocations: 2.192 MB / 0.8453 GB, free: 61.21 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009863/1.655, allocations: 283.4 kB / 0.8456 GB, free: 60.93 MB / 0.5294 GB Notification: Performance of SimCode: time 9.72e-07/1.655, allocations: 0 / 0.8456 GB, free: 60.93 MB / 0.5294 GB Notification: Performance of Templates: time 0.356/2.011, allocations: 58.68 MB / 0.9029 GB, free: 169.7 MB / 0.5294 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2.makefile (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 & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2_res.mat","/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) Reference file matches