Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.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.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",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.001334/0.001334, 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.001366/0.001366, 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.319/1.319, 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.2131/0.2131, allocations: 43.52 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.001556/0.001556, allocations: 63.91 kB / 441.3 MB, free: 6.188 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1138, allocations: 57.8 MB / 499.1 MB, free: 12.31 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.01075/0.1246, allocations: 10.39 MB / 0.4976 GB, free: 1.871 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00814/0.1328, allocations: 3.877 MB / 0.5013 GB, free: 13.98 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001823/0.1347, allocations: 59.81 kB / 0.5014 GB, free: 13.93 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00415/0.1388, allocations: 2.075 MB / 0.5034 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004321/0.1432, allocations: 1.708 MB / 0.5051 GB, free: 10.13 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001602/0.1449, allocations: 0.6901 MB / 0.5058 GB, free: 9.438 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00544/0.1503, allocations: 3.814 MB / 0.5095 GB, free: 5.613 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002926/0.1533, allocations: 2.598 MB / 0.512 GB, free: 2.961 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001927/0.1552, allocations: 1.316 MB / 0.5133 GB, free: 1.641 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002321/0.1576, allocations: 1.853 MB / 0.5151 GB, free: 15.78 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005932/0.1582, allocations: 268 kB / 0.5154 GB, free: 15.52 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002047/0.1602, allocations: 1.182 MB / 0.5165 GB, free: 14.34 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001553/0.1618, allocations: 1.691 MB / 0.5182 GB, free: 12.64 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001882/0.1637, allocations: 1.973 MB / 0.5201 GB, free: 10.66 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006291/0.17, allocations: 6.384 MB / 0.5263 GB, free: 4.25 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.643e-06/0.17, allocations: 0 / 0.5263 GB, free: 4.25 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.17, allocations: 0 / 0.5263 GB, free: 4.25 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001362/0.1702, allocations: 0 / 0.5263 GB, free: 4.25 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: 1319 * Number of variables: 1319 Notification: Performance of Generate backend data structure: time 0.2216/0.3918, allocations: 4.364 MB / 0.5306 GB, free: 36.84 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.021e-05/0.3919, allocations: 13.95 kB / 0.5306 GB, free: 36.84 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001554/0.3935, allocations: 0.6222 MB / 0.5312 GB, free: 36.77 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07617/0.4696, allocations: 7.029 MB / 0.5381 GB, free: 36.54 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007161/0.4769, allocations: 2.891 MB / 0.5409 GB, free: 35.87 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001802/0.4771, allocations: 198.4 kB / 0.5411 GB, free: 35.86 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009066/0.478, allocations: 270.5 kB / 0.5414 GB, free: 35.86 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01313/0.4911, allocations: 8.518 MB / 0.5497 GB, free: 31.48 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00011/0.4913, allocations: 37.09 kB / 0.5497 GB, free: 31.46 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003417/0.4916, allocations: 131 kB / 0.5498 GB, free: 31.4 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002475/0.4941, allocations: 1.738 MB / 0.5515 GB, free: 30.72 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01102/0.5052, allocations: 7.157 MB / 0.5585 GB, free: 25.74 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03268/0.5379, allocations: 33.82 MB / 0.5915 GB, free: 6.98 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008273/0.5462, allocations: 3.424 MB / 0.5949 GB, free: 3.41 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002138/0.5484, allocations: 1.657 MB / 0.5965 GB, free: 1.742 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01065/0.5591, allocations: 7.224 MB / 0.6036 GB, free: 10.25 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.99e-05/0.5592, allocations: 51.55 kB / 0.6036 GB, free: 10.2 MB / 446.1 MB Notification: Performance of pre-optimization done (n=151): time 4.528e-06/0.5592, allocations: 0 / 0.6036 GB, free: 10.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=188): time 0.06269/0.6219, allocations: 19.06 MB / 0.6222 GB, free: 6.984 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000117/0.622, allocations: 201.2 kB / 0.6224 GB, free: 6.746 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006339/0.6284, allocations: 3.764 MB / 0.6261 GB, free: 2.992 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004024/0.6288, allocations: 49.7 kB / 0.6261 GB, free: 2.938 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002035/0.6309, allocations: 2.83 MB / 0.6289 GB, free: 68 kB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000938/0.6318, allocations: 0.7175 MB / 0.6296 GB, free: 15.34 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001617/0.6335, allocations: 1.163 MB / 0.6307 GB, free: 14.16 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001043/0.6336, allocations: 305.1 kB / 0.631 GB, free: 13.86 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002902/0.6365, allocations: 2.092 MB / 0.6331 GB, free: 11.76 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005051/0.6416, allocations: 5.648 MB / 0.6386 GB, free: 4.336 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008995/0.6506, allocations: 8.407 MB / 0.6468 GB, free: 10.18 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001027/0.6507, allocations: 39.98 kB / 0.6468 GB, free: 10.14 MB / 494.1 MB Notification: Performance of matching and sorting (n=763) (initialization): time 0.0175/0.6682, allocations: 8.686 MB / 0.6553 GB, free: 1.441 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.088e-05/0.6684, allocations: 64.06 kB / 0.6554 GB, free: 1.379 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001162/0.6685, allocations: 124 kB / 0.6555 GB, free: 1.258 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004763/0.6733, allocations: 1.387 MB / 0.6569 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003988/0.6773, allocations: 1.29 MB / 0.6581 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01238/0.6897, allocations: 9.21 MB / 0.6671 GB, free: 5.227 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004137/0.6938, allocations: 295.6 kB / 0.6674 GB, free: 4.938 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007216/0.6946, allocations: 356 kB / 0.6677 GB, free: 4.59 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 570 * Number of states: 0 () * Number of discrete variables: 36 (FixedTranslation2.color[3],FixedTranslation2.color[2],FixedTranslation2.color[1],force.massColor[3],force.massColor[2],force.massColor[1],force.color_b[3],force.color_b[2],force.color_b[1],force.color_a[3],force.color_a[2],force.color_a[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[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 (695): * Single equations (assignments): 691 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,44,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002753/0.6974, allocations: 1.901 MB / 0.6696 GB, free: 2.676 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006857/0.6981, allocations: 331.7 kB / 0.6699 GB, free: 2.348 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007974/0.706, allocations: 3.763 MB / 0.6736 GB, free: 14.57 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.094e-05/0.7061, allocations: 23.94 kB / 0.6736 GB, free: 14.54 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.409e-05/0.7061, allocations: 10.34 kB / 0.6736 GB, free: 14.54 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.392e-05/0.7062, allocations: 11.97 kB / 0.6736 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01604/0.7222, allocations: 8.157 MB / 0.6816 GB, free: 6.309 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-05/0.7223, allocations: 0 / 0.6816 GB, free: 6.309 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001262/0.7235, allocations: 247.6 kB / 0.6818 GB, free: 6.066 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004476/0.728, allocations: 1.179 MB / 0.683 GB, free: 4.883 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002282/0.7283, allocations: 35.97 kB / 0.683 GB, free: 4.848 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01169/0.74, allocations: 8.47 MB / 0.6913 GB, free: 12.23 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.74, allocations: 0 / 0.6913 GB, free: 12.23 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01133/0.7514, allocations: 6.271 MB / 0.6974 GB, free: 5.93 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001627/0.753, allocations: 0.6059 MB / 0.698 GB, free: 5.301 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005294/0.7536, allocations: 28 kB / 0.698 GB, free: 5.273 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001348/0.755, allocations: 75.91 kB / 0.6981 GB, free: 5.199 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003117/0.7553, allocations: 109.2 kB / 0.6982 GB, free: 5.094 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001286/0.7554, allocations: 59.98 kB / 0.6983 GB, free: 5.035 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003422/0.7588, allocations: 2.344 MB / 0.7006 GB, free: 2.707 MB / 0.5294 GB Notification: Performance of sort global known variables: time 8.01e-07/0.7589, allocations: 0 / 0.7006 GB, free: 2.707 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004733/0.7636, allocations: 0.9739 MB / 0.7015 GB, free: 1.738 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (revolute.phi,revolute.w) * 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 (130): * Single equations (assignments): 126 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,36,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01131/0.7749, allocations: 6.968 MB / 0.7083 GB, free: 10.74 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.007753/0.7827, allocations: 5.203 MB / 0.7134 GB, free: 5.555 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.044e-05/0.7828, allocations: 8.062 kB / 0.7134 GB, free: 5.547 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002261/0.785, allocations: 1.741 MB / 0.7151 GB, free: 3.793 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002382/0.7874, allocations: 410.6 kB / 0.7155 GB, free: 3.398 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3006/1.088, allocations: 44.21 MB / 0.7587 GB, free: 183.7 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003915/1.092, allocations: 2.967 MB / 0.7616 GB, free: 182.9 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.004605/1.097, allocations: 1.822 MB / 0.7633 GB, free: 182.9 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002182/1.099, allocations: 1.654 MB / 0.765 GB, free: 182.2 MB / 0.5762 GB Notification: Performance of SimCode: time 1.032e-06/1.099, allocations: 0 / 0.765 GB, free: 182.2 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1029/1.202, allocations: 68.3 MB / 0.8317 GB, free: 128 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.72/26.92, allocations: 3.938 kB / 0.8317 GB, free: 128 MB / 0.5762 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses/ForceWithTwoMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches