Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.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.FreeMotion2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.r_rel_a.1.|freeMotion.v_rel_a.1.|prismatic1.s|prismatic1.v|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b|universal1.phi_a|universal1.phi_b|universal1.w_a|universal1.w_b",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2") translateModel(ModelicaTest.MultiBody.Joints.FreeMotion2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.r_rel_a.1.|freeMotion.v_rel_a.1.|prismatic1.s|prismatic1.v|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b|universal1.phi_a|universal1.phi_b|universal1.w_a|universal1.w_b",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001217/0.001217, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.263/1.263, allocations: 225.4 MB / 240.1 MB, free: 15.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008805/0.0008806, allocations: 85.3 kB / 292.1 MB, free: 5.938 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1847/0.1847, allocations: 45.16 MB / 389.3 MB, free: 11.88 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 2.79e-05/2.801e-05, allocations: 4 kB / 460.4 MB, free: 70.03 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09721/0.09725, allocations: 63.25 MB / 0.5114 GB, free: 6.809 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3846/0.4819, allocations: 111.2 MB / 0.62 GB, free: 15.08 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002752/0.4823, allocations: 80.02 kB / 0.6201 GB, free: 15.04 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3113/0.7935, allocations: 122.1 MB / 0.7393 GB, free: 12.77 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.523e-06/0.7936, allocations: 0 / 0.7393 GB, free: 12.77 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0003987/0.794, allocations: 116 kB / 0.7394 GB, free: 12.65 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1982 * Number of variables: 1982 Notification: Performance of Generate backend data structure: time 0.01953/0.8136, allocations: 5.928 MB / 0.7452 GB, free: 6.652 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.973e-05/0.8136, allocations: 15.97 kB / 0.7452 GB, free: 6.637 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2938/1.107, allocations: 6.967 MB / 0.752 GB, free: 114.6 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0175/1.125, allocations: 6.681 MB / 0.7585 GB, free: 114.1 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004037/1.125, allocations: 433.4 kB / 0.7589 GB, free: 114.1 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002028/1.128, allocations: 0.5688 MB / 0.7595 GB, free: 114.1 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02715/1.155, allocations: 13.57 MB / 0.7727 GB, free: 110.9 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002652/1.155, allocations: 91.41 kB / 0.7728 GB, free: 110.9 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009067/1.156, allocations: 273.4 kB / 0.7731 GB, free: 110.9 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001358/1.157, allocations: 1.286 MB / 0.7743 GB, free: 110.9 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02141/1.179, allocations: 11.26 MB / 0.7853 GB, free: 110.9 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06079/1.24, allocations: 61.28 MB / 0.8452 GB, free: 68.96 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01168/1.251, allocations: 5.613 MB / 0.8507 GB, free: 66.89 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003006/1.254, allocations: 3.239 MB / 0.8538 GB, free: 65.49 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005024/1.255, allocations: 0.6923 MB / 0.8545 GB, free: 64.89 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.429e-05/1.255, allocations: 58.66 kB / 0.8545 GB, free: 64.84 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=245): time 5.09e-06/1.255, allocations: 0 / 0.8545 GB, free: 64.84 MB / 0.5261 GB Notification: Performance of matching and sorting (n=311): time 0.07357/1.328, allocations: 28.73 MB / 0.8826 GB, free: 50.38 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.341e-05/1.329, allocations: 264.8 kB / 0.8829 GB, free: 50.07 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00754/1.336, allocations: 4.559 MB / 0.8873 GB, free: 46.03 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0005073/1.337, allocations: 69.7 kB / 0.8874 GB, free: 45.96 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.002015/1.339, allocations: 3.979 MB / 0.8913 GB, free: 42.39 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001091/1.34, allocations: 1.153 MB / 0.8924 GB, free: 41.37 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004897/1.34, allocations: 152 kB / 0.8925 GB, free: 41.22 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003773/1.341, allocations: 0.627 MB / 0.8931 GB, free: 40.68 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003741/1.344, allocations: 3.206 MB / 0.8963 GB, free: 37.79 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004875/1.349, allocations: 7.37 MB / 0.9035 GB, free: 28.9 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005013/1.354, allocations: 4.824 MB / 0.9082 GB, free: 24.71 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.057e-05/1.354, allocations: 44 kB / 0.9082 GB, free: 24.67 MB / 0.5261 GB Notification: Performance of matching and sorting (n=985) (initialization): time 0.01779/1.372, allocations: 12.29 MB / 0.9202 GB, free: 14.05 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 6.828e-05/1.372, allocations: 64 kB / 0.9203 GB, free: 13.99 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.541e-05/1.372, allocations: 148 kB / 0.9204 GB, free: 13.85 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004429/1.377, allocations: 2.127 MB / 0.9225 GB, free: 12.24 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005049/1.382, allocations: 1.72 MB / 0.9242 GB, free: 10.77 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01695/1.399, allocations: 14.48 MB / 0.9383 GB, free: 14.35 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006365/1.405, allocations: 448.8 kB / 0.9388 GB, free: 13.97 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001491/1.407, allocations: 445.2 kB / 0.9392 GB, free: 13.55 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 663 * Number of states: 0 () * Number of discrete variables: 44 (universal1.cylinderColor[3],universal1.cylinderColor[2],universal1.cylinderColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],freeMotion.arrow.arrowLine.twoHeadedArrow,freeMotion.arrow.headAtOrigin,freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[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 (909): * Single equations (assignments): 904 * 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 {(3,100.0%) 24,(3,100.0%) 24} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002104/1.409, allocations: 0.67 MB / 0.9398 GB, free: 12.89 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001305/1.41, allocations: 489.7 kB / 0.9403 GB, free: 12.4 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01254/1.423, allocations: 6.903 MB / 0.947 GB, free: 6.75 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.007e-05/1.423, allocations: 32 kB / 0.9471 GB, free: 6.719 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.884e-05/1.423, allocations: 15.38 kB / 0.9471 GB, free: 6.707 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.277e-05/1.423, allocations: 17.97 kB / 0.9471 GB, free: 6.703 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.297/1.72, allocations: 15.75 MB / 0.9625 GB, free: 115.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.267e-05/1.72, allocations: 8.375 kB / 0.9625 GB, free: 115.6 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002384/1.722, allocations: 0.4925 MB / 0.963 GB, free: 115.6 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00477/1.727, allocations: 1.873 MB / 0.9648 GB, free: 115.6 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004518/1.728, allocations: 67 kB / 0.9649 GB, free: 115.6 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01673/1.744, allocations: 12.81 MB / 0.9774 GB, free: 113.1 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.883e-06/1.744, allocations: 10.44 kB / 0.9774 GB, free: 113.1 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01376/1.758, allocations: 11.9 MB / 0.989 GB, free: 111.3 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001482/1.76, allocations: 0.5333 MB / 0.9895 GB, free: 111.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006419/1.76, allocations: 59.75 kB / 0.9896 GB, free: 111.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002139/1.762, allocations: 212.8 kB / 0.9898 GB, free: 111.2 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004999/1.763, allocations: 202.2 kB / 0.99 GB, free: 111.2 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002062/1.763, allocations: 81.84 kB / 0.9901 GB, free: 111.2 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.004221/1.767, allocations: 3.216 MB / 0.9932 GB, free: 111 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.71e-07/1.767, allocations: 0 / 0.9932 GB, free: 111 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.005546/1.773, allocations: 1.475 MB / 0.9946 GB, free: 111 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 12 (freeMotion.r_rel_a[1],freeMotion.v_rel_a[1],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b,prismatic1.s,prismatic1.v,universal1.phi_a,universal1.phi_b,universal1.w_a,universal1.w_b) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (249): * Single equations (assignments): 244 * 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 {(7,46.9%) 17,(7,46.9%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000488/1.773, allocations: 216.5 kB / 0.9948 GB, free: 110.9 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.009533/1.783, allocations: 8.037 MB / 1.003 GB, free: 109.5 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.011e-05/1.783, allocations: 0 / 1.003 GB, free: 109.5 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.006223/1.789, allocations: 3.83 MB / 1.006 GB, free: 108.1 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003455/1.793, allocations: 0.6315 MB / 1.007 GB, free: 107.9 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01702/1.81, allocations: 11.99 MB / 1.019 GB, free: 103.5 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003826/1.814, allocations: 4.451 MB / 1.023 GB, free: 102 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.005926/1.82, allocations: 2.448 MB / 1.025 GB, free: 101.8 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001123/1.821, allocations: 348.8 kB / 1.026 GB, free: 101.8 MB / 0.5417 GB Notification: Performance of SimCode: time 1.684e-06/1.821, allocations: 0 / 1.026 GB, free: 101.8 MB / 0.5417 GB Notification: Performance of Templates: time 0.08801/1.909, allocations: 60.04 MB / 1.084 GB, free: 68.1 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotion2/FreeMotion2.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches