Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_FreeMotion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_FreeMotion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001235/0.001235, allocations: 103.4 kB / 16.4 MB, free: 6.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001154/0.001154, allocations: 189.5 kB / 17.34 MB, free: 5.77 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.425/1.425, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2266/0.2266, allocations: 43.51 MB / 314.1 MB, free: 468 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001726/0.001726, allocations: 59.91 kB / 441.3 MB, free: 6.168 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1173, allocations: 57.8 MB / 499.1 MB, free: 12.29 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion): time 0.01237/0.1297, allocations: 12.22 MB / 0.4993 GB, free: 16 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007841/0.1376, allocations: 4.012 MB / 0.5033 GB, free: 11.99 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00183/0.1394, allocations: 63.88 kB / 0.5033 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00262/0.1421, allocations: 1.202 MB / 0.5045 GB, free: 10.72 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004709/0.1468, allocations: 1.825 MB / 0.5063 GB, free: 8.891 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001333/0.1482, allocations: 491 kB / 0.5067 GB, free: 8.41 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005588/0.1538, allocations: 4.129 MB / 0.5108 GB, free: 4.273 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003052/0.1569, allocations: 1.85 MB / 0.5126 GB, free: 2.395 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002296/0.1592, allocations: 1.23 MB / 0.5138 GB, free: 1.16 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002936/0.1622, allocations: 1.76 MB / 0.5155 GB, free: 15.39 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001038/0.1632, allocations: 236 kB / 0.5157 GB, free: 15.16 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002687/0.1659, allocations: 1.1 MB / 0.5168 GB, free: 14.06 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002191/0.1681, allocations: 1.695 MB / 0.5185 GB, free: 12.36 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003454/0.1716, allocations: 1.964 MB / 0.5204 GB, free: 10.39 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008435/0.1801, allocations: 6.511 MB / 0.5267 GB, free: 3.852 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.1801, allocations: 0 / 0.5267 GB, free: 3.852 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1801, allocations: 4 kB / 0.5267 GB, free: 3.848 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002477/0.1804, allocations: 0 / 0.5267 GB, free: 3.848 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1560 * Number of variables: 1560 Notification: Performance of Generate backend data structure: time 0.2543/0.4347, allocations: 4.339 MB / 0.531 GB, free: 37.14 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.763e-05/0.4347, allocations: 14.8 kB / 0.531 GB, free: 37.14 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001526/0.4363, allocations: 0.7225 MB / 0.5317 GB, free: 37.06 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01269/0.449, allocations: 3.195 MB / 0.5348 GB, free: 36.79 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00773/0.4567, allocations: 2.888 MB / 0.5376 GB, free: 36.16 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002833/0.4571, allocations: 190.9 kB / 0.5378 GB, free: 36.15 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002051/0.4591, allocations: 341.5 kB / 0.5381 GB, free: 36.13 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02045/0.4796, allocations: 10.78 MB / 0.5487 GB, free: 31.79 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000109/0.4798, allocations: 30.91 kB / 0.5487 GB, free: 31.77 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004949/0.4803, allocations: 124.1 kB / 0.5488 GB, free: 31.68 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00405/0.4843, allocations: 2.563 MB / 0.5513 GB, free: 30.76 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01775/0.5021, allocations: 10.29 MB / 0.5614 GB, free: 23.01 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05071/0.5528, allocations: 35.66 MB / 0.5962 GB, free: 2.57 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008941/0.5619, allocations: 4.434 MB / 0.6005 GB, free: 13.91 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003428/0.5653, allocations: 2.197 MB / 0.6027 GB, free: 11.71 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001405/0.5668, allocations: 1.327 MB / 0.604 GB, free: 10.17 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.613e-05/0.5668, allocations: 53.31 kB / 0.604 GB, free: 10.11 MB / 446.1 MB Notification: Performance of pre-optimization done (n=245): time 6.742e-06/0.5669, allocations: 0 / 0.604 GB, free: 10.11 MB / 446.1 MB Notification: Performance of matching and sorting (n=261): time 0.04367/0.6105, allocations: 17.1 MB / 0.6207 GB, free: 8.855 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0014/0.612, allocations: 1.614 MB / 0.6223 GB, free: 7.07 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004524/0.6165, allocations: 2.799 MB / 0.625 GB, free: 4.258 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004636/0.617, allocations: 60.83 kB / 0.6251 GB, free: 4.195 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002027/0.6191, allocations: 2.752 MB / 0.6278 GB, free: 1.402 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001277/0.6204, allocations: 0.952 MB / 0.6287 GB, free: 448 kB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002773/0.6232, allocations: 1.131 MB / 0.6298 GB, free: 15.29 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001241/0.6233, allocations: 301.1 kB / 0.6301 GB, free: 15 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00406/0.6274, allocations: 2.459 MB / 0.6325 GB, free: 12.53 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006364/0.6338, allocations: 5.501 MB / 0.6379 GB, free: 5.547 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0113/0.6451, allocations: 8.654 MB / 0.6463 GB, free: 11.41 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001616/0.6453, allocations: 32 kB / 0.6463 GB, free: 11.38 MB / 494.1 MB Notification: Performance of matching and sorting (n=754) (initialization): time 0.02472/0.67, allocations: 9.521 MB / 0.6556 GB, free: 1.836 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001585/0.6702, allocations: 52 kB / 0.6557 GB, free: 1.785 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01376/0.684, allocations: 4.585 MB / 0.6602 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0109/0.695, allocations: 2.016 MB / 0.6621 GB, free: 11.15 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004727/0.6997, allocations: 1.298 MB / 0.6634 GB, free: 9.848 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007878/0.7076, allocations: 5.289 MB / 0.6686 GB, free: 4.277 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004817/0.7125, allocations: 391.5 kB / 0.6689 GB, free: 3.898 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001305/0.7138, allocations: 328 kB / 0.6693 GB, free: 3.578 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 481 * Number of states: 0 () * Number of discrete variables: 24 (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 (692): * Single equations (assignments): 680 * 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.005158/0.719, allocations: 2.117 MB / 0.6713 GB, free: 1.445 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009133/0.7199, allocations: 280.3 kB / 0.6716 GB, free: 1.168 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01195/0.7319, allocations: 5.447 MB / 0.6769 GB, free: 11.64 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01002/0.7419, allocations: 4.692 MB / 0.6815 GB, free: 6.898 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.066e-05/0.742, allocations: 4 kB / 0.6815 GB, free: 6.895 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.593e-05/0.742, allocations: 7.969 kB / 0.6815 GB, free: 6.887 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03086/0.7729, allocations: 14.72 MB / 0.6959 GB, free: 7.906 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.516e-05/0.773, allocations: 11.94 kB / 0.6959 GB, free: 7.895 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002213/0.7752, allocations: 423.3 kB / 0.6963 GB, free: 7.48 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004807/0.78, allocations: 1.248 MB / 0.6975 GB, free: 6.219 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000431/0.7805, allocations: 63.97 kB / 0.6976 GB, free: 6.156 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005149/0.7857, allocations: 4.743 MB / 0.7022 GB, free: 1.133 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001179/0.7869, allocations: 1.554 MB / 0.7037 GB, free: 15.43 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01579/0.8027, allocations: 8.172 MB / 0.7117 GB, free: 7.062 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009716/0.8037, allocations: 337.4 kB / 0.712 GB, free: 6.711 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008627/0.8046, allocations: 55.98 kB / 0.7121 GB, free: 6.656 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002156/0.8067, allocations: 199.7 kB / 0.7123 GB, free: 6.461 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005755/0.8073, allocations: 177.5 kB / 0.7124 GB, free: 6.285 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003176/0.8077, allocations: 79.98 kB / 0.7125 GB, free: 6.207 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003218/0.8109, allocations: 1.725 MB / 0.7142 GB, free: 4.477 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.4e-07/0.8109, allocations: 0 / 0.7142 GB, free: 4.477 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005121/0.816, allocations: 1.069 MB / 0.7152 GB, free: 3.41 MB / 0.545 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 (202): * Single equations (assignments): 192 * 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.01474/0.8308, allocations: 8.711 MB / 0.7237 GB, free: 10.5 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01169/0.8425, allocations: 6.568 MB / 0.7302 GB, free: 3.871 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.277e-05/0.8426, allocations: 0 / 0.7302 GB, free: 3.871 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.005593/0.8482, allocations: 2.909 MB / 0.733 GB, free: 0.8906 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003202/0.8514, allocations: 404.5 kB / 0.7334 GB, free: 0.5039 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3202/1.172, allocations: 45.77 MB / 0.7781 GB, free: 177.3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003351/1.175, allocations: 3.303 MB / 0.7813 GB, free: 176 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003892/1.179, allocations: 2.113 MB / 0.7834 GB, free: 176 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00224/1.181, allocations: 1.801 MB / 0.7851 GB, free: 174.4 MB / 0.5762 GB Notification: Performance of SimCode: time 1.062e-06/1.181, allocations: 0 / 0.7851 GB, free: 174.4 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09113/1.272, allocations: 63.56 MB / 0.8472 GB, free: 113.6 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 37/38.28, allocations: 11.91 kB / 0.8472 GB, free: 113.6 MB / 0.5762 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_FreeMotion_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_FreeMotion.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/FreeMotion/FreeMotion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches