Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.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.Forces.ForceWithTwoMasses2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001214/0.001214, allocations: 96.52 kB / 16.98 MB, free: 5.938 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.001452/0.001452, allocations: 186.2 kB / 17.88 MB, free: 5.594 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.322/1.322, allocations: 223.2 MB / 241.8 MB, free: 392 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2113/0.2113, allocations: 44.23 MB / 337.1 MB, free: 2.91 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003068/0.0003069, allocations: 8 kB / 409.5 MB, free: 27.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1096, allocations: 61.93 MB / 471.5 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2): time 0.2944/0.404, allocations: 62.62 MB / 0.5216 GB, free: 9.855 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0368/0.4409, allocations: 14.64 MB / 0.5358 GB, free: 7.969 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01439/0.4553, allocations: 327.2 kB / 0.5362 GB, free: 7.91 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01017/0.4655, allocations: 3.087 MB / 0.5392 GB, free: 6.379 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02852/0.4941, allocations: 8.936 MB / 0.5479 GB, free: 1.934 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005457/0.4996, allocations: 1.258 MB / 0.5491 GB, free: 1.207 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.07166/0.5713, allocations: 49.87 MB / 0.5978 GB, free: 2.391 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01168/0.583, allocations: 6.34 MB / 0.604 GB, free: 11.99 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004583/0.5876, allocations: 1.846 MB / 0.6058 GB, free: 10.14 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004386/0.5921, allocations: 2.641 MB / 0.6084 GB, free: 7.492 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001396/0.5935, allocations: 244 kB / 0.6086 GB, free: 7.254 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00359/0.5971, allocations: 1.174 MB / 0.6098 GB, free: 6.078 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003867/0.601, allocations: 2.759 MB / 0.6125 GB, free: 3.312 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002528/0.6035, allocations: 1.314 MB / 0.6138 GB, free: 1.988 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009693/0.6132, allocations: 8.822 MB / 0.6224 GB, free: 9.141 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.545e-06/0.6132, allocations: 3.938 kB / 0.6224 GB, free: 9.137 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.6133, allocations: 0 / 0.6224 GB, free: 9.137 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0003175/0.6136, allocations: 0 / 0.6224 GB, free: 9.137 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: 2297 * Number of variables: 2297 Notification: Performance of Generate backend data structure: time 0.0193/0.6329, allocations: 7.337 MB / 0.6295 GB, free: 1.715 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.643e-05/0.633, allocations: 8.031 kB / 0.6296 GB, free: 1.707 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.176/0.8089, allocations: 15.1 MB / 0.6443 GB, free: 2.578 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0149/0.8239, allocations: 5.565 MB / 0.6497 GB, free: 12.93 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003599/0.8243, allocations: 373.4 kB / 0.6501 GB, free: 12.57 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002414/0.8267, allocations: 0.5112 MB / 0.6506 GB, free: 12.05 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03969/0.8664, allocations: 16.33 MB / 0.6665 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003084/0.8668, allocations: 87.2 kB / 0.6666 GB, free: 10.57 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001235/0.868, allocations: 235.8 kB / 0.6668 GB, free: 10.34 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005916/0.8739, allocations: 2.915 MB / 0.6697 GB, free: 7.422 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03403/0.908, allocations: 13.68 MB / 0.6831 GB, free: 9.715 MB / 0.5137 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.3737/1.282, allocations: 64.35 MB / 0.7459 GB, free: 147.3 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02397/1.306, allocations: 7.831 MB / 0.7535 GB, free: 145.3 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03824/1.344, allocations: 18.82 MB / 0.7719 GB, free: 134.4 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.793e-05/1.344, allocations: 68.14 kB / 0.772 GB, free: 134.4 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=281): time 7.454e-06/1.344, allocations: 1.969 kB / 0.772 GB, free: 134.4 MB / 0.5294 GB Notification: Performance of matching and sorting (n=362): time 0.153/1.497, allocations: 47.38 MB / 0.8183 GB, free: 92.79 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.04e-05/1.497, allocations: 269.8 kB / 0.8185 GB, free: 92.47 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007076/1.504, allocations: 6.514 MB / 0.8249 GB, free: 85.95 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007418/1.505, allocations: 85.7 kB / 0.825 GB, free: 85.86 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002266/1.507, allocations: 4.737 MB / 0.8296 GB, free: 81.12 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001569/1.509, allocations: 1.327 MB / 0.8309 GB, free: 79.8 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004368/1.509, allocations: 189.2 kB / 0.8311 GB, free: 79.62 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0003314/1.51, allocations: 0.6921 MB / 0.8317 GB, free: 78.92 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004714/1.515, allocations: 3.848 MB / 0.8355 GB, free: 75.07 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006752/1.521, allocations: 9.047 MB / 0.8443 GB, free: 63.45 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00714/1.528, allocations: 5.713 MB / 0.8499 GB, free: 57.71 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.021e-05/1.529, allocations: 52 kB / 0.85 GB, free: 57.66 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1200) (initialization): time 0.02955/1.558, allocations: 16.3 MB / 0.8659 GB, free: 41.32 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001606/1.558, allocations: 84.94 kB / 0.866 GB, free: 41.24 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002591/1.559, allocations: 180 kB / 0.8661 GB, free: 41.06 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01307/1.572, allocations: 4.122 MB / 0.8701 GB, free: 36.93 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007001/1.579, allocations: 2.047 MB / 0.8721 GB, free: 34.88 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02871/1.607, allocations: 22.78 MB / 0.8944 GB, free: 11.84 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008034/1.616, allocations: 0.5032 MB / 0.8949 GB, free: 11.34 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001714/1.617, allocations: 0.5246 MB / 0.8954 GB, free: 10.82 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 831 * Number of states: 0 () * Number of discrete variables: 66 (lineForceWithTwoMasses.massColor[3],lineForceWithTwoMasses.massColor[2],lineForceWithTwoMasses.massColor[1],lineForceWithTwoMasses.color_b[3],lineForceWithTwoMasses.color_b[2],lineForceWithTwoMasses.color_b[1],lineForceWithTwoMasses.color_a[3],lineForceWithTwoMasses.color_a[2],lineForceWithTwoMasses.color_a[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.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 (1080): * Single equations (assignments): 1075 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 45,(4,62.5%) 48} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007219/1.625, allocations: 3.103 MB / 0.8984 GB, free: 7.699 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001441/1.626, allocations: 0.5669 MB / 0.899 GB, free: 7.125 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2846/1.911, allocations: 9.799 MB / 0.9086 GB, free: 170.7 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.528e-05/1.911, allocations: 42.52 kB / 0.9086 GB, free: 170.7 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.136e-05/1.911, allocations: 16.41 kB / 0.9086 GB, free: 170.7 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.11e-05/1.911, allocations: 22.38 kB / 0.9086 GB, free: 170.7 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04646/1.957, allocations: 19.49 MB / 0.9277 GB, free: 165.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.255e-05/1.957, allocations: 3.938 kB / 0.9277 GB, free: 165.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002844/1.96, allocations: 0.5191 MB / 0.9282 GB, free: 165.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0124/1.973, allocations: 3.716 MB / 0.9318 GB, free: 165.2 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009236/1.974, allocations: 62.53 kB / 0.9319 GB, free: 165.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02634/2, allocations: 20.69 MB / 0.9521 GB, free: 153.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/2, allocations: 4 kB / 0.9521 GB, free: 153.3 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02525/2.025, allocations: 14.47 MB / 0.9662 GB, free: 139.1 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002685/2.028, allocations: 0.605 MB / 0.9668 GB, free: 138.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002177/2.03, allocations: 56 kB / 0.9668 GB, free: 138.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004492/2.035, allocations: 216.6 kB / 0.967 GB, free: 138.5 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001288/2.036, allocations: 222.1 kB / 0.9673 GB, free: 138.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006912/2.037, allocations: 101.5 kB / 0.9674 GB, free: 138.2 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00929/2.046, allocations: 4.139 MB / 0.9714 GB, free: 134.1 MB / 0.5294 GB Notification: Performance of sort global known variables: time 4.11e-07/2.046, allocations: 0 / 0.9714 GB, free: 134.1 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01171/2.058, allocations: 1.863 MB / 0.9732 GB, free: 132.2 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.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 (262): * Single equations (assignments): 257 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 43,(1,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001579/2.059, allocations: 237.9 kB / 0.9734 GB, free: 132 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01705/2.077, allocations: 9.805 MB / 0.983 GB, free: 122.2 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.127e-05/2.077, allocations: 4 kB / 0.983 GB, free: 122.2 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.006699/2.083, allocations: 3.884 MB / 0.9868 GB, free: 118.3 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005382/2.089, allocations: 0.7099 MB / 0.9875 GB, free: 117.6 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03362/2.122, allocations: 18.46 MB / 1.006 GB, free: 99.38 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00841/2.131, allocations: 4.99 MB / 1.01 GB, free: 94.36 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.008273/2.139, allocations: 2.793 MB / 1.013 GB, free: 91.55 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001746/2.141, allocations: 383.4 kB / 1.014 GB, free: 91.18 MB / 0.5294 GB Notification: Performance of SimCode: time 1.102e-06/2.141, allocations: 0 / 1.014 GB, free: 91.18 MB / 0.5294 GB Notification: Performance of Templates: time 0.1271/2.268, allocations: 76.72 MB / 1.088 GB, free: 14.84 MB / 0.5294 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses2/ForceWithTwoMasses2.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches