Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion,fileNamePrefix="ModelicaTest_4_0_0_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.001374/0.001374, allocations: 106.9 kB / 17.21 MB, free: 6.273 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.002294/0.002294, allocations: 194 kB / 18.12 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.433/1.433, allocations: 222.9 MB / 241.8 MB, free: 13.8 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2252/0.2252, allocations: 44.17 MB / 336.1 MB, free: 2.797 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 68.02 kB / 407.8 MB, free: 27.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1172/0.1185, allocations: 60.83 MB / 468.6 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion): time 0.02789/0.1464, allocations: 29.26 MB / 497.9 MB, free: 1.355 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01642/0.1629, allocations: 6.879 MB / 0.4929 GB, free: 10.45 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005983/0.1689, allocations: 115.8 kB / 0.493 GB, free: 10.34 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003045/0.172, allocations: 1.153 MB / 0.4942 GB, free: 9.184 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004554/0.1766, allocations: 1.667 MB / 0.4958 GB, free: 7.512 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00148/0.1781, allocations: 463.2 kB / 0.4962 GB, free: 7.059 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008872/0.187, allocations: 5.506 MB / 0.5016 GB, free: 1.543 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.286/0.4731, allocations: 1.775 MB / 0.5034 GB, free: 12.01 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002462/0.4756, allocations: 1.023 MB / 0.5044 GB, free: 12.01 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00259/0.4782, allocations: 1.793 MB / 0.5061 GB, free: 11.9 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005722/0.4788, allocations: 154.9 kB / 0.5062 GB, free: 11.9 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002493/0.4813, allocations: 1.099 MB / 0.5073 GB, free: 11.9 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002086/0.4834, allocations: 1.585 MB / 0.5089 GB, free: 11.72 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001994/0.4854, allocations: 1.844 MB / 0.5107 GB, free: 10.98 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009476/0.4949, allocations: 5.932 MB / 0.5165 GB, free: 10.11 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.304e-06/0.4949, allocations: 0 / 0.5165 GB, free: 10.11 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.093e-06/0.4949, allocations: 1.969 kB / 0.5165 GB, free: 10.11 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002156/0.4952, allocations: 0 / 0.5165 GB, free: 10.11 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: 1512 * Number of variables: 1512 Notification: Performance of Generate backend data structure: time 0.009748/0.5049, allocations: 4.222 MB / 0.5206 GB, free: 8.324 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.818e-05/0.505, allocations: 8.938 kB / 0.5206 GB, free: 8.324 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001008/0.506, allocations: 0.7032 MB / 0.5213 GB, free: 8.25 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01087/0.5169, allocations: 3.17 MB / 0.5244 GB, free: 7.668 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006069/0.523, allocations: 2.684 MB / 0.527 GB, free: 6.785 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001729/0.5232, allocations: 188.3 kB / 0.5272 GB, free: 6.777 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001079/0.5242, allocations: 330.9 kB / 0.5275 GB, free: 6.746 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01431/0.5386, allocations: 10.48 MB / 0.5377 GB, free: 1.547 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.885e-05/0.5387, allocations: 31.22 kB / 0.5378 GB, free: 1.543 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003545/0.539, allocations: 115.9 kB / 0.5379 GB, free: 1.504 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003419/0.5424, allocations: 2.492 MB / 0.5403 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01884/0.5613, allocations: 10.01 MB / 0.5501 GB, free: 6.73 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05751/0.6188, allocations: 35 MB / 0.5843 GB, free: 3.391 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008622/0.6275, allocations: 4.309 MB / 0.5885 GB, free: 14.87 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00324/0.6308, allocations: 2.159 MB / 0.5906 GB, free: 12.71 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001248/0.6321, allocations: 1.315 MB / 0.5919 GB, free: 11.18 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.147e-05/0.6321, allocations: 48.56 kB / 0.5919 GB, free: 11.13 MB / 446.1 MB Notification: Performance of pre-optimization done (n=236): time 6.081e-06/0.6321, allocations: 4 kB / 0.5919 GB, free: 11.12 MB / 446.1 MB Notification: Performance of matching and sorting (n=252): time 0.03931/0.6715, allocations: 16.77 MB / 0.6083 GB, free: 10.29 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001522/0.673, allocations: 1.527 MB / 0.6098 GB, free: 8.617 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005778/0.6788, allocations: 2.725 MB / 0.6124 GB, free: 5.875 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007786/0.6796, allocations: 59.89 kB / 0.6125 GB, free: 5.812 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002528/0.6822, allocations: 2.656 MB / 0.6151 GB, free: 3.152 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001591/0.6838, allocations: 0.9248 MB / 0.616 GB, free: 2.234 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00345/0.6873, allocations: 1.102 MB / 0.6171 GB, free: 1.125 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001216/0.6874, allocations: 301.1 kB / 0.6174 GB, free: 0.8281 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004392/0.6918, allocations: 2.404 MB / 0.6197 GB, free: 14.42 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006/0.6978, allocations: 5.363 MB / 0.6249 GB, free: 7.656 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01017/0.708, allocations: 8.447 MB / 0.6332 GB, free: 14.19 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001083/0.7082, allocations: 28 kB / 0.6332 GB, free: 14.16 MB / 494.1 MB Notification: Performance of matching and sorting (n=732) (initialization): time 0.02119/0.7294, allocations: 9.318 MB / 0.6423 GB, free: 5.441 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001225/0.7295, allocations: 48 kB / 0.6424 GB, free: 5.395 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01277/0.7423, allocations: 4.501 MB / 0.6468 GB, free: 0.8906 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01046/0.7528, allocations: 2.008 MB / 0.6487 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004588/0.7574, allocations: 1.252 MB / 0.6499 GB, free: 13.72 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00718/0.7646, allocations: 4.948 MB / 0.6548 GB, free: 8.523 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004713/0.7694, allocations: 395.2 kB / 0.6552 GB, free: 8.141 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001236/0.7706, allocations: 320 kB / 0.6555 GB, free: 7.828 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 468 * Number of states: 0 () * Number of discrete variables: 26 (freeMotion.arrow.arrowLine.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 (670): * Single equations (assignments): 658 * 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.005043/0.7757, allocations: 2.054 MB / 0.6575 GB, free: 5.762 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008407/0.7765, allocations: 280.5 kB / 0.6577 GB, free: 5.484 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0115/0.7881, allocations: 5.317 MB / 0.6629 GB, free: 140 kB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01014/0.7982, allocations: 4.605 MB / 0.6674 GB, free: 11.51 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.793e-05/0.7983, allocations: 0 / 0.6674 GB, free: 11.51 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.731e-05/0.7983, allocations: 11.95 kB / 0.6674 GB, free: 11.5 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02991/0.8282, allocations: 14.44 MB / 0.6815 GB, free: 12.85 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.423e-05/0.8283, allocations: 12.25 kB / 0.6815 GB, free: 12.84 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001754/0.8301, allocations: 407.3 kB / 0.6819 GB, free: 12.44 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004483/0.8346, allocations: 1.236 MB / 0.6831 GB, free: 11.19 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003391/0.8349, allocations: 63.95 kB / 0.6832 GB, free: 11.12 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00478/0.8397, allocations: 4.435 MB / 0.6875 GB, free: 6.43 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00101/0.8407, allocations: 1.467 MB / 0.689 GB, free: 4.816 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01397/0.8547, allocations: 7.998 MB / 0.6968 GB, free: 12.66 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001135/0.8559, allocations: 325.5 kB / 0.6971 GB, free: 12.32 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001257/0.8572, allocations: 60.94 kB / 0.6971 GB, free: 12.26 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002317/0.8595, allocations: 195.6 kB / 0.6973 GB, free: 12.07 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006477/0.8602, allocations: 168.8 kB / 0.6975 GB, free: 11.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003425/0.8605, allocations: 71.98 kB / 0.6976 GB, free: 11.83 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004081/0.8646, allocations: 1.68 MB / 0.6992 GB, free: 10.14 MB / 0.545 GB Notification: Performance of sort global known variables: time 8.32e-07/0.8646, allocations: 0 / 0.6992 GB, free: 10.14 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006682/0.8713, allocations: 1.033 MB / 0.7002 GB, free: 9.113 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 (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.01482/0.8862, allocations: 8.564 MB / 0.7086 GB, free: 392 kB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.2857/1.172, allocations: 6.362 MB / 0.7148 GB, free: 178.8 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.233e-05/1.172, allocations: 1.344 kB / 0.7148 GB, free: 178.8 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005499/1.177, allocations: 2.845 MB / 0.7176 GB, free: 178.4 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0028/1.18, allocations: 385.2 kB / 0.7179 GB, free: 178.3 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08138/1.262, allocations: 49.54 MB / 0.7663 GB, free: 141.1 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003391/1.265, allocations: 3.228 MB / 0.7695 GB, free: 137.8 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004053/1.269, allocations: 2.075 MB / 0.7715 GB, free: 135.8 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002071/1.271, allocations: 1.729 MB / 0.7732 GB, free: 134 MB / 0.545 GB Notification: Performance of SimCode: time 6.81e-07/1.271, allocations: 0 / 0.7732 GB, free: 134 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1193/1.391, allocations: 62.65 MB / 0.8344 GB, free: 71.71 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001574/1.391, allocations: 231.2 kB / 0.8346 GB, free: 71.46 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.623/5.014, allocations: 0 / 0.8346 GB, free: 71.46 MB / 0.545 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches