Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Planar.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.Joints.Planar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|planar.phi|planar.s_x|planar.s_y|planar.v_x|planar.v_y|planar.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Planar") translateModel(ModelicaTest.MultiBody.Joints.Planar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|planar.phi|planar.s_x|planar.s_y|planar.v_x|planar.v_y|planar.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Planar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009446/0.0009445, allocations: 200.1 kB / 15.8 MB, free: 6.328 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.261/1.261, allocations: 226.6 MB / 243.1 MB, free: 14.31 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007872/0.0007872, allocations: 99.34 kB / 295.1 MB, free: 10.08 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1837/0.1837, allocations: 44.84 MB / 392 MB, free: 9.352 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002911/0.0002912, allocations: 8 kB / 464.7 MB, free: 49.79 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09039/0.0907, allocations: 62.96 MB / 0.5153 GB, free: 2.789 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.2099/0.3006, allocations: 41.98 MB / 0.5563 GB, free: 80 kB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.02125/0.3219, allocations: 9.161 MB / 0.5653 GB, free: 9.84 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008894/0.3308, allocations: 189.7 kB / 0.5655 GB, free: 9.812 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00627/0.3371, allocations: 2.078 MB / 0.5675 GB, free: 8.16 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01572/0.3529, allocations: 6.126 MB / 0.5735 GB, free: 2.016 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002246/0.3551, allocations: 0.511 MB / 0.574 GB, free: 1.504 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.005504/0.3606, allocations: 4.728 MB / 0.5786 GB, free: 12.77 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005079/0.3657, allocations: 3.535 MB / 0.582 GB, free: 9.195 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002195/0.368, allocations: 1.3 MB / 0.5833 GB, free: 7.891 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002833/0.3708, allocations: 2.079 MB / 0.5853 GB, free: 5.805 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007799/0.3716, allocations: 172 kB / 0.5855 GB, free: 5.637 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001965/0.3736, allocations: 0.7763 MB / 0.5863 GB, free: 4.859 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002018/0.3756, allocations: 1.769 MB / 0.588 GB, free: 3.086 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00137/0.377, allocations: 0.9128 MB / 0.5889 GB, free: 2.164 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005951/0.383, allocations: 5.944 MB / 0.5947 GB, free: 12.21 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.383, allocations: 0 / 0.5947 GB, free: 12.21 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.455e-06/0.383, allocations: 4 kB / 0.5947 GB, free: 12.2 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002777/0.3833, allocations: 4 kB / 0.5947 GB, free: 12.2 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1828 * Number of variables: 1828 Notification: Performance of Generate backend data structure: time 0.008377/0.3917, allocations: 4.219 MB / 0.5988 GB, free: 7.91 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.3917, allocations: 11.97 kB / 0.5988 GB, free: 7.898 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01036/0.4021, allocations: 3.277 MB / 0.602 GB, free: 4.609 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004935/0.4071, allocations: 2.318 MB / 0.6043 GB, free: 2.238 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002209/0.4073, allocations: 250.2 kB / 0.6045 GB, free: 1.992 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001089/0.4084, allocations: 327.7 kB / 0.6048 GB, free: 1.672 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02016/0.4286, allocations: 12.22 MB / 0.6168 GB, free: 4.918 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001428/0.4288, allocations: 35.64 kB / 0.6168 GB, free: 4.883 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000886/0.4297, allocations: 151.8 kB / 0.6169 GB, free: 4.734 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004285/0.434, allocations: 2.848 MB / 0.6197 GB, free: 1.883 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01978/0.4538, allocations: 11.09 MB / 0.6305 GB, free: 6.777 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05562/0.5094, allocations: 40.71 MB / 0.6703 GB, free: 13.01 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008815/0.5183, allocations: 4.678 MB / 0.6749 GB, free: 8.109 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003168/0.5215, allocations: 2.429 MB / 0.6772 GB, free: 5.684 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001131/0.5226, allocations: 1.315 MB / 0.6785 GB, free: 4.148 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.699e-05/0.5227, allocations: 52.56 kB / 0.6786 GB, free: 4.086 MB / 490.7 MB Notification: Performance of pre-optimization done (n=249): time 4.779e-06/0.5227, allocations: 0 / 0.6786 GB, free: 4.086 MB / 490.7 MB Notification: Performance of matching and sorting (n=267): time 0.04102/0.5637, allocations: 18.64 MB / 0.6968 GB, free: 1.289 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.454e-05/0.5639, allocations: 73.41 kB / 0.6969 GB, free: 1.203 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004973/0.5688, allocations: 3.16 MB / 0.6999 GB, free: 14.03 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0004451/0.5693, allocations: 61.7 kB / 0.7 GB, free: 13.96 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002222/0.5716, allocations: 3.114 MB / 0.703 GB, free: 10.81 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001327/0.5729, allocations: 0.9751 MB / 0.704 GB, free: 9.82 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005258/0.5734, allocations: 116 kB / 0.7041 GB, free: 9.707 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000502/0.574, allocations: 0.5661 MB / 0.7047 GB, free: 9.133 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00396/0.5779, allocations: 2.444 MB / 0.707 GB, free: 6.684 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2193/0.7972, allocations: 5.702 MB / 0.7126 GB, free: 160.2 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005993/0.8033, allocations: 3.73 MB / 0.7163 GB, free: 159.7 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.758e-05/0.8033, allocations: 32.34 kB / 0.7163 GB, free: 159.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01416/0.8175, allocations: 8.947 MB / 0.725 GB, free: 156.8 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 8.807e-05/0.8176, allocations: 54.61 kB / 0.7251 GB, free: 156.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001705/0.8178, allocations: 113.8 kB / 0.7252 GB, free: 156.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003106/0.8209, allocations: 1.064 MB / 0.7262 GB, free: 156.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004191/0.8251, allocations: 1.35 MB / 0.7275 GB, free: 156.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006501/0.8316, allocations: 5.137 MB / 0.7326 GB, free: 153.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003789/0.8354, allocations: 326.5 kB / 0.7329 GB, free: 153.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005004/0.836, allocations: 340.7 kB / 0.7332 GB, free: 153.8 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 517 * Number of states: 0 () * Number of discrete variables: 46 (axis1.arrowLine.twoHeadedArrow,axis1.headAtOrigin,axis2.arrowLine.twoHeadedArrow,axis2.headAtOrigin,axis1.color[3],axis1.color[2],axis1.color[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],planar.cylinderColor[3],planar.cylinderColor[2],planar.cylinderColor[1],planar.boxColor[3],planar.boxColor[2],planar.boxColor[1],planar.revolute.cylinderColor[3],planar.revolute.cylinderColor[2],planar.revolute.cylinderColor[1],planar.prismatic_y.boxColor[3],planar.prismatic_y.boxColor[2],planar.prismatic_y.boxColor[1],planar.prismatic_x.boxColor[3],planar.prismatic_x.boxColor[2],planar.prismatic_x.boxColor[1],axis2.color[3],axis2.color[2],axis2.color[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (729): * Single equations (assignments): 722 * Array equations: 6 * 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 {(4,87.5%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003757/0.8397, allocations: 2.413 MB / 0.7355 GB, free: 152.8 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003755/0.8401, allocations: 314.3 kB / 0.7358 GB, free: 152.8 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007074/0.8472, allocations: 5.352 MB / 0.7411 GB, free: 150.9 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.205e-05/0.8473, allocations: 52.23 kB / 0.7411 GB, free: 150.9 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.695e-06/0.8473, allocations: 0 / 0.7411 GB, free: 150.9 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.68e-05/0.8473, allocations: 15.02 kB / 0.7411 GB, free: 150.9 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01601/0.8633, allocations: 13.03 MB / 0.7539 GB, free: 144.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.518e-05/0.8634, allocations: 11.95 kB / 0.7539 GB, free: 144.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001503/0.8649, allocations: 429 kB / 0.7543 GB, free: 144.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002302/0.8672, allocations: 0.8921 MB / 0.7552 GB, free: 143.2 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001374/0.8673, allocations: 56.84 kB / 0.7552 GB, free: 143.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00443/0.8718, allocations: 4.486 MB / 0.7596 GB, free: 138.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.967e-06/0.8718, allocations: 20.77 kB / 0.7596 GB, free: 138.5 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008788/0.8806, allocations: 7.991 MB / 0.7674 GB, free: 130.5 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007026/0.8813, allocations: 369 kB / 0.7678 GB, free: 130.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003186/0.8817, allocations: 48 kB / 0.7678 GB, free: 130 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001208/0.8829, allocations: 149.7 kB / 0.768 GB, free: 129.9 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002509/0.8831, allocations: 173.6 kB / 0.7681 GB, free: 129.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001401/0.8833, allocations: 72.88 kB / 0.7682 GB, free: 129.7 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.00212/0.8854, allocations: 1.928 MB / 0.7701 GB, free: 127.7 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8854, allocations: 0 / 0.7701 GB, free: 127.7 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.003866/0.8893, allocations: 1.084 MB / 0.7711 GB, free: 126.7 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 6 (planar.s_x,planar.s_y,planar.phi,planar.v_x,planar.v_y,planar.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 (208): * Single equations (assignments): 201 * Array equations: 6 * 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 {(3,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003937/0.8897, allocations: 198.5 kB / 0.7713 GB, free: 126.5 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.006918/0.8966, allocations: 5.967 MB / 0.7771 GB, free: 120.5 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.778e-06/0.8967, allocations: 4 kB / 0.7771 GB, free: 120.5 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002289/0.899, allocations: 2.241 MB / 0.7793 GB, free: 118.3 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002096/0.9011, allocations: 449.4 kB / 0.7798 GB, free: 117.8 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01516/0.9162, allocations: 13.97 MB / 0.7934 GB, free: 103.7 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002878/0.9192, allocations: 3.704 MB / 0.797 GB, free: 99.97 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001069/0.9202, allocations: 287.4 kB / 0.7973 GB, free: 99.69 MB / 0.5105 GB Notification: Performance of SimCode: time 1.553e-06/0.9203, allocations: 0 / 0.7973 GB, free: 99.69 MB / 0.5105 GB Notification: Performance of Templates: time 0.07879/0.9991, allocations: 83.52 MB / 0.8789 GB, free: 16.21 MB / 0.5105 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Planar.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Planar.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Planar.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Planar.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Planar.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Planar --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Planar.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Planar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Planar/Planar.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Planar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches