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.001102/0.001102, allocations: 115.9 kB / 18.41 MB, free: 4.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001084/0.001084, allocations: 203.5 kB / 19.36 MB, free: 3.746 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.359/1.359, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2155/0.2155, allocations: 46.09 MB / 344.9 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001385/0.001385, allocations: 81.11 kB / 419 MB, free: 19.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.14/0.1414, 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.01505/0.1565, allocations: 14.64 MB / 496.1 MB, free: 5.801 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01177/0.1684, allocations: 4.995 MB / 0.4894 GB, free: 0.7891 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002999/0.1714, allocations: 103.7 kB / 0.4895 GB, free: 0.6875 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007472/0.1789, allocations: 4.147 MB / 0.4935 GB, free: 12.53 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007894/0.1869, allocations: 2.307 MB / 0.4958 GB, free: 10.21 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003142/0.1901, allocations: 1.072 MB / 0.4968 GB, free: 9.137 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0122/0.2023, allocations: 7.176 MB / 0.5038 GB, free: 1.945 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.286/0.4883, allocations: 5.119 MB / 0.5088 GB, free: 14.25 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005061/0.4934, allocations: 2.226 MB / 0.511 GB, free: 14.13 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005961/0.4994, allocations: 3.042 MB / 0.514 GB, free: 13.8 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002435/0.5019, allocations: 0.4897 MB / 0.5144 GB, free: 13.8 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004815/0.5067, allocations: 1.363 MB / 0.5158 GB, free: 13.8 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005657/0.5124, allocations: 2.734 MB / 0.5184 GB, free: 13.54 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009285/0.5217, allocations: 3.127 MB / 0.5215 GB, free: 12.46 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01268/0.5344, allocations: 9.776 MB / 0.531 GB, free: 9.027 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.5345, allocations: 0 / 0.531 GB, free: 9.027 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.5345, allocations: 0 / 0.531 GB, free: 9.027 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003714/0.5348, allocations: 0 / 0.531 GB, free: 9.027 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.02083/0.5557, allocations: 6.855 MB / 0.5377 GB, free: 4.469 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.447e-05/0.5557, allocations: 8.5 kB / 0.5377 GB, free: 4.469 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02349/0.5792, allocations: 3.322 MB / 0.541 GB, free: 2.941 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01183/0.5911, allocations: 4.418 MB / 0.5453 GB, free: 412 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000477/0.5916, allocations: 321.8 kB / 0.5456 GB, free: 300 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002995/0.5947, allocations: 453.1 kB / 0.546 GB, free: 172 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02497/0.6196, allocations: 13.09 MB / 0.5588 GB, free: 2.555 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002085/0.6199, allocations: 69.48 kB / 0.5589 GB, free: 2.512 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000601/0.6205, allocations: 203.8 kB / 0.5591 GB, free: 2.355 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004343/0.6249, allocations: 2.532 MB / 0.5616 GB, free: 15.86 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02368/0.6485, allocations: 11.38 MB / 0.5727 GB, free: 4.703 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07109/0.7197, allocations: 52.74 MB / 0.6242 GB, free: 15.14 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01433/0.7341, allocations: 5.654 MB / 0.6297 GB, free: 9.352 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004634/0.7388, allocations: 3.511 MB / 0.6331 GB, free: 5.844 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007484/0.7396, allocations: 0.6899 MB / 0.6338 GB, free: 5.059 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.963e-05/0.7396, allocations: 52.56 kB / 0.6339 GB, free: 5 MB / 478.1 MB Notification: Performance of pre-optimization done (n=245): time 5.54e-06/0.7396, allocations: 0 / 0.6339 GB, free: 5 MB / 478.1 MB Notification: Performance of matching and sorting (n=315): time 0.1026/0.8422, allocations: 36.48 MB / 0.6695 GB, free: 464 kB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001382/0.8424, allocations: 265.3 kB / 0.6697 GB, free: 140 kB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008581/0.851, allocations: 5.168 MB / 0.6748 GB, free: 10.97 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.00101/0.852, allocations: 76.42 kB / 0.6748 GB, free: 10.89 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.00299/0.855, allocations: 3.869 MB / 0.6786 GB, free: 7.027 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001925/0.857, allocations: 1.172 MB / 0.6798 GB, free: 5.863 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002578/0.8596, allocations: 1.594 MB / 0.6813 GB, free: 4.262 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 9.593e-05/0.8597, allocations: 305.1 kB / 0.6816 GB, free: 3.961 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005771/0.8655, allocations: 3.627 MB / 0.6852 GB, free: 336 kB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01066/0.8761, allocations: 7.817 MB / 0.6928 GB, free: 6.539 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01757/0.8938, allocations: 12.25 MB / 0.7048 GB, free: 8.789 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001547/0.894, allocations: 40 kB / 0.7048 GB, free: 8.75 MB / 0.545 GB Notification: Performance of matching and sorting (n=1024) (initialization): time 0.2937/1.188, allocations: 13.73 MB / 0.7182 GB, free: 182.6 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001188/1.188, allocations: 68.94 kB / 0.7183 GB, free: 182.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002161/1.188, allocations: 143.6 kB / 0.7184 GB, free: 182.6 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007211/1.195, allocations: 2.757 MB / 0.7211 GB, free: 182.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007448/1.203, allocations: 1.777 MB / 0.7228 GB, free: 182.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02379/1.227, allocations: 17.81 MB / 0.7402 GB, free: 174.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00796/1.235, allocations: 472.9 kB / 0.7407 GB, free: 174.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001996/1.237, allocations: 459.2 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.006131/1.243, allocations: 2.748 MB / 0.7438 GB, free: 173.1 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001258/1.244, allocations: 481 kB / 0.7443 GB, free: 173.1 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01359/1.258, allocations: 8.045 MB / 0.7521 GB, free: 170.2 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.048e-05/1.258, allocations: 34.23 kB / 0.7521 GB, free: 170.2 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.431e-05/1.258, allocations: 13.16 kB / 0.7522 GB, free: 170.2 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.059e-05/1.258, allocations: 15.11 kB / 0.7522 GB, free: 170.2 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03318/1.291, allocations: 16.98 MB / 0.7688 GB, free: 158.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.58e-05/1.291, allocations: 4 kB / 0.7688 GB, free: 158.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002387/1.293, allocations: 0.4992 MB / 0.7692 GB, free: 157.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005481/1.299, allocations: 2.486 MB / 0.7717 GB, free: 155.2 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004624/1.299, allocations: 69.25 kB / 0.7717 GB, free: 155.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01619/1.316, allocations: 15.85 MB / 0.7872 GB, free: 139.1 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.175e-06/1.316, allocations: 7.938 kB / 0.7872 GB, free: 139.1 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01695/1.333, allocations: 12.58 MB / 0.7995 GB, free: 126.6 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002657/1.335, allocations: 0.5351 MB / 0.8 GB, free: 126.1 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007847/1.336, allocations: 56 kB / 0.8001 GB, free: 126.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002256/1.338, allocations: 228.9 kB / 0.8003 GB, free: 125.9 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005821/1.339, allocations: 208 kB / 0.8005 GB, free: 125.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002432/1.339, allocations: 88.77 kB / 0.8006 GB, free: 125.6 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004585/1.344, allocations: 3.26 MB / 0.8038 GB, free: 122.3 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.81e-07/1.344, allocations: 4 kB / 0.8038 GB, free: 122.3 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007987/1.352, allocations: 1.531 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.0006691/1.353, allocations: 203.1 kB / 0.8055 GB, free: 120.6 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01172/1.364, allocations: 8.919 MB / 0.8142 GB, free: 111.7 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.024e-05/1.364, allocations: 0.875 kB / 0.8142 GB, free: 111.7 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004428/1.369, allocations: 3.57 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.004242/1.373, allocations: 0.6681 MB / 0.8183 GB, free: 107.4 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0225/1.396, allocations: 14.53 MB / 0.8325 GB, free: 92.84 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004318/1.4, allocations: 4.275 MB / 0.8367 GB, free: 88.54 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005569/1.406, allocations: 2.459 MB / 0.8391 GB, free: 86.07 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00133/1.407, allocations: 343.4 kB / 0.8394 GB, free: 85.73 MB / 0.545 GB Notification: Performance of SimCode: time 1.703e-06/1.407, allocations: 4 kB / 0.8394 GB, free: 85.73 MB / 0.545 GB Notification: Performance of Templates: time 0.09725/1.504, allocations: 62.32 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 cvode -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