Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 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.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_4_0_0_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.00132/0.001319, allocations: 112.6 kB / 17.33 MB, free: 6.012 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.00149/0.001491, allocations: 193.3 kB / 18.25 MB, free: 5.102 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.467/1.467, allocations: 222.9 MB / 241.9 MB, free: 15.45 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.2441/0.2441, allocations: 44.17 MB / 336.2 MB, free: 2.953 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001529/0.001529, allocations: 58.62 kB / 408 MB, free: 27.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1333/0.1348, allocations: 60.82 MB / 468.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.03747/0.1724, allocations: 34.84 MB / 0.4919 GB, free: 11.66 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0202/0.1926, allocations: 7.845 MB / 0.4995 GB, free: 3.789 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00977/0.2025, allocations: 147.6 kB / 0.4997 GB, free: 3.645 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005637/0.2082, allocations: 1.987 MB / 0.5016 GB, free: 1.652 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005977/0.2143, allocations: 1.604 MB / 0.5032 GB, free: 44 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2528/0.4671, allocations: 0.6347 MB / 0.5038 GB, free: 10.94 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006546/0.4737, allocations: 4.196 MB / 0.5079 GB, free: 10.93 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004737/0.4785, allocations: 2.742 MB / 0.5106 GB, free: 10.63 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003394/0.4819, allocations: 1.351 MB / 0.5119 GB, free: 10.62 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004022/0.486, allocations: 2.07 MB / 0.5139 GB, free: 10.48 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00113/0.4871, allocations: 264.5 kB / 0.5142 GB, free: 10.48 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002806/0.4899, allocations: 1.212 MB / 0.5153 GB, free: 10.47 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002372/0.4923, allocations: 1.681 MB / 0.517 GB, free: 10.3 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003345/0.4957, allocations: 1.993 MB / 0.5189 GB, free: 9.602 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006896/0.5026, allocations: 6.211 MB / 0.525 GB, free: 7.91 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.5026, allocations: 0 / 0.525 GB, free: 7.91 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.5026, allocations: 0 / 0.525 GB, free: 7.91 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001394/0.5028, allocations: 0 / 0.525 GB, free: 7.91 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: 1319 * Number of variables: 1319 Notification: Performance of Generate backend data structure: time 0.009822/0.5126, allocations: 4.35 MB / 0.5292 GB, free: 4.961 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.853e-05/0.5127, allocations: 13.34 kB / 0.5293 GB, free: 4.957 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008178/0.5135, allocations: 0.6203 MB / 0.5299 GB, free: 4.555 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07977/0.5933, allocations: 7.031 MB / 0.5367 GB, free: 1.785 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006235/0.5996, allocations: 2.685 MB / 0.5393 GB, free: 15.53 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001676/0.5998, allocations: 201.9 kB / 0.5395 GB, free: 15.37 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001018/0.6008, allocations: 274.2 kB / 0.5398 GB, free: 15.13 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01712/0.6179, allocations: 8.509 MB / 0.5481 GB, free: 6.172 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001506/0.6181, allocations: 39.69 kB / 0.5481 GB, free: 6.152 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004149/0.6186, allocations: 126.4 kB / 0.5483 GB, free: 6.062 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002899/0.6215, allocations: 1.741 MB / 0.55 GB, free: 4.352 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01399/0.6355, allocations: 7.148 MB / 0.5569 GB, free: 13.37 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03886/0.6744, allocations: 33.95 MB / 0.5901 GB, free: 10.77 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008717/0.6831, allocations: 3.424 MB / 0.5934 GB, free: 7.207 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002572/0.6857, allocations: 1.656 MB / 0.5951 GB, free: 5.547 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01282/0.6986, allocations: 7.215 MB / 0.6021 GB, free: 14.12 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.803e-05/0.6987, allocations: 53.72 kB / 0.6022 GB, free: 14.06 MB / 462.1 MB Notification: Performance of pre-optimization done (n=151): time 4.549e-06/0.6987, allocations: 0 / 0.6022 GB, free: 14.06 MB / 462.1 MB Notification: Performance of matching and sorting (n=188): time 0.06667/0.7654, allocations: 19.02 MB / 0.6207 GB, free: 10.95 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001302/0.7655, allocations: 198.4 kB / 0.6209 GB, free: 10.71 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00869/0.7742, allocations: 3.744 MB / 0.6246 GB, free: 6.98 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007532/0.7751, allocations: 61.61 kB / 0.6246 GB, free: 6.918 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003798/0.7789, allocations: 2.812 MB / 0.6274 GB, free: 4.105 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001587/0.7805, allocations: 0.7211 MB / 0.6281 GB, free: 3.391 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003444/0.784, allocations: 1.165 MB / 0.6292 GB, free: 2.215 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001122/0.7841, allocations: 305.1 kB / 0.6295 GB, free: 1.914 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003925/0.788, allocations: 2.097 MB / 0.6316 GB, free: 15.81 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006006/0.7941, allocations: 5.645 MB / 0.6371 GB, free: 8.457 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009605/0.8037, allocations: 8.395 MB / 0.6453 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001243/0.8039, allocations: 36 kB / 0.6453 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of matching and sorting (n=763) (initialization): time 0.02054/0.8244, allocations: 8.689 MB / 0.6538 GB, free: 6.355 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002138/0.8247, allocations: 60 kB / 0.6539 GB, free: 6.297 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003035/0.825, allocations: 124 kB / 0.654 GB, free: 6.176 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005628/0.8307, allocations: 1.395 MB / 0.6553 GB, free: 4.777 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00488/0.8356, allocations: 1.294 MB / 0.6566 GB, free: 3.48 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01461/0.8502, allocations: 9.202 MB / 0.6656 GB, free: 10.14 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004984/0.8552, allocations: 303.5 kB / 0.6659 GB, free: 9.844 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001255/0.8565, allocations: 362.5 kB / 0.6662 GB, free: 9.492 MB / 0.5137 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.004411/0.8609, allocations: 1.888 MB / 0.6681 GB, free: 7.59 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008627/0.8618, allocations: 339.7 kB / 0.6684 GB, free: 7.254 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009162/0.871, allocations: 3.757 MB / 0.6721 GB, free: 3.484 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.211e-05/0.8711, allocations: 27.91 kB / 0.6721 GB, free: 3.461 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.008e-05/0.8711, allocations: 8 kB / 0.6721 GB, free: 3.453 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.457e-05/0.8711, allocations: 7.969 kB / 0.6721 GB, free: 3.445 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01969/0.8908, allocations: 8.179 MB / 0.6801 GB, free: 11.24 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.739e-05/0.8909, allocations: 4 kB / 0.6801 GB, free: 11.24 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001273/0.8922, allocations: 247.6 kB / 0.6803 GB, free: 11 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00493/0.8971, allocations: 1.183 MB / 0.6815 GB, free: 9.809 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003816/0.8975, allocations: 31.98 kB / 0.6815 GB, free: 9.777 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01298/0.9105, allocations: 8.48 MB / 0.6898 GB, free: 1.164 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.9106, allocations: 0 / 0.6898 GB, free: 1.164 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01355/0.9241, allocations: 6.262 MB / 0.6959 GB, free: 10.87 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001218/0.9254, allocations: 380.7 kB / 0.6963 GB, free: 10.48 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000992/0.9264, allocations: 30.97 kB / 0.6963 GB, free: 10.45 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002032/0.9284, allocations: 79.97 kB / 0.6964 GB, free: 10.37 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005551/0.929, allocations: 109.1 kB / 0.6965 GB, free: 10.26 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002549/0.9293, allocations: 55.98 kB / 0.6965 GB, free: 10.21 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005345/0.9346, allocations: 2.333 MB / 0.6988 GB, free: 7.891 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.71e-07/0.9347, allocations: 0 / 0.6988 GB, free: 7.891 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006616/0.9413, allocations: 0.9648 MB / 0.6998 GB, free: 6.926 MB / 0.545 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.2192/1.161, allocations: 6.976 MB / 0.7066 GB, free: 209.7 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01136/1.172, allocations: 6.11 MB / 0.7125 GB, free: 209.3 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.113e-06/1.172, allocations: 1.125 kB / 0.7125 GB, free: 209.3 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002587/1.175, allocations: 1.747 MB / 0.7142 GB, free: 209 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002742/1.177, allocations: 400.6 kB / 0.7146 GB, free: 208.8 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07595/1.253, allocations: 50.83 MB / 0.7643 GB, free: 164.9 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002797/1.256, allocations: 2.963 MB / 0.7671 GB, free: 162.3 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003786/1.26, allocations: 1.815 MB / 0.7689 GB, free: 160.5 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002058/1.262, allocations: 1.651 MB / 0.7705 GB, free: 158.9 MB / 0.545 GB Notification: Performance of SimCode: time 1.423e-06/1.262, allocations: 0 / 0.7705 GB, free: 158.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09446/1.356, allocations: 70.35 MB / 0.8392 GB, free: 88.93 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001477/1.357, allocations: 238.5 kB / 0.8395 GB, free: 88.66 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.059/5.416, allocations: 3.938 kB / 0.8395 GB, free: 88.66 MB / 0.545 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses/ForceWithTwoMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches