Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.JointUSP,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_trunk_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_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001429/0.001428, allocations: 193.5 kB / 16.78 MB, free: 5.027 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.292/1.292, allocations: 226.5 MB / 244.1 MB, free: 8.223 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007477/0.0007477, allocations: 105.9 kB / 296.1 MB, free: 6.895 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3487/0.3487, allocations: 44.82 MB / 392.9 MB, free: 35.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002807/0.0002808, allocations: 8 kB / 465.9 MB, free: 12.73 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3485/0.3488, allocations: 62.95 MB / 0.5165 GB, free: 36.95 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1424/0.4913, allocations: 118.4 MB / 0.632 GB, free: 2.965 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002861/0.4917, allocations: 83.95 kB / 0.6321 GB, free: 2.883 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5942/1.086, allocations: 144.7 MB / 0.7734 GB, free: 70.11 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.815e-06/1.086, allocations: 4 kB / 0.7735 GB, free: 70.11 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004591/1.086, allocations: 136 kB / 0.7736 GB, free: 69.98 MB / 490.7 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.02393/1.11, allocations: 7.037 MB / 0.7805 GB, free: 62.85 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/1.11, allocations: 12.03 kB / 0.7805 GB, free: 62.84 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02657/1.137, allocations: 6.859 MB / 0.7872 GB, free: 55.96 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02032/1.157, allocations: 7.167 MB / 0.7942 GB, free: 48.71 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005728/1.158, allocations: 477.1 kB / 0.7946 GB, free: 48.24 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003658/1.162, allocations: 0.6407 MB / 0.7952 GB, free: 47.6 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03947/1.201, allocations: 15.48 MB / 0.8104 GB, free: 30.93 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006091/1.202, allocations: 79.25 kB / 0.8104 GB, free: 30.85 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003257/1.205, allocations: 299.9 kB / 0.8107 GB, free: 30.55 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002086/1.207, allocations: 1.393 MB / 0.8121 GB, free: 29.15 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02648/1.234, allocations: 12.68 MB / 0.8245 GB, free: 16.45 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3528/1.587, allocations: 64.28 MB / 0.8872 GB, free: 105 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01573/1.602, allocations: 6.183 MB / 0.8933 GB, free: 104.3 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003736/1.606, allocations: 3.151 MB / 0.8964 GB, free: 104.3 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01475/1.621, allocations: 11.05 MB / 0.9071 GB, free: 101.5 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.892e-05/1.621, allocations: 61.34 kB / 0.9072 GB, free: 101.5 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=245): time 5.561e-06/1.621, allocations: 0 / 0.9072 GB, free: 101.5 MB / 0.5261 GB Notification: Performance of matching and sorting (n=337): time 0.1233/1.744, allocations: 36.65 MB / 0.943 GB, free: 97.51 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.737e-05/1.744, allocations: 238 kB / 0.9432 GB, free: 97.25 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01031/1.755, allocations: 5.587 MB / 0.9487 GB, free: 96 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0007794/1.756, allocations: 80.97 kB / 0.9487 GB, free: 95.93 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.002848/1.758, allocations: 4.462 MB / 0.9531 GB, free: 92.56 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001579/1.76, allocations: 1.24 MB / 0.9543 GB, free: 91.65 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001088/1.761, allocations: 165.9 kB / 0.9545 GB, free: 91.52 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0006582/1.762, allocations: 0.6522 MB / 0.9551 GB, free: 91.07 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005639/1.767, allocations: 3.607 MB / 0.9586 GB, free: 89.73 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008163/1.776, allocations: 8.181 MB / 0.9666 GB, free: 82.33 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01409/1.79, allocations: 12.74 MB / 0.9791 GB, free: 73 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002278/1.79, allocations: 44.19 kB / 0.9791 GB, free: 73 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1073) (initialization): time 0.03137/1.821, allocations: 14.75 MB / 0.9935 GB, free: 65.38 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001858/1.822, allocations: 73 kB / 0.9936 GB, free: 65.31 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002817/1.822, allocations: 160 kB / 0.9937 GB, free: 65.15 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01128/1.833, allocations: 3.557 MB / 0.9972 GB, free: 62.72 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005956/1.839, allocations: 1.793 MB / 0.999 GB, free: 61.15 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02399/1.863, allocations: 18.01 MB / 1.017 GB, free: 45.74 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006765/1.87, allocations: 492.1 kB / 1.017 GB, free: 45.34 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001659/1.872, allocations: 471.6 kB / 1.017 GB, free: 44.88 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 724 * 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 (972): * Single equations (assignments): 968 * 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.007609/1.879, allocations: 3.123 MB / 1.021 GB, free: 42.14 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001495/1.881, allocations: 0.5284 MB / 1.021 GB, free: 41.6 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01906/1.9, allocations: 8.885 MB / 1.03 GB, free: 34.64 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.865e-05/1.9, allocations: 36 kB / 1.03 GB, free: 34.6 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.732e-05/1.9, allocations: 16 kB / 1.03 GB, free: 34.59 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.091e-05/1.9, allocations: 13.92 kB / 1.03 GB, free: 34.59 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03745/1.938, allocations: 18.66 MB / 1.048 GB, free: 17.59 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.68e-05/1.938, allocations: 12.12 kB / 1.048 GB, free: 17.58 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002395/1.94, allocations: 487.2 kB / 1.048 GB, free: 17.11 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01002/1.95, allocations: 3.115 MB / 1.052 GB, free: 13.98 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000608/1.951, allocations: 67.98 kB / 1.052 GB, free: 13.92 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02096/1.972, allocations: 15.68 MB / 1.067 GB, free: 14.11 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.199e-05/1.972, allocations: 15.45 kB / 1.067 GB, free: 14.09 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02557/1.997, allocations: 13.25 MB / 1.08 GB, free: 0.6562 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001681/1.999, allocations: 0.5566 MB / 1.08 GB, free: 76 kB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001554/2.001, allocations: 56 kB / 1.08 GB, free: 20 kB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003258/2.004, allocations: 206.9 kB / 1.081 GB, free: 15.82 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008561/2.005, allocations: 226.2 kB / 1.081 GB, free: 15.6 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003617/2.005, allocations: 84 kB / 1.081 GB, free: 15.52 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.007384/2.013, allocations: 3.514 MB / 1.084 GB, free: 12.03 MB / 0.5573 GB Notification: Performance of sort global known variables: time 5.41e-07/2.013, allocations: 0 / 1.084 GB, free: 12.03 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01059/2.023, allocations: 1.689 MB / 1.086 GB, free: 10.36 MB / 0.5573 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (253): * Single equations (assignments): 249 * 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.001205/2.024, allocations: 243 kB / 1.086 GB, free: 10.12 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.2388/2.263, allocations: 8.919 MB / 1.095 GB, free: 141 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 9.818e-06/2.263, allocations: 0 / 1.095 GB, free: 141 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.00459/2.268, allocations: 3.49 MB / 1.098 GB, free: 140.8 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008811/2.277, allocations: 0.7344 MB / 1.099 GB, free: 140.8 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0268/2.304, allocations: 18.71 MB / 1.117 GB, free: 134.2 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006574/2.31, allocations: 4.818 MB / 1.122 GB, free: 133.3 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001761/2.312, allocations: 411.6 kB / 1.122 GB, free: 133.3 MB / 0.5573 GB Notification: Performance of SimCode: time 8.52e-07/2.312, allocations: 0 / 1.122 GB, free: 133.3 MB / 0.5573 GB Notification: Performance of Templates: time 0.1553/2.467, allocations: 120.3 MB / 1.24 GB, free: 61.43 MB / 0.5573 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/JointUSP/JointUSP.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches