Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_ModelicaTest.MultiBody.Joints.Planar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001202/0.001202, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001443/0.001444, allocations: 211.9 kB / 19.25 MB, free: 3.895 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.369/1.369, allocations: 227.4 MB / 247.4 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.221/0.221, allocations: 46.09 MB / 344.8 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001413, allocations: 75.88 kB / 418.3 MB, free: 19.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1147, allocations: 62.44 MB / 480.7 MB, free: 5.297 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.01501/0.1297, allocations: 14.95 MB / 495.6 MB, free: 6.273 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009239/0.139, allocations: 4.411 MB / 0.4883 GB, free: 1.848 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002819/0.1419, allocations: 79.81 kB / 0.4884 GB, free: 1.77 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004874/0.1468, allocations: 2.23 MB / 0.4906 GB, free: 15.53 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005085/0.152, allocations: 1.965 MB / 0.4925 GB, free: 13.56 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00166/0.1537, allocations: 0.616 MB / 0.4931 GB, free: 12.94 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005874/0.1596, allocations: 4.304 MB / 0.4973 GB, free: 8.629 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004439/0.164, allocations: 3.15 MB / 0.5004 GB, free: 5.426 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002889/0.167, allocations: 1.573 MB / 0.5019 GB, free: 3.848 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003594/0.1706, allocations: 2.212 MB / 0.5041 GB, free: 1.629 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001038/0.1717, allocations: 348 kB / 0.5044 GB, free: 1.289 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002434/0.1741, allocations: 1.03 MB / 0.5054 GB, free: 264 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2105/0.3847, allocations: 1.961 MB / 0.5073 GB, free: 16.3 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003735/0.3884, allocations: 2.379 MB / 0.5097 GB, free: 15.55 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01127/0.3997, allocations: 7.419 MB / 0.5169 GB, free: 14.55 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.784e-06/0.3998, allocations: 1.375 kB / 0.5169 GB, free: 14.55 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.3998, allocations: 0 / 0.5169 GB, free: 14.55 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003079/0.4001, allocations: 0 / 0.5169 GB, free: 14.55 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: 1828 * Number of variables: 1828 Notification: Performance of Generate backend data structure: time 0.01491/0.415, allocations: 5.062 MB / 0.5219 GB, free: 12.51 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.4151, allocations: 9.281 kB / 0.5219 GB, free: 12.51 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01153/0.4266, allocations: 3.187 MB / 0.525 GB, free: 12.19 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006217/0.4329, allocations: 2.344 MB / 0.5273 GB, free: 11.36 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002455/0.4332, allocations: 246.4 kB / 0.5275 GB, free: 11.29 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001904/0.4351, allocations: 335.2 kB / 0.5278 GB, free: 11.22 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02035/0.4555, allocations: 12.23 MB / 0.5398 GB, free: 4.938 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001262/0.4556, allocations: 40.94 kB / 0.5398 GB, free: 4.926 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005449/0.4562, allocations: 156.6 kB / 0.54 GB, free: 4.863 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004064/0.4602, allocations: 2.845 MB / 0.5427 GB, free: 3.766 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02159/0.4819, allocations: 11.13 MB / 0.5536 GB, free: 9.5 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06487/0.5468, allocations: 40.7 MB / 0.5934 GB, free: 380 kB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01014/0.5569, allocations: 4.691 MB / 0.5979 GB, free: 11.47 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003456/0.5604, allocations: 2.427 MB / 0.6003 GB, free: 9.047 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001173/0.5616, allocations: 1.318 MB / 0.6016 GB, free: 7.516 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.148e-05/0.5617, allocations: 64.55 kB / 0.6017 GB, free: 7.445 MB / 446.1 MB Notification: Performance of pre-optimization done (n=249): time 6.853e-06/0.5617, allocations: 0 / 0.6017 GB, free: 7.445 MB / 446.1 MB Notification: Performance of matching and sorting (n=267): time 0.04632/0.608, allocations: 18.68 MB / 0.6199 GB, free: 4.652 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.724e-05/0.6082, allocations: 73.41 kB / 0.62 GB, free: 4.57 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006573/0.6147, allocations: 3.171 MB / 0.6231 GB, free: 1.391 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000662/0.6154, allocations: 61.45 kB / 0.6231 GB, free: 1.328 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002575/0.618, allocations: 3.113 MB / 0.6262 GB, free: 14.21 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001586/0.6197, allocations: 0.9751 MB / 0.6271 GB, free: 13.25 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003481/0.6231, allocations: 1.182 MB / 0.6283 GB, free: 12.05 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001011/0.6233, allocations: 309.1 kB / 0.6286 GB, free: 11.75 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004254/0.6275, allocations: 2.463 MB / 0.631 GB, free: 9.281 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006584/0.6341, allocations: 5.726 MB / 0.6366 GB, free: 2.004 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01143/0.6456, allocations: 8.987 MB / 0.6453 GB, free: 7.898 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001087/0.6457, allocations: 32 kB / 0.6454 GB, free: 7.867 MB / 494.1 MB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01916/0.6649, allocations: 9.002 MB / 0.6542 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001556/0.6651, allocations: 52 kB / 0.6542 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002376/0.6654, allocations: 116 kB / 0.6543 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003356/0.6687, allocations: 1.063 MB / 0.6554 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005412/0.6742, allocations: 1.349 MB / 0.6567 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007274/0.6815, allocations: 5.541 MB / 0.6621 GB, free: 7.129 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004457/0.6859, allocations: 315.8 kB / 0.6624 GB, free: 6.82 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001289/0.6873, allocations: 344 kB / 0.6627 GB, free: 6.484 MB / 0.4981 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 (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 {(4,11,87.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005701/0.693, allocations: 2.415 MB / 0.6651 GB, free: 4.062 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009095/0.6939, allocations: 308 kB / 0.6654 GB, free: 3.758 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01034/0.7042, allocations: 5.375 MB / 0.6706 GB, free: 14.32 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.666e-05/0.7043, allocations: 47.98 kB / 0.6707 GB, free: 14.28 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.451e-05/0.7044, allocations: 8.125 kB / 0.6707 GB, free: 14.27 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.994e-05/0.7044, allocations: 11.91 kB / 0.6707 GB, free: 14.26 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02715/0.7316, allocations: 13.06 MB / 0.6834 GB, free: 1.004 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.63e-05/0.7316, allocations: 15.94 kB / 0.6834 GB, free: 0.9883 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00203/0.7337, allocations: 423.3 kB / 0.6839 GB, free: 0.5742 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002873/0.7366, allocations: 0.8902 MB / 0.6847 GB, free: 15.68 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003623/0.737, allocations: 55.2 kB / 0.6848 GB, free: 15.63 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006562/0.7435, allocations: 4.829 MB / 0.6895 GB, free: 10.66 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.346e-05/0.7436, allocations: 16.64 kB / 0.6895 GB, free: 10.64 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01375/0.7573, allocations: 8.03 MB / 0.6973 GB, free: 2.398 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001116/0.7585, allocations: 361.1 kB / 0.6977 GB, free: 2.023 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009402/0.7595, allocations: 59.92 kB / 0.6977 GB, free: 1.965 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002003/0.7615, allocations: 151 kB / 0.6979 GB, free: 1.82 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004895/0.762, allocations: 169.5 kB / 0.6981 GB, free: 1.652 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002516/0.7622, allocations: 75.98 kB / 0.6981 GB, free: 1.578 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00459/0.7668, allocations: 1.952 MB / 0.7 GB, free: 15.63 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.01e-07/0.7669, allocations: 0 / 0.7 GB, free: 15.63 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00646/0.7733, allocations: 1.069 MB / 0.7011 GB, free: 14.56 MB / 0.545 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 (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 {(3,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008419/0.7742, allocations: 194.9 kB / 0.7013 GB, free: 14.36 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01752/0.7917, allocations: 9.648 MB / 0.7107 GB, free: 4.73 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.473e-05/0.7918, allocations: 8.062 kB / 0.7107 GB, free: 4.723 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004339/0.7961, allocations: 2.244 MB / 0.7129 GB, free: 2.465 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004127/0.8003, allocations: 463.3 kB / 0.7133 GB, free: 2.023 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2454/1.046, allocations: 11.87 MB / 0.7249 GB, free: 196.4 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005104/1.051, allocations: 3.707 MB / 0.7285 GB, free: 195.6 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001269/1.052, allocations: 289.1 kB / 0.7288 GB, free: 195.6 MB / 0.545 GB Notification: Performance of SimCode: time 1.143e-06/1.052, allocations: 0 / 0.7288 GB, free: 195.6 MB / 0.545 GB Notification: Performance of Templates: time 0.09429/1.147, allocations: 84.04 MB / 0.8109 GB, free: 121.4 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Planar/Planar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches