Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion.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: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001494/0.001494, allocations: 114.8 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001726/0.001727, allocations: 198 kB / 18.73 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.535/1.535, allocations: 227.4 MB / 247 MB, free: 10.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2612/0.2612, allocations: 46.12 MB / 344.3 MB, free: 11.42 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002213/0.002213, allocations: 75.88 kB / 480.9 MB, free: 4.457 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3277/0.3299, allocations: 62.46 MB / 0.5306 GB, free: 13.33 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion): time 0.01407/0.344, allocations: 11.72 MB / 0.5421 GB, free: 4.129 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008609/0.3527, allocations: 3.926 MB / 0.5459 GB, free: 1.109 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001647/0.3544, allocations: 60.44 kB / 0.546 GB, free: 1.102 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002568/0.357, allocations: 1.178 MB / 0.5471 GB, free: 300 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004967/0.362, allocations: 1.729 MB / 0.5488 GB, free: 14.98 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001396/0.3634, allocations: 495 kB / 0.5493 GB, free: 14.5 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006057/0.3695, allocations: 4.063 MB / 0.5533 GB, free: 10.43 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002555/0.3721, allocations: 1.787 MB / 0.555 GB, free: 8.613 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001862/0.3739, allocations: 1.164 MB / 0.5561 GB, free: 7.445 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002555/0.3765, allocations: 1.655 MB / 0.5578 GB, free: 5.785 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007815/0.3773, allocations: 216 kB / 0.558 GB, free: 5.574 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002671/0.38, allocations: 1.073 MB / 0.559 GB, free: 4.5 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001976/0.382, allocations: 1.585 MB / 0.5606 GB, free: 2.91 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00234/0.3844, allocations: 1.836 MB / 0.5623 GB, free: 1.062 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007882/0.3923, allocations: 6.13 MB / 0.5683 GB, free: 10.91 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.736e-06/0.3923, allocations: 4 kB / 0.5683 GB, free: 10.91 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.3923, allocations: 0 / 0.5683 GB, free: 10.91 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000161/0.3925, allocations: 0 / 0.5683 GB, free: 10.91 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: 1483 * Number of variables: 1483 Notification: Performance of Generate backend data structure: time 0.008761/0.4012, allocations: 4.237 MB / 0.5725 GB, free: 6.594 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.841e-05/0.4013, allocations: 12.03 kB / 0.5725 GB, free: 6.582 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001256/0.4026, allocations: 0.6876 MB / 0.5732 GB, free: 5.883 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01253/0.4151, allocations: 3.231 MB / 0.5763 GB, free: 2.645 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005582/0.4207, allocations: 2.475 MB / 0.5787 GB, free: 128 kB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000203/0.421, allocations: 184.6 kB / 0.5789 GB, free: 15.94 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001246/0.4222, allocations: 331.5 kB / 0.5792 GB, free: 15.62 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01896/0.4412, allocations: 10.3 MB / 0.5893 GB, free: 4.867 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.304e-05/0.4413, allocations: 31.77 kB / 0.5893 GB, free: 4.836 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004869/0.4418, allocations: 107.8 kB / 0.5894 GB, free: 4.73 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004366/0.4462, allocations: 2.44 MB / 0.5918 GB, free: 2.285 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02007/0.4663, allocations: 9.851 MB / 0.6014 GB, free: 8.422 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05324/0.5196, allocations: 34.45 MB / 0.6351 GB, free: 5.121 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008741/0.5284, allocations: 4.315 MB / 0.6393 GB, free: 0.5781 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003534/0.532, allocations: 2.154 MB / 0.6414 GB, free: 14.42 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001508/0.5335, allocations: 1.311 MB / 0.6426 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.076e-05/0.5336, allocations: 60.44 kB / 0.6427 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=236): time 6.362e-06/0.5336, allocations: 0 / 0.6427 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of matching and sorting (n=252): time 0.04534/0.579, allocations: 16.79 MB / 0.6591 GB, free: 11.92 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001725/0.5807, allocations: 1.631 MB / 0.6607 GB, free: 10.13 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004136/0.5849, allocations: 2.689 MB / 0.6633 GB, free: 7.422 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0004828/0.5854, allocations: 65.62 kB / 0.6634 GB, free: 7.352 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002355/0.5878, allocations: 2.722 MB / 0.666 GB, free: 4.602 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001277/0.5891, allocations: 0.961 MB / 0.667 GB, free: 3.633 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001762/0.5908, allocations: 1.096 MB / 0.6681 GB, free: 2.527 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001337/0.591, allocations: 305.1 kB / 0.6683 GB, free: 2.227 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003758/0.5948, allocations: 2.396 MB / 0.6707 GB, free: 15.82 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006542/0.6013, allocations: 5.307 MB / 0.6759 GB, free: 9.086 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01133/0.6127, allocations: 8.387 MB / 0.6841 GB, free: 15.27 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.839e-05/0.6128, allocations: 28 kB / 0.6841 GB, free: 15.25 MB / 0.545 GB Notification: Performance of matching and sorting (n=726) (initialization): time 0.02439/0.6372, allocations: 9.35 MB / 0.6932 GB, free: 5.875 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001103/0.6373, allocations: 51.98 kB / 0.6933 GB, free: 5.824 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01484/0.6522, allocations: 4.561 MB / 0.6977 GB, free: 1.25 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01194/0.6642, allocations: 2.098 MB / 0.6998 GB, free: 15.14 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004775/0.669, allocations: 1.244 MB / 0.701 GB, free: 13.89 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009142/0.6782, allocations: 5.298 MB / 0.7062 GB, free: 8.309 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004466/0.6827, allocations: 387.6 kB / 0.7065 GB, free: 7.93 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001113/0.6838, allocations: 316 kB / 0.7068 GB, free: 7.621 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 462 * Number of states: 0 () * Number of discrete variables: 26 (freeMotion.arrow.twoHeadedArrow,freeMotion.arrow.headAtOrigin,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],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[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 (664): * Single equations (assignments): 652 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004904/0.6888, allocations: 2.032 MB / 0.7088 GB, free: 5.574 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007203/0.6895, allocations: 286.1 kB / 0.7091 GB, free: 5.293 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01224/0.7018, allocations: 5.314 MB / 0.7143 GB, free: 15.94 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01023/0.712, allocations: 4.601 MB / 0.7188 GB, free: 11.32 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.508e-05/0.7121, allocations: 7.984 kB / 0.7188 GB, free: 11.31 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.003e-05/0.7121, allocations: 7.969 kB / 0.7188 GB, free: 11.3 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2806/0.9927, allocations: 14.29 MB / 0.7327 GB, free: 176.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.961e-05/0.9928, allocations: 10.89 kB / 0.7327 GB, free: 176.2 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001786/0.9946, allocations: 406.2 kB / 0.7331 GB, free: 176.2 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004561/0.9991, allocations: 1.239 MB / 0.7343 GB, free: 176.2 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004025/0.9996, allocations: 61.19 kB / 0.7344 GB, free: 176.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004508/1.004, allocations: 4.743 MB / 0.739 GB, free: 173.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008979/1.005, allocations: 1.555 MB / 0.7405 GB, free: 171.8 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0134/1.018, allocations: 8.007 MB / 0.7484 GB, free: 168.9 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006039/1.019, allocations: 343.8 kB / 0.7487 GB, free: 168.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006052/1.02, allocations: 63.05 kB / 0.7488 GB, free: 168.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001676/1.021, allocations: 192.5 kB / 0.7489 GB, free: 168.8 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00044/1.022, allocations: 167 kB / 0.7491 GB, free: 168.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001846/1.022, allocations: 83.69 kB / 0.7492 GB, free: 168.7 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.002252/1.024, allocations: 1.65 MB / 0.7508 GB, free: 168.2 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.9e-07/1.024, allocations: 3.094 kB / 0.7508 GB, free: 168.2 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.004093/1.028, allocations: 1.01 MB / 0.7518 GB, free: 168.1 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],freeMotion.r_rel_a[1],freeMotion.r_rel_a[2],freeMotion.r_rel_a[3],freeMotion.v_rel_a[1],freeMotion.v_rel_a[2],freeMotion.v_rel_a[3],freeMotion.w_rel_b[1],freeMotion.w_rel_b[2],freeMotion.w_rel_b[3]) * 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 (192): * Single equations (assignments): 182 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01137/1.04, allocations: 8.56 MB / 0.7601 GB, free: 163.7 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.008501/1.048, allocations: 6.405 MB / 0.7664 GB, free: 157.3 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.007e-05/1.048, allocations: 0 / 0.7664 GB, free: 157.3 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.004013/1.052, allocations: 2.852 MB / 0.7692 GB, free: 154.4 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002046/1.054, allocations: 382.8 kB / 0.7695 GB, free: 154 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06035/1.115, allocations: 44.48 MB / 0.813 GB, free: 105.1 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002784/1.118, allocations: 3.187 MB / 0.8161 GB, free: 101.9 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003533/1.121, allocations: 2.052 MB / 0.8181 GB, free: 99.87 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002083/1.123, allocations: 1.702 MB / 0.8198 GB, free: 98.16 MB / 0.5762 GB Notification: Performance of SimCode: time 8.52e-07/1.123, allocations: 0 / 0.8198 GB, free: 98.16 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09506/1.218, allocations: 60.47 MB / 0.8788 GB, free: 37.97 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.82/22.04, allocations: 11.86 kB / 0.8788 GB, free: 37.96 MB / 0.5762 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotion_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotion.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotion/FreeMotion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches