Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.JointUSP,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP") translateModel(ModelicaTest.MultiBody.FourbarVariants.JointUSP,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002191/0.00219, allocations: 178.4 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.035/2.035, allocations: 205.3 MB / 214.1 MB, free: 14.09 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001136/0.001136, allocations: 79.78 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3489/0.3489, allocations: 43.5 MB / 353.6 MB, free: 2.266 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.296e-05/2.311e-05, allocations: 224 / 418.2 MB, free: 41.04 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4283/0.4283, allocations: 58.84 MB / 477.1 MB, free: 5.277 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.214/0.6423, allocations: 114.7 MB / 0.5779 GB, free: 0.5781 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003174/0.6427, allocations: 75.97 kB / 0.578 GB, free: 0.5039 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.9016/1.544, allocations: 140.2 MB / 0.7149 GB, free: 94.04 MB / 475.1 MB Notification: Performance of FrontEnd: time 2.715e-06/1.544, allocations: 0 / 0.7149 GB, free: 94.04 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0005151/1.545, allocations: 130.4 kB / 0.715 GB, free: 93.91 MB / 475.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.0273/1.572, allocations: 6.647 MB / 0.7215 GB, free: 87.2 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.691e-05/1.572, allocations: 8.031 kB / 0.7215 GB, free: 87.2 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06539/1.638, allocations: 9.336 MB / 0.7306 GB, free: 77.84 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03385/1.672, allocations: 9.118 MB / 0.7395 GB, free: 68.72 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004/1.672, allocations: 204 kB / 0.7397 GB, free: 68.52 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003446/1.676, allocations: 379.8 kB / 0.7401 GB, free: 68.15 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02337/1.699, allocations: 9.355 MB / 0.7492 GB, free: 58.79 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03613/1.735, allocations: 13.28 MB / 0.7622 GB, free: 44.33 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005828/1.736, allocations: 79.31 kB / 0.7623 GB, free: 44.25 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003185/1.739, allocations: 36 kB / 0.7623 GB, free: 44.21 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003227/1.742, allocations: 1.387 MB / 0.7636 GB, free: 42.83 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1078/1.85, allocations: 62.33 MB / 0.8245 GB, free: 10.95 MB / 0.4952 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009607/1.86, allocations: 4.338 MB / 0.8288 GB, free: 6.473 MB / 0.4952 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006739/1.867, allocations: 3.017 MB / 0.8317 GB, free: 3.449 MB / 0.4952 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004038/1.871, allocations: 2.388 MB / 0.834 GB, free: 0.7109 MB / 0.4952 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.788e-05/1.871, allocations: 72.66 kB / 0.8341 GB, free: 0.6289 MB / 0.4952 GB Notification: Performance of pre-optimization done (n=251): time 6.502e-06/1.871, allocations: 0 / 0.8341 GB, free: 0.6289 MB / 0.4952 GB Notification: Performance of matching and sorting (n=343): time 0.5388/2.41, allocations: 27.56 MB / 0.861 GB, free: 113.7 MB / 0.4952 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.962e-05/2.41, allocations: 242.1 kB / 0.8613 GB, free: 113.5 MB / 0.4952 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01125/2.421, allocations: 4.4 MB / 0.8655 GB, free: 113.1 MB / 0.4952 GB Notification: Performance of collectPreVariables (initialization): time 0.0009636/2.422, allocations: 28.98 kB / 0.8656 GB, free: 113 MB / 0.4952 GB Notification: Performance of collectInitialEqns (initialization): time 0.004269/2.426, allocations: 4.367 MB / 0.8698 GB, free: 110.6 MB / 0.4952 GB Notification: Performance of collectInitialBindings (initialization): time 0.002235/2.429, allocations: 1.211 MB / 0.871 GB, free: 109.9 MB / 0.4952 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00119/2.43, allocations: 0 / 0.871 GB, free: 109.9 MB / 0.4952 GB Notification: Performance of setup shared object (initialization): time 0.0006738/2.431, allocations: 0.6689 MB / 0.8717 GB, free: 109.6 MB / 0.4952 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008487/2.439, allocations: 3.436 MB / 0.875 GB, free: 109.5 MB / 0.4952 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01217/2.451, allocations: 8.094 MB / 0.8829 GB, free: 102.9 MB / 0.4952 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01243/2.464, allocations: 5.198 MB / 0.888 GB, free: 101.2 MB / 0.4952 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002384/2.464, allocations: 46.56 kB / 0.8881 GB, free: 101.2 MB / 0.4952 GB Notification: Performance of matching and sorting (n=1105) (initialization): time 0.04857/2.513, allocations: 13.51 MB / 0.9013 GB, free: 97.16 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001404/2.513, allocations: 75.03 kB / 0.9013 GB, free: 97.16 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002695/2.513, allocations: 167.4 kB / 0.9015 GB, free: 97.16 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02088/2.534, allocations: 3.498 MB / 0.9049 GB, free: 96.5 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01182/2.546, allocations: 1.859 MB / 0.9067 GB, free: 96.28 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03998/2.586, allocations: 16.83 MB / 0.9231 GB, free: 84.84 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01083/2.597, allocations: 330.6 kB / 0.9235 GB, free: 84.59 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002334/2.599, allocations: 483.6 kB / 0.9239 GB, free: 84.12 MB / 0.4952 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 751 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1004): * Single equations (assignments): 1000 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 77} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003637/2.603, allocations: 0.5244 MB / 0.9244 GB, free: 83.59 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001698/2.605, allocations: 0.4975 MB / 0.9249 GB, free: 83.09 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03327/2.638, allocations: 8.524 MB / 0.9332 GB, free: 76.46 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.796e-05/2.638, allocations: 36 kB / 0.9333 GB, free: 76.43 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.92e-05/2.638, allocations: 16 kB / 0.9333 GB, free: 76.41 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.573e-05/2.638, allocations: 21.02 kB / 0.9333 GB, free: 76.41 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06084/2.699, allocations: 17.3 MB / 0.9502 GB, free: 62.54 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-05/2.699, allocations: 8 kB / 0.9502 GB, free: 62.54 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004605/2.704, allocations: 498.8 kB / 0.9507 GB, free: 62.13 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01932/2.723, allocations: 3.056 MB / 0.9537 GB, free: 60.1 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009307/2.724, allocations: 15 kB / 0.9537 GB, free: 60.09 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03507/2.759, allocations: 14.49 MB / 0.9678 GB, free: 47.38 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-05/2.759, allocations: 12.06 kB / 0.9678 GB, free: 47.36 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04048/2.8, allocations: 13.81 MB / 0.9813 GB, free: 33.25 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004457/2.804, allocations: 1.061 MB / 0.9824 GB, free: 32.17 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001897/2.806, allocations: 10.91 kB / 0.9824 GB, free: 32.16 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005826/2.812, allocations: 155.7 kB / 0.9825 GB, free: 32.01 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001445/2.814, allocations: 222.3 kB / 0.9827 GB, free: 31.79 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005681/2.814, allocations: 91.94 kB / 0.9828 GB, free: 31.7 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.007994/2.822, allocations: 2.994 MB / 0.9857 GB, free: 28.73 MB / 0.4952 GB Notification: Performance of sort global known variables: time 1.162e-06/2.822, allocations: 0 / 0.9857 GB, free: 28.73 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.01259/2.835, allocations: 1.464 MB / 0.9872 GB, free: 27.27 MB / 0.4952 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 2 (revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (259): * Single equations (assignments): 255 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 64} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001535/2.837, allocations: 198.6 kB / 0.9874 GB, free: 27.09 MB / 0.4952 GB Notification: Performance of simCode: created initialization part: time 0.01931/2.856, allocations: 8.46 MB / 0.9956 GB, free: 18.63 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 1.38e-05/2.856, allocations: 4 kB / 0.9956 GB, free: 18.63 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.008012/2.864, allocations: 3.354 MB / 0.9989 GB, free: 15.26 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005954/2.87, allocations: 0.5847 MB / 0.9995 GB, free: 14.7 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03997/2.91, allocations: 13.54 MB / 1.013 GB, free: 1.023 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01496/2.925, allocations: 4.973 MB / 1.018 GB, free: 12.05 MB / 0.5108 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002851/2.928, allocations: 391.4 kB / 1.018 GB, free: 11.67 MB / 0.5108 GB Notification: Performance of SimCode: time 1.794e-06/2.928, allocations: 0 / 1.018 GB, free: 11.67 MB / 0.5108 GB Notification: Performance of Templates: time 0.606/3.534, allocations: 114.1 MB / 1.129 GB, free: 69.65 MB / 0.5108 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/FourbarVariants/JointUSP/JointUSP.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches