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.0008019/0.0008021, allocations: 97.72 kB / 16.02 MB, free: 84 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001126/0.001127, allocations: 177.7 kB / 16.92 MB, free: 6.668 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.374/1.374, allocations: 205.4 MB / 223.1 MB, free: 5.781 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3436/0.3436, allocations: 43.58 MB / 315 MB, free: 8.934 MB / 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.0004701/0.0004704, allocations: 16 kB / 384.7 MB, free: 7.781 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1063, allocations: 58.85 MB / 443.5 MB, free: 12.83 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.2102/0.3165, allocations: 33.85 MB / 477.4 MB, free: 28.61 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01586/0.3324, allocations: 7.883 MB / 485.3 MB, free: 25.3 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005265/0.3377, allocations: 146.9 kB / 485.4 MB, free: 25.27 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001057/0.3388, allocations: 384.8 kB / 485.8 MB, free: 25.12 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003354/0.3422, allocations: 1.593 MB / 487.4 MB, free: 24.44 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001197/0.3434, allocations: 0.6404 MB / 488 MB, free: 24.18 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004598/0.348, allocations: 5.453 MB / 493.5 MB, free: 22.59 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00366/0.3517, allocations: 3.309 MB / 496.8 MB, free: 21.25 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001923/0.3537, allocations: 1.031 MB / 497.8 MB, free: 20.87 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002736/0.3564, allocations: 1.808 MB / 499.6 MB, free: 20.32 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000475/0.3569, allocations: 123.5 kB / 499.7 MB, free: 20.32 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002157/0.3591, allocations: 1.101 MB / 0.4891 GB, free: 20.05 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001639/0.3607, allocations: 1.532 MB / 0.4906 GB, free: 19.59 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002404/0.3631, allocations: 1.815 MB / 0.4924 GB, free: 18.34 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00979/0.3729, allocations: 5.956 MB / 0.4982 GB, free: 16.54 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.373, allocations: 4 kB / 0.4982 GB, free: 16.53 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.927e-06/0.373, allocations: 0 / 0.4982 GB, free: 16.53 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002182/0.3732, allocations: 1.312 kB / 0.4982 GB, free: 16.53 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.01095/0.3842, allocations: 3.606 MB / 0.5017 GB, free: 13.96 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.51e-05/0.3842, allocations: 9.594 kB / 0.5017 GB, free: 13.96 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001938/0.3862, allocations: 0.631 MB / 0.5023 GB, free: 13.52 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09427/0.4805, allocations: 7.219 MB / 0.5094 GB, free: 10.74 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006109/0.4866, allocations: 2.839 MB / 0.5122 GB, free: 8.957 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001324/0.4868, allocations: 193.5 kB / 0.5124 GB, free: 8.863 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007329/0.4875, allocations: 278.4 kB / 0.5126 GB, free: 8.758 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0115/0.499, allocations: 8.534 MB / 0.521 GB, free: 15.79 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001077/0.4992, allocations: 39.59 kB / 0.521 GB, free: 15.75 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003842/0.4996, allocations: 131.8 kB / 0.5211 GB, free: 15.62 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003133/0.5027, allocations: 1.739 MB / 0.5228 GB, free: 13.88 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01512/0.5178, allocations: 7.179 MB / 0.5298 GB, free: 6.691 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0453/0.5632, allocations: 34 MB / 0.563 GB, free: 3.641 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009328/0.5725, allocations: 3.46 MB / 0.5664 GB, free: 36 kB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002535/0.5751, allocations: 1.659 MB / 0.568 GB, free: 14.37 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01151/0.5867, allocations: 7.221 MB / 0.5751 GB, free: 6.871 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.156e-05/0.5868, allocations: 47.56 kB / 0.5751 GB, free: 6.816 MB / 446.1 MB Notification: Performance of pre-optimization done (n=151): time 8.476e-06/0.5868, allocations: 0 / 0.5751 GB, free: 6.816 MB / 446.1 MB Notification: Performance of matching and sorting (n=188): time 0.06529/0.6521, allocations: 19.44 MB / 0.5941 GB, free: 3.211 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001075/0.6523, allocations: 201.2 kB / 0.5943 GB, free: 2.973 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006748/0.659, allocations: 3.76 MB / 0.598 GB, free: 15.22 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004095/0.6595, allocations: 53.64 kB / 0.598 GB, free: 15.16 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002073/0.6615, allocations: 2.83 MB / 0.6008 GB, free: 12.29 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009192/0.6625, allocations: 0.7173 MB / 0.6015 GB, free: 11.57 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006226/0.6631, allocations: 498.9 kB / 0.602 GB, free: 11.07 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 8.876e-05/0.6632, allocations: 301.1 kB / 0.6023 GB, free: 10.77 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003025/0.6662, allocations: 2.104 MB / 0.6043 GB, free: 8.664 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005145/0.6714, allocations: 5.652 MB / 0.6098 GB, free: 1.238 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009551/0.681, allocations: 8.404 MB / 0.618 GB, free: 7.078 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.393e-05/0.6811, allocations: 36 kB / 0.6181 GB, free: 7.043 MB / 494.1 MB Notification: Performance of matching and sorting (n=763) (initialization): time 0.01708/0.6981, allocations: 8.722 MB / 0.6266 GB, free: 14.31 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.00012/0.6983, allocations: 60 kB / 0.6266 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001523/0.6984, allocations: 124 kB / 0.6268 GB, free: 14.13 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005293/0.7038, allocations: 1.419 MB / 0.6281 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004003/0.7078, allocations: 1.298 MB / 0.6294 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0126/0.7204, allocations: 8.63 MB / 0.6378 GB, free: 2.641 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004759/0.7252, allocations: 307.5 kB / 0.6381 GB, free: 2.34 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001059/0.7263, allocations: 356 kB / 0.6385 GB, free: 1.992 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.004045/0.7303, allocations: 1.892 MB / 0.6403 GB, free: 88 kB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.2075/0.9378, allocations: 331.2 kB / 0.6406 GB, free: 155.8 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008908/0.9467, allocations: 3.8 MB / 0.6443 GB, free: 155.6 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.866e-05/0.9468, allocations: 21.03 kB / 0.6444 GB, free: 155.6 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.396e-05/0.9468, allocations: 8.531 kB / 0.6444 GB, free: 155.6 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.211e-05/0.9468, allocations: 10.22 kB / 0.6444 GB, free: 155.6 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01521/0.9621, allocations: 8.212 MB / 0.6524 GB, free: 154.9 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.8e-05/0.9621, allocations: 3.625 kB / 0.6524 GB, free: 154.9 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001211/0.9633, allocations: 246.8 kB / 0.6526 GB, free: 154.8 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004618/0.968, allocations: 1.211 MB / 0.6538 GB, free: 154.6 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002534/0.9682, allocations: 35.98 kB / 0.6539 GB, free: 154.6 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01072/0.979, allocations: 7.899 MB / 0.6616 GB, free: 150.9 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.979, allocations: 0 / 0.6616 GB, free: 150.9 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01096/0.99, allocations: 6.299 MB / 0.6677 GB, free: 148.6 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001527/0.9915, allocations: 0.6187 MB / 0.6683 GB, free: 148.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004448/0.992, allocations: 27.06 kB / 0.6684 GB, free: 148.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001327/0.9933, allocations: 83.38 kB / 0.6684 GB, free: 148.3 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003468/0.9937, allocations: 115.8 kB / 0.6685 GB, free: 148.3 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000128/0.9938, allocations: 55.17 kB / 0.6686 GB, free: 148.3 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.00396/0.9978, allocations: 2.344 MB / 0.6709 GB, free: 147.5 MB / 0.4981 GB Notification: Performance of sort global known variables: time 4.01e-07/0.9978, allocations: 0 / 0.6709 GB, free: 147.5 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005253/1.003, allocations: 0.9701 MB / 0.6718 GB, free: 147.4 MB / 0.4981 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.01402/1.017, allocations: 7.021 MB / 0.6787 GB, free: 144.4 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.009019/1.026, allocations: 5.196 MB / 0.6838 GB, free: 142.6 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.933e-06/1.026, allocations: 1.25 kB / 0.6838 GB, free: 142.6 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002277/1.028, allocations: 1.744 MB / 0.6855 GB, free: 141.9 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002943/1.031, allocations: 394.2 kB / 0.6858 GB, free: 141.7 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07178/1.103, allocations: 51.12 MB / 0.7358 GB, free: 90.38 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004059/1.107, allocations: 2.974 MB / 0.7387 GB, free: 87.38 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00438/1.112, allocations: 1.815 MB / 0.7404 GB, free: 85.55 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002416/1.114, allocations: 1.655 MB / 0.7421 GB, free: 83.89 MB / 0.4981 GB Notification: Performance of SimCode: time 2.164e-06/1.114, allocations: 0 / 0.7421 GB, free: 83.89 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08603/1.2, allocations: 68.39 MB / 0.8088 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001275/1.2, allocations: 234.2 kB / 0.8091 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.053/5.253, allocations: 0 / 0.8091 GB, free: 15.27 MB / 0.4981 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","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches