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.001567/0.001567, allocations: 109.5 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001932/0.001932, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.346/1.346, allocations: 227.3 MB / 246.9 MB, free: 10.7 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2237/0.2237, allocations: 46.11 MB / 344.3 MB, free: 11.77 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001453/0.001453, allocations: 84.62 kB / 417.5 MB, free: 20.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.138/0.1395, allocations: 62.44 MB / 479.9 MB, free: 5.699 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.3219/0.4614, allocations: 70.16 MB / 0.5372 GB, free: 4.27 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03591/0.4974, allocations: 14.12 MB / 0.551 GB, free: 10.86 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01764/0.5151, allocations: 311.5 kB / 0.5513 GB, free: 10.81 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008247/0.5234, allocations: 4.145 MB / 0.5553 GB, free: 8.137 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007312/0.5308, allocations: 2.169 MB / 0.5575 GB, free: 6.598 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002759/0.5336, allocations: 0.9845 MB / 0.5584 GB, free: 5.922 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01271/0.5463, allocations: 9.923 MB / 0.5681 GB, free: 13.16 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007502/0.5538, allocations: 4.988 MB / 0.573 GB, free: 8.121 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004751/0.5586, allocations: 1.962 MB / 0.5749 GB, free: 6.152 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006206/0.5648, allocations: 3.256 MB / 0.5781 GB, free: 2.887 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002122/0.567, allocations: 340 kB / 0.5784 GB, free: 2.555 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004327/0.5713, allocations: 1.268 MB / 0.5796 GB, free: 1.285 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003924/0.5753, allocations: 2.618 MB / 0.5822 GB, free: 14.66 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005805/0.5811, allocations: 2.978 MB / 0.5851 GB, free: 11.66 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009379/0.5905, allocations: 7.726 MB / 0.5926 GB, free: 3.922 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.5905, allocations: 4 kB / 0.5927 GB, free: 3.918 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.5905, allocations: 0 / 0.5927 GB, free: 3.918 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003896/0.5909, allocations: 0 / 0.5927 GB, free: 3.918 MB / 430.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.02209/0.613, allocations: 6.859 MB / 0.5993 GB, free: 12.98 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.517e-05/0.6131, allocations: 8.875 kB / 0.5994 GB, free: 12.97 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02527/0.6384, allocations: 3.316 MB / 0.6026 GB, free: 9.645 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01181/0.6502, allocations: 4.318 MB / 0.6068 GB, free: 5.27 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004263/0.6507, allocations: 325 kB / 0.6071 GB, free: 4.949 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00207/0.6528, allocations: 447.6 kB / 0.6075 GB, free: 4.512 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02926/0.6821, allocations: 13.09 MB / 0.6203 GB, free: 6.547 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004847/0.6826, allocations: 71.36 kB / 0.6204 GB, free: 6.477 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00228/0.6849, allocations: 199.8 kB / 0.6206 GB, free: 6.281 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004956/0.6899, allocations: 2.531 MB / 0.6231 GB, free: 3.75 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02515/0.7151, allocations: 11.39 MB / 0.6342 GB, free: 8.348 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08014/0.7952, allocations: 53.01 MB / 0.686 GB, free: 1.82 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01469/0.81, allocations: 5.641 MB / 0.6915 GB, free: 12.03 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004838/0.8148, allocations: 3.503 MB / 0.6949 GB, free: 8.523 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009358/0.8158, allocations: 0.6876 MB / 0.6956 GB, free: 7.723 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.995e-05/0.8159, allocations: 64.5 kB / 0.6956 GB, free: 7.652 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=245): time 6.141e-06/0.8159, allocations: 0 / 0.6956 GB, free: 7.652 MB / 0.5294 GB Notification: Performance of matching and sorting (n=315): time 0.3675/1.183, allocations: 36.49 MB / 0.7312 GB, free: 191.6 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001505/1.184, allocations: 270.3 kB / 0.7315 GB, free: 191.3 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01066/1.194, allocations: 5.164 MB / 0.7365 GB, free: 189.4 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0009324/1.195, allocations: 72.58 kB / 0.7366 GB, free: 189.4 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002456/1.198, allocations: 3.874 MB / 0.7404 GB, free: 186.4 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001426/1.199, allocations: 1.172 MB / 0.7415 GB, free: 185.5 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00228/1.201, allocations: 1.591 MB / 0.7431 GB, free: 184.8 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.982e-05/1.202, allocations: 305.1 kB / 0.7434 GB, free: 184.5 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004726/1.206, allocations: 3.628 MB / 0.7469 GB, free: 183.2 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005939/1.212, allocations: 7.808 MB / 0.7546 GB, free: 176.3 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0114/1.224, allocations: 12.24 MB / 0.7665 GB, free: 167.2 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001271/1.224, allocations: 39.91 kB / 0.7666 GB, free: 167.2 MB / 0.545 GB Notification: Performance of matching and sorting (n=1024) (initialization): time 0.02244/1.246, allocations: 13.74 MB / 0.78 GB, free: 156.1 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001249/1.246, allocations: 68.03 kB / 0.78 GB, free: 156 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001758/1.247, allocations: 144 kB / 0.7802 GB, free: 155.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006443/1.253, allocations: 2.753 MB / 0.7829 GB, free: 153.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006028/1.259, allocations: 1.778 MB / 0.7846 GB, free: 151.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01844/1.278, allocations: 16.61 MB / 0.8008 GB, free: 134.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007676/1.285, allocations: 467.2 kB / 0.8013 GB, free: 134 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001533/1.287, allocations: 453.7 kB / 0.8017 GB, free: 133.5 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.005124/1.292, allocations: 2.745 MB / 0.8044 GB, free: 130.8 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001451/1.293, allocations: 485.8 kB / 0.8048 GB, free: 130.3 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01215/1.306, allocations: 8.039 MB / 0.8127 GB, free: 122.2 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.737e-05/1.306, allocations: 37.27 kB / 0.8127 GB, free: 122.2 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.534e-05/1.306, allocations: 12 kB / 0.8127 GB, free: 122.2 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.543e-05/1.306, allocations: 19.94 kB / 0.8128 GB, free: 122.1 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02809/1.334, allocations: 17.08 MB / 0.8294 GB, free: 105 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.581e-05/1.334, allocations: 11.52 kB / 0.8294 GB, free: 105 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002286/1.336, allocations: 0.494 MB / 0.8299 GB, free: 104.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005629/1.342, allocations: 2.487 MB / 0.8324 GB, free: 102 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005145/1.342, allocations: 64 kB / 0.8324 GB, free: 101.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0162/1.359, allocations: 14.79 MB / 0.8469 GB, free: 86.89 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.055e-06/1.359, allocations: 11.94 kB / 0.8469 GB, free: 86.88 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01987/1.379, allocations: 12.57 MB / 0.8591 GB, free: 74.11 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001904/1.381, allocations: 0.5377 MB / 0.8597 GB, free: 73.55 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002001/1.383, allocations: 56 kB / 0.8597 GB, free: 73.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003621/1.386, allocations: 227.4 kB / 0.8599 GB, free: 73.28 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008853/1.387, allocations: 213.4 kB / 0.8601 GB, free: 73.07 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004605/1.388, allocations: 91.92 kB / 0.8602 GB, free: 72.98 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006371/1.394, allocations: 3.26 MB / 0.8634 GB, free: 69.74 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.61e-07/1.394, allocations: 0 / 0.8634 GB, free: 69.74 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.009517/1.404, allocations: 1.522 MB / 0.8649 GB, free: 68.22 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.001049/1.405, allocations: 209.6 kB / 0.8651 GB, free: 68.01 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01351/1.418, allocations: 8.866 MB / 0.8738 GB, free: 59.14 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.168e-05/1.418, allocations: 1.5 kB / 0.8738 GB, free: 59.14 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005415/1.424, allocations: 3.577 MB / 0.8773 GB, free: 55.54 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009042/1.433, allocations: 0.6272 MB / 0.8779 GB, free: 54.92 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03078/1.464, allocations: 17.94 MB / 0.8954 GB, free: 36.89 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00496/1.469, allocations: 4.263 MB / 0.8996 GB, free: 32.59 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002469/1.471, allocations: 391.4 kB / 0.8999 GB, free: 32.21 MB / 0.545 GB Notification: Performance of SimCode: time 1.703e-06/1.471, allocations: 0 / 0.8999 GB, free: 32.21 MB / 0.545 GB Notification: Performance of Templates: time 0.4298/1.901, allocations: 134.5 MB / 1.031 GB, free: 84.45 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 -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