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/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.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/ModelicaServices trunk/package.mo): time 0.001122/0.001122, allocations: 115.8 kB / 18.4 MB, free: 4.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001309/0.001309, allocations: 203.4 kB / 19.35 MB, free: 3.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.339/1.339, allocations: 227.4 MB / 247.5 MB, free: 10.37 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2063/0.2063, allocations: 46.11 MB / 344.9 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001345/0.001345, allocations: 67.89 kB / 419 MB, free: 19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1168, allocations: 62.45 MB / 481.5 MB, free: 4.516 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.01446/0.1314, allocations: 14.66 MB / 496.1 MB, free: 5.785 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01141/0.1428, allocations: 4.995 MB / 0.4894 GB, free: 0.7734 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003816/0.1467, allocations: 99.69 kB / 0.4895 GB, free: 0.6758 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008666/0.1554, allocations: 4.135 MB / 0.4935 GB, free: 12.53 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006331/0.1618, allocations: 2.318 MB / 0.4958 GB, free: 10.2 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002628/0.1644, allocations: 1.072 MB / 0.4968 GB, free: 9.125 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01058/0.175, allocations: 7.168 MB / 0.5038 GB, free: 1.941 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.21/0.3851, allocations: 5.123 MB / 0.5088 GB, free: 14.52 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003386/0.3885, allocations: 2.223 MB / 0.511 GB, free: 14.4 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004366/0.3929, allocations: 3.048 MB / 0.514 GB, free: 14.07 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001491/0.3944, allocations: 497.1 kB / 0.5144 GB, free: 14.07 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003101/0.3975, allocations: 1.359 MB / 0.5158 GB, free: 14.07 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002902/0.4004, allocations: 2.74 MB / 0.5184 GB, free: 13.8 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003837/0.4043, allocations: 3.13 MB / 0.5215 GB, free: 12.73 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01028/0.4146, allocations: 9.772 MB / 0.531 GB, free: 9.172 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.4146, allocations: 3.75 kB / 0.531 GB, free: 9.172 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.4146, allocations: 0 / 0.531 GB, free: 9.172 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002815/0.4149, allocations: 1.562 kB / 0.531 GB, free: 9.172 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: 1953 * Number of variables: 1953 Notification: Performance of Generate backend data structure: time 0.01408/0.429, allocations: 6.856 MB / 0.5377 GB, free: 4.613 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.095e-05/0.4291, allocations: 9.594 kB / 0.5377 GB, free: 4.613 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02789/0.457, allocations: 3.308 MB / 0.541 GB, free: 3.094 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0155/0.4725, allocations: 4.418 MB / 0.5453 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000403/0.4729, allocations: 326.3 kB / 0.5456 GB, free: 452 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002026/0.475, allocations: 446.8 kB / 0.546 GB, free: 312 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03395/0.5089, allocations: 13.09 MB / 0.5588 GB, free: 2.574 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000263/0.5093, allocations: 76.77 kB / 0.5589 GB, free: 2.523 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009371/0.5102, allocations: 212.3 kB / 0.5591 GB, free: 2.359 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006779/0.517, allocations: 2.523 MB / 0.5616 GB, free: 15.87 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02672/0.5438, allocations: 11.39 MB / 0.5727 GB, free: 4.703 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07135/0.6152, allocations: 52.73 MB / 0.6242 GB, free: 15.15 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01376/0.629, allocations: 5.662 MB / 0.6297 GB, free: 9.355 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004616/0.6336, allocations: 3.502 MB / 0.6331 GB, free: 5.855 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000843/0.6345, allocations: 0.6867 MB / 0.6338 GB, free: 5.07 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.359e-05/0.6346, allocations: 63.17 kB / 0.6338 GB, free: 5.004 MB / 478.1 MB Notification: Performance of pre-optimization done (n=245): time 5.049e-06/0.6346, allocations: 3.938 kB / 0.6338 GB, free: 5 MB / 478.1 MB Notification: Performance of matching and sorting (n=315): time 0.09914/0.7337, allocations: 36.47 MB / 0.6695 GB, free: 472 kB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001423/0.7339, allocations: 270.3 kB / 0.6697 GB, free: 144 kB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007268/0.7412, allocations: 5.169 MB / 0.6748 GB, free: 10.98 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0007526/0.742, allocations: 73.7 kB / 0.6748 GB, free: 10.9 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002531/0.7445, allocations: 3.871 MB / 0.6786 GB, free: 7.027 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001498/0.746, allocations: 1.17 MB / 0.6798 GB, free: 5.867 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002298/0.7483, allocations: 1.587 MB / 0.6813 GB, free: 4.27 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 8.751e-05/0.7484, allocations: 309 kB / 0.6816 GB, free: 3.965 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004969/0.7534, allocations: 3.624 MB / 0.6851 GB, free: 344 kB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00763/0.761, allocations: 7.817 MB / 0.6928 GB, free: 6.551 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0136/0.7747, allocations: 12.25 MB / 0.7047 GB, free: 8.797 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001126/0.7748, allocations: 40 kB / 0.7048 GB, free: 8.758 MB / 0.545 GB Notification: Performance of matching and sorting (n=1024) (initialization): time 0.2451/1.02, allocations: 13.73 MB / 0.7182 GB, free: 182.5 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001052/1.02, allocations: 67.42 kB / 0.7183 GB, free: 182.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001625/1.02, allocations: 144.3 kB / 0.7184 GB, free: 182.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007318/1.028, allocations: 2.754 MB / 0.7211 GB, free: 182.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006753/1.034, allocations: 1.782 MB / 0.7228 GB, free: 182.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02077/1.055, allocations: 17.81 MB / 0.7402 GB, free: 174.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006979/1.062, allocations: 473.8 kB / 0.7407 GB, free: 174.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001967/1.064, allocations: 458.5 kB / 0.7411 GB, free: 174.1 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 656 * Number of states: 0 () * Number of discrete variables: 44 (freeMotion.arrow.twoHeadedArrow,freeMotion.arrow.headAtOrigin,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.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (948): * Single equations (assignments): 943 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,24,100.0%), (3,24,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007123/1.071, allocations: 2.738 MB / 0.7438 GB, free: 173 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001192/1.072, allocations: 480.8 kB / 0.7442 GB, free: 173 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01211/1.085, allocations: 8.05 MB / 0.7521 GB, free: 170.1 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.873e-05/1.085, allocations: 32.84 kB / 0.7521 GB, free: 170.1 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.837e-05/1.085, allocations: 11.25 kB / 0.7521 GB, free: 170.1 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.193e-05/1.085, allocations: 15.94 kB / 0.7522 GB, free: 170.1 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02575/1.11, allocations: 16.99 MB / 0.7687 GB, free: 158.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.262e-05/1.111, allocations: 11.94 kB / 0.7688 GB, free: 158.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002272/1.113, allocations: 0.4953 MB / 0.7692 GB, free: 157.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005497/1.118, allocations: 2.479 MB / 0.7717 GB, free: 155.2 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005559/1.119, allocations: 63.86 kB / 0.7717 GB, free: 155.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01649/1.135, allocations: 15.85 MB / 0.7872 GB, free: 139.1 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.234e-06/1.135, allocations: 15.61 kB / 0.7872 GB, free: 139.1 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01697/1.152, allocations: 12.59 MB / 0.7995 GB, free: 126.6 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001737/1.154, allocations: 0.5296 MB / 0.8 GB, free: 126.2 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001559/1.156, allocations: 63.98 kB / 0.8001 GB, free: 126.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003338/1.159, allocations: 223.7 kB / 0.8003 GB, free: 125.9 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007791/1.16, allocations: 202 kB / 0.8005 GB, free: 125.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002501/1.16, allocations: 84 kB / 0.8006 GB, free: 125.6 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004499/1.165, allocations: 3.268 MB / 0.8038 GB, free: 122.3 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.8e-07/1.165, allocations: 2.188 kB / 0.8038 GB, free: 122.3 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006987/1.172, allocations: 1.526 MB / 0.8053 GB, free: 120.8 MB / 0.545 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (253): * Single equations (assignments): 248 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,21,100.0%), (3,21,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006915/1.172, allocations: 209.3 kB / 0.8055 GB, free: 120.6 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01155/1.184, allocations: 8.918 MB / 0.8142 GB, free: 111.7 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.003e-05/1.184, allocations: 1.5 kB / 0.8142 GB, free: 111.7 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004427/1.188, allocations: 3.569 MB / 0.8177 GB, free: 108.1 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0041/1.193, allocations: 0.6636 MB / 0.8183 GB, free: 107.5 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02177/1.214, allocations: 14.53 MB / 0.8325 GB, free: 92.85 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004019/1.218, allocations: 4.279 MB / 0.8367 GB, free: 88.54 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005054/1.224, allocations: 2.452 MB / 0.8391 GB, free: 86.08 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001314/1.225, allocations: 347.3 kB / 0.8394 GB, free: 85.74 MB / 0.545 GB Notification: Performance of SimCode: time 1.042e-06/1.225, allocations: 4 kB / 0.8394 GB, free: 85.74 MB / 0.545 GB Notification: Performance of Templates: time 0.0914/1.316, allocations: 62.33 MB / 0.9003 GB, free: 23.77 MB / 0.545 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotion2/FreeMotion2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches