Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.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.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009752/0.0009753, allocations: 93.22 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001196/0.001197, allocations: 203.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.339/1.339, allocations: 227.7 MB / 246.8 MB, free: 11.38 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2054/0.2054, allocations: 46.19 MB / 345.2 MB, free: 11.39 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002708/0.0002707, allocations: 8 kB / 419.6 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.1223, allocations: 63.56 MB / 483.2 MB, free: 4.066 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.03087/0.1532, allocations: 33.62 MB / 0.5047 GB, free: 2.312 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2573/0.4105, allocations: 7.798 MB / 0.5123 GB, free: 10.16 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006642/0.4172, allocations: 149.6 kB / 0.5124 GB, free: 10.16 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001566/0.4188, allocations: 382.8 kB / 0.5128 GB, free: 10.16 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005308/0.4241, allocations: 1.575 MB / 0.5143 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002178/0.4263, allocations: 0.6345 MB / 0.515 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009589/0.4359, allocations: 5.711 MB / 0.5205 GB, free: 9.895 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005153/0.4411, allocations: 3.3 MB / 0.5238 GB, free: 8.934 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002146/0.4433, allocations: 1.021 MB / 0.5248 GB, free: 8.703 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00286/0.4462, allocations: 1.802 MB / 0.5265 GB, free: 7.824 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00046/0.4466, allocations: 123.8 kB / 0.5266 GB, free: 7.824 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002247/0.4489, allocations: 1.1 MB / 0.5277 GB, free: 7.344 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00152/0.4504, allocations: 1.502 MB / 0.5292 GB, free: 6.543 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001718/0.4522, allocations: 1.786 MB / 0.5309 GB, free: 5.191 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006864/0.459, allocations: 5.902 MB / 0.5367 GB, free: 1.367 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.795e-06/0.4591, allocations: 2.5 kB / 0.5367 GB, free: 1.367 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.226e-06/0.4591, allocations: 3.938 kB / 0.5367 GB, free: 1.363 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001544/0.4592, allocations: 0 / 0.5367 GB, free: 1.363 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.008519/0.4678, allocations: 3.579 MB / 0.5402 GB, free: 14.84 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.824e-05/0.4678, allocations: 12.91 kB / 0.5402 GB, free: 14.84 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007954/0.4686, allocations: 0.6248 MB / 0.5408 GB, free: 14.43 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08952/0.5582, allocations: 7.218 MB / 0.5479 GB, free: 8.867 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00616/0.5644, allocations: 2.567 MB / 0.5504 GB, free: 6.266 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001538/0.5646, allocations: 197.5 kB / 0.5506 GB, free: 6.105 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006914/0.5653, allocations: 274.7 kB / 0.5508 GB, free: 5.871 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01556/0.5808, allocations: 8.554 MB / 0.5592 GB, free: 12.79 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000109/0.581, allocations: 43.66 kB / 0.5592 GB, free: 12.75 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003458/0.5813, allocations: 125.4 kB / 0.5593 GB, free: 12.66 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002944/0.5843, allocations: 1.731 MB / 0.561 GB, free: 10.94 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01436/0.5986, allocations: 7.204 MB / 0.5681 GB, free: 3.73 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04371/0.6424, allocations: 33.98 MB / 0.6012 GB, free: 0.8477 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009019/0.6515, allocations: 3.481 MB / 0.6046 GB, free: 13.22 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002333/0.6538, allocations: 1.649 MB / 0.6062 GB, free: 11.56 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01156/0.6654, allocations: 7.319 MB / 0.6134 GB, free: 3.992 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.935e-05/0.6655, allocations: 51.55 kB / 0.6134 GB, free: 3.934 MB / 462.1 MB Notification: Performance of pre-optimization done (n=151): time 5.119e-06/0.6655, allocations: 0 / 0.6134 GB, free: 3.934 MB / 462.1 MB Notification: Performance of matching and sorting (n=188): time 0.06508/0.7306, allocations: 19.39 MB / 0.6324 GB, free: 408 kB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001314/0.7308, allocations: 205.2 kB / 0.6326 GB, free: 160 kB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007026/0.7378, allocations: 3.739 MB / 0.6362 GB, free: 12.43 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003071/0.7382, allocations: 49.7 kB / 0.6363 GB, free: 12.38 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002263/0.7404, allocations: 2.825 MB / 0.639 GB, free: 9.555 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001068/0.7415, allocations: 0.7162 MB / 0.6397 GB, free: 8.844 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009037/0.7424, allocations: 0.4911 MB / 0.6402 GB, free: 8.344 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001291/0.7426, allocations: 301.1 kB / 0.6405 GB, free: 8.047 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003548/0.7461, allocations: 2.108 MB / 0.6426 GB, free: 5.934 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005676/0.7518, allocations: 5.667 MB / 0.6481 GB, free: 14.49 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009917/0.7618, allocations: 8.421 MB / 0.6563 GB, free: 4.316 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001317/0.7619, allocations: 36 kB / 0.6564 GB, free: 4.281 MB / 0.4981 GB Notification: Performance of matching and sorting (n=763) (initialization): time 0.0185/0.7804, allocations: 8.746 MB / 0.6649 GB, free: 11.53 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001593/0.7806, allocations: 59.98 kB / 0.665 GB, free: 11.47 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002309/0.7809, allocations: 132.2 kB / 0.6651 GB, free: 11.34 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005576/0.7865, allocations: 1.413 MB / 0.6665 GB, free: 9.926 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004326/0.7908, allocations: 1.302 MB / 0.6677 GB, free: 8.621 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01342/0.8043, allocations: 8.633 MB / 0.6762 GB, free: 15.86 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004566/0.8089, allocations: 311.5 kB / 0.6765 GB, free: 15.55 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001147/0.81, allocations: 360 kB / 0.6768 GB, free: 15.2 MB / 0.5294 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.00451/0.8145, allocations: 1.891 MB / 0.6786 GB, free: 13.3 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00074/0.8153, allocations: 327.7 kB / 0.679 GB, free: 12.98 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008988/0.8243, allocations: 3.824 MB / 0.6827 GB, free: 9.141 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.521e-05/0.8244, allocations: 23.94 kB / 0.6827 GB, free: 9.117 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.047e-05/0.8244, allocations: 8 kB / 0.6827 GB, free: 9.109 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-05/0.8244, allocations: 7.969 kB / 0.6827 GB, free: 9.102 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01753/0.842, allocations: 8.245 MB / 0.6908 GB, free: 0.8359 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.526e-05/0.842, allocations: 0 / 0.6908 GB, free: 0.8359 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00125/0.8433, allocations: 251.6 kB / 0.691 GB, free: 0.5898 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004886/0.8482, allocations: 1.202 MB / 0.6922 GB, free: 15.38 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000215/0.8484, allocations: 31.98 kB / 0.6922 GB, free: 15.35 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01174/0.8602, allocations: 7.897 MB / 0.6999 GB, free: 7.328 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.8602, allocations: 0 / 0.6999 GB, free: 7.328 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01201/0.8722, allocations: 6.338 MB / 0.7061 GB, free: 0.9609 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009397/0.8732, allocations: 392.6 kB / 0.7065 GB, free: 0.5547 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007848/0.874, allocations: 28 kB / 0.7065 GB, free: 0.5273 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001802/0.8758, allocations: 87.89 kB / 0.7066 GB, free: 452 kB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003823/0.8762, allocations: 109.5 kB / 0.7067 GB, free: 344 kB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001585/0.8764, allocations: 59.81 kB / 0.7068 GB, free: 288 kB / 0.545 GB Notification: Performance of sorting global known variables: time 0.2572/1.134, allocations: 2.324 MB / 0.709 GB, free: 192.7 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.743e-06/1.134, allocations: 0.6875 kB / 0.709 GB, free: 192.7 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005685/1.139, allocations: 0.9475 MB / 0.71 GB, free: 192.7 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.01207/1.151, allocations: 7.044 MB / 0.7169 GB, free: 191 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.008609/1.16, allocations: 5.218 MB / 0.7219 GB, free: 189.2 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/1.16, allocations: 0 / 0.7219 GB, free: 189.2 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002687/1.163, allocations: 1.756 MB / 0.7237 GB, free: 188.5 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002842/1.166, allocations: 387.3 kB / 0.724 GB, free: 188.3 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06399/1.23, allocations: 51 MB / 0.7738 GB, free: 144.5 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002904/1.233, allocations: 2.961 MB / 0.7767 GB, free: 141.5 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004199/1.237, allocations: 1.815 MB / 0.7785 GB, free: 139.7 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002006/1.239, allocations: 1.647 MB / 0.7801 GB, free: 138 MB / 0.545 GB Notification: Performance of SimCode: time 1.753e-06/1.239, allocations: 0 / 0.7801 GB, free: 138 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09095/1.33, allocations: 68.03 MB / 0.8465 GB, free: 70.33 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001801/1.33, allocations: 238.3 kB / 0.8468 GB, free: 70.06 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.744/5.074, allocations: 3.938 kB / 0.8468 GB, free: 70.06 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches