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.001593/0.001593, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001612/0.001613, allocations: 201.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.44/1.44, allocations: 227.4 MB / 247 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2308/0.2308, allocations: 46.12 MB / 344.4 MB, free: 11.41 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002307/0.002307, allocations: 75.88 kB / 480.9 MB, free: 4.473 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3355/0.3378, allocations: 62.45 MB / 0.5306 GB, free: 13.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.01274/0.3506, allocations: 10.35 MB / 0.5407 GB, free: 5.219 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008781/0.3594, allocations: 3.889 MB / 0.5445 GB, free: 2.188 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00219/0.3617, allocations: 60.97 kB / 0.5446 GB, free: 2.176 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004517/0.3663, allocations: 2.072 MB / 0.5466 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005123/0.3714, allocations: 1.674 MB / 0.5483 GB, free: 15.59 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001965/0.3734, allocations: 0.6901 MB / 0.5489 GB, free: 14.9 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006726/0.3802, allocations: 3.997 MB / 0.5528 GB, free: 10.89 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00382/0.384, allocations: 2.597 MB / 0.5554 GB, free: 8.25 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002599/0.3867, allocations: 1.308 MB / 0.5566 GB, free: 6.938 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003245/0.3899, allocations: 1.834 MB / 0.5584 GB, free: 5.098 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001002/0.391, allocations: 268 kB / 0.5587 GB, free: 4.836 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002795/0.3938, allocations: 1.174 MB / 0.5598 GB, free: 3.66 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002011/0.3958, allocations: 1.636 MB / 0.5614 GB, free: 2.02 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002931/0.3988, allocations: 1.949 MB / 0.5633 GB, free: 60 kB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009056/0.4078, allocations: 6.354 MB / 0.5695 GB, free: 9.68 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.224e-06/0.4079, allocations: 0 / 0.5695 GB, free: 9.68 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.4079, allocations: 3.938 kB / 0.5695 GB, free: 9.676 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002208/0.4081, allocations: 4 kB / 0.5695 GB, free: 9.672 MB / 430.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.01232/0.4205, allocations: 4.437 MB / 0.5739 GB, free: 5.16 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.367e-05/0.4205, allocations: 8.031 kB / 0.5739 GB, free: 5.152 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001638/0.4222, allocations: 0.6288 MB / 0.5745 GB, free: 4.512 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09507/0.5173, allocations: 7.048 MB / 0.5814 GB, free: 13.45 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006433/0.5237, allocations: 2.629 MB / 0.584 GB, free: 10.76 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001911/0.524, allocations: 205.2 kB / 0.5841 GB, free: 10.56 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00105/0.525, allocations: 275.7 kB / 0.5844 GB, free: 10.29 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01619/0.5412, allocations: 8.525 MB / 0.5927 GB, free: 1.133 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001389/0.5414, allocations: 39.7 kB / 0.5928 GB, free: 1.094 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000499/0.5419, allocations: 123.9 kB / 0.5929 GB, free: 0.9727 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003186/0.5451, allocations: 1.743 MB / 0.5946 GB, free: 15.22 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01567/0.5608, allocations: 7.163 MB / 0.6016 GB, free: 8.051 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04617/0.6071, allocations: 33.86 MB / 0.6347 GB, free: 5.109 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009221/0.6163, allocations: 3.428 MB / 0.638 GB, free: 1.535 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002516/0.6189, allocations: 1.647 MB / 0.6396 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01213/0.631, allocations: 7.317 MB / 0.6468 GB, free: 8.273 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.842e-05/0.6312, allocations: 43.56 kB / 0.6468 GB, free: 8.223 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=151): time 5.079e-06/0.6312, allocations: 0 / 0.6468 GB, free: 8.223 MB / 0.4981 GB Notification: Performance of matching and sorting (n=188): time 0.06681/0.698, allocations: 19.24 MB / 0.6656 GB, free: 4.844 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001543/0.6982, allocations: 213.2 kB / 0.6658 GB, free: 4.594 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006771/0.705, allocations: 3.749 MB / 0.6695 GB, free: 0.8555 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.000401/0.7054, allocations: 57.7 kB / 0.6695 GB, free: 0.793 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0027/0.7081, allocations: 2.933 MB / 0.6724 GB, free: 13.83 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001083/0.7092, allocations: 0.7442 MB / 0.6731 GB, free: 13.08 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001941/0.7112, allocations: 1.179 MB / 0.6743 GB, free: 11.89 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001332/0.7113, allocations: 301.1 kB / 0.6745 GB, free: 11.59 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003436/0.7148, allocations: 2.108 MB / 0.6766 GB, free: 9.477 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00669/0.7215, allocations: 5.656 MB / 0.6821 GB, free: 2.043 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01138/0.7329, allocations: 8.416 MB / 0.6903 GB, free: 7.879 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001159/0.7331, allocations: 36 kB / 0.6904 GB, free: 7.844 MB / 0.545 GB Notification: Performance of matching and sorting (n=763) (initialization): time 0.0199/0.753, allocations: 8.709 MB / 0.6989 GB, free: 15.12 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001951/0.7532, allocations: 60.94 kB / 0.6989 GB, free: 15.07 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002683/0.7535, allocations: 124 kB / 0.6991 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005452/0.759, allocations: 1.399 MB / 0.7004 GB, free: 13.54 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004556/0.7636, allocations: 1.29 MB / 0.7017 GB, free: 12.25 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01544/0.779, allocations: 9.206 MB / 0.7107 GB, free: 2.898 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004452/0.7835, allocations: 303.6 kB / 0.711 GB, free: 2.602 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001262/0.7848, allocations: 360 kB / 0.7113 GB, free: 2.25 MB / 0.5606 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.004286/0.7891, allocations: 1.9 MB / 0.7132 GB, free: 348 kB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009696/0.7901, allocations: 353.6 kB / 0.7135 GB, free: 15.99 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01023/0.8004, allocations: 3.77 MB / 0.7172 GB, free: 12.2 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-05/0.8005, allocations: 20 kB / 0.7172 GB, free: 12.18 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.931e-05/0.8005, allocations: 8 kB / 0.7172 GB, free: 12.17 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.167e-05/0.8005, allocations: 11.97 kB / 0.7172 GB, free: 12.16 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02119/0.8217, allocations: 8.152 MB / 0.7252 GB, free: 3.941 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.074e-05/0.8218, allocations: 3.984 kB / 0.7252 GB, free: 3.938 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001465/0.8233, allocations: 251.6 kB / 0.7254 GB, free: 3.691 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00496/0.8283, allocations: 1.179 MB / 0.7266 GB, free: 2.508 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000345/0.8287, allocations: 31.98 kB / 0.7266 GB, free: 2.477 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2878/1.116, allocations: 8.469 MB / 0.7349 GB, free: 175.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/1.117, allocations: 1.094 kB / 0.7349 GB, free: 175.6 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01111/1.128, allocations: 6.315 MB / 0.741 GB, free: 173.4 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008816/1.129, allocations: 388.4 kB / 0.7414 GB, free: 173.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005373/1.129, allocations: 33.02 kB / 0.7414 GB, free: 173.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001429/1.131, allocations: 86.5 kB / 0.7415 GB, free: 173.2 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003756/1.131, allocations: 112.9 kB / 0.7416 GB, free: 173.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001285/1.131, allocations: 53.5 kB / 0.7417 GB, free: 173.2 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.003193/1.134, allocations: 2.326 MB / 0.744 GB, free: 172.4 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.5e-07/1.134, allocations: 0 / 0.744 GB, free: 172.4 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.004374/1.139, allocations: 0.9485 MB / 0.7449 GB, free: 172.3 MB / 0.5762 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.0102/1.149, allocations: 7.009 MB / 0.7517 GB, free: 169.5 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.006915/1.156, allocations: 5.23 MB / 0.7568 GB, free: 166.4 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.599e-05/1.156, allocations: 0 / 0.7568 GB, free: 166.4 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0021/1.158, allocations: 1.759 MB / 0.7586 GB, free: 164.7 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002563/1.161, allocations: 392.5 kB / 0.7589 GB, free: 164.3 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06231/1.223, allocations: 44.32 MB / 0.8022 GB, free: 114.6 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00345/1.226, allocations: 2.968 MB / 0.8051 GB, free: 111.6 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003604/1.23, allocations: 1.807 MB / 0.8069 GB, free: 109.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002299/1.232, allocations: 1.651 MB / 0.8085 GB, free: 108.1 MB / 0.5762 GB Notification: Performance of SimCode: time 1.493e-06/1.232, allocations: 0 / 0.8085 GB, free: 108.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1075/1.34, allocations: 66.85 MB / 0.8738 GB, free: 41.66 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.36/28.7, allocations: 11.42 kB / 0.8738 GB, free: 41.65 MB / 0.5762 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