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.001124/0.001124, allocations: 96.14 kB / 15.87 MB, free: 16 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.001151/0.001151, allocations: 206.3 kB / 16.79 MB, free: 6.84 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.336/1.336, allocations: 205.1 MB / 222.6 MB, free: 5.008 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.3103/0.3103, allocations: 43.5 MB / 313.5 MB, free: 8.637 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.001275/0.001275, allocations: 63.91 kB / 382.1 MB, free: 8.941 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1131/0.1144, allocations: 57.78 MB / 439.9 MB, free: 15.06 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.2467/0.3611, allocations: 34.86 MB / 474.8 MB, free: 30.44 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01646/0.3777, allocations: 7.942 MB / 482.7 MB, free: 25.81 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006585/0.3844, allocations: 157.7 kB / 482.9 MB, free: 25.78 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003616/0.388, allocations: 2.054 MB / 484.9 MB, free: 24.84 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003635/0.3917, allocations: 1.587 MB / 486.5 MB, free: 24.16 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001267/0.3929, allocations: 0.6314 MB / 487.1 MB, free: 23.91 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004726/0.3977, allocations: 5.456 MB / 492.6 MB, free: 22.31 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002964/0.4007, allocations: 2.576 MB / 495.2 MB, free: 21.38 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001639/0.4023, allocations: 1.179 MB / 496.3 MB, free: 20.93 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002316/0.4046, allocations: 1.996 MB / 498.3 MB, free: 20.28 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004796/0.4051, allocations: 185.5 kB / 498.5 MB, free: 20.28 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002265/0.4074, allocations: 1.178 MB / 499.7 MB, free: 19.99 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001687/0.4091, allocations: 1.6 MB / 0.4896 GB, free: 19.49 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001809/0.4109, allocations: 1.904 MB / 0.4914 GB, free: 18.2 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007622/0.4185, allocations: 6.106 MB / 0.4974 GB, free: 16.07 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/0.4186, allocations: 0 / 0.4974 GB, free: 16.07 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.4186, allocations: 0 / 0.4974 GB, free: 16.07 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001658/0.4188, allocations: 0 / 0.4974 GB, free: 16.07 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.01071/0.4295, allocations: 4.365 MB / 0.5016 GB, free: 13.04 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/0.4295, allocations: 9 kB / 0.5016 GB, free: 13.04 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000963/0.4305, allocations: 0.631 MB / 0.5023 GB, free: 12.59 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07798/0.5085, allocations: 7.031 MB / 0.5091 GB, free: 9.82 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006989/0.5155, allocations: 2.856 MB / 0.5119 GB, free: 7.727 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.271e-05/0.5157, allocations: 197.5 kB / 0.5121 GB, free: 7.531 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004982/0.5162, allocations: 275.7 kB / 0.5124 GB, free: 7.262 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01191/0.5281, allocations: 8.509 MB / 0.5207 GB, free: 14.12 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001019/0.5282, allocations: 43.59 kB / 0.5207 GB, free: 14.08 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003379/0.5286, allocations: 123.9 kB / 0.5208 GB, free: 13.96 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002794/0.5314, allocations: 1.735 MB / 0.5225 GB, free: 12.22 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01394/0.5453, allocations: 7.155 MB / 0.5295 GB, free: 5.059 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04525/0.5906, allocations: 33.96 MB / 0.5627 GB, free: 2.051 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008769/0.5994, allocations: 3.417 MB / 0.566 GB, free: 14.49 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002286/0.6018, allocations: 1.662 MB / 0.5676 GB, free: 12.82 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01177/0.6135, allocations: 7.225 MB / 0.5747 GB, free: 5.316 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.306e-05/0.6136, allocations: 47.56 kB / 0.5747 GB, free: 5.262 MB / 446.1 MB Notification: Performance of pre-optimization done (n=151): time 6.111e-06/0.6136, allocations: 0 / 0.5747 GB, free: 5.262 MB / 446.1 MB Notification: Performance of matching and sorting (n=188): time 0.06129/0.6749, allocations: 19.09 MB / 0.5934 GB, free: 2.012 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001051/0.6751, allocations: 201.2 kB / 0.5936 GB, free: 1.773 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005084/0.6802, allocations: 3.753 MB / 0.5972 GB, free: 14.03 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00025/0.6804, allocations: 57.7 kB / 0.5973 GB, free: 13.97 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001705/0.6822, allocations: 2.826 MB / 0.6001 GB, free: 11.1 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007012/0.6829, allocations: 0.7134 MB / 0.6008 GB, free: 10.38 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001361/0.6842, allocations: 1.166 MB / 0.6019 GB, free: 9.199 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.26e-05/0.6843, allocations: 301.1 kB / 0.6022 GB, free: 8.902 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002734/0.6871, allocations: 2.092 MB / 0.6042 GB, free: 6.805 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004887/0.692, allocations: 5.644 MB / 0.6097 GB, free: 15.39 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009742/0.7017, allocations: 8.404 MB / 0.6179 GB, free: 5.227 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.734e-05/0.7019, allocations: 32 kB / 0.618 GB, free: 5.195 MB / 494.1 MB Notification: Performance of matching and sorting (n=763) (initialization): time 0.01719/0.7191, allocations: 8.686 MB / 0.6265 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.867e-05/0.7192, allocations: 60.39 kB / 0.6265 GB, free: 12.44 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001598/0.7194, allocations: 128 kB / 0.6266 GB, free: 12.31 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005081/0.7245, allocations: 1.387 MB / 0.628 GB, free: 10.92 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00436/0.7289, allocations: 1.298 MB / 0.6293 GB, free: 9.621 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01278/0.7416, allocations: 8.579 MB / 0.6376 GB, free: 0.9023 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005218/0.7469, allocations: 299.5 kB / 0.6379 GB, free: 0.6094 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001337/0.7483, allocations: 352 kB / 0.6383 GB, free: 272 kB / 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.2214/0.9697, allocations: 1.9 MB / 0.6401 GB, free: 157 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001233/0.971, allocations: 330.6 kB / 0.6404 GB, free: 157 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008605/0.9796, allocations: 3.765 MB / 0.6441 GB, free: 156.9 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.484e-05/0.9797, allocations: 22.69 kB / 0.6441 GB, free: 156.9 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.977e-05/0.9797, allocations: 9.562 kB / 0.6441 GB, free: 156.8 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.628e-05/0.9797, allocations: 12.66 kB / 0.6442 GB, free: 156.8 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01643/0.9962, allocations: 8.174 MB / 0.6521 GB, free: 154.3 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.499e-05/0.9962, allocations: 4.406 kB / 0.6521 GB, free: 154.3 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001137/0.9974, allocations: 250.9 kB / 0.6524 GB, free: 154.2 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004263/1.002, allocations: 1.178 MB / 0.6535 GB, free: 154 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001647/1.002, allocations: 36.97 kB / 0.6536 GB, free: 154 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01043/1.012, allocations: 7.828 MB / 0.6612 GB, free: 150.3 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.019e-06/1.012, allocations: 0.5625 kB / 0.6612 GB, free: 150.3 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0122/1.024, allocations: 6.268 MB / 0.6673 GB, free: 148 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002064/1.027, allocations: 0.6079 MB / 0.6679 GB, free: 147.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004471/1.027, allocations: 34.34 kB / 0.668 GB, free: 147.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001333/1.028, allocations: 80.81 kB / 0.668 GB, free: 147.7 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004313/1.029, allocations: 111.1 kB / 0.6681 GB, free: 147.7 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001576/1.029, allocations: 54.28 kB / 0.6682 GB, free: 147.7 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.005214/1.034, allocations: 2.341 MB / 0.6705 GB, free: 146.9 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.91e-07/1.034, allocations: 3.688 kB / 0.6705 GB, free: 146.9 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.00704/1.041, allocations: 0.973 MB / 0.6714 GB, free: 146.8 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.01309/1.054, allocations: 6.969 MB / 0.6782 GB, free: 143.8 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.009321/1.064, allocations: 5.189 MB / 0.6833 GB, free: 141.9 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.58e-06/1.064, allocations: 0 / 0.6833 GB, free: 141.9 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002281/1.066, allocations: 1.743 MB / 0.685 GB, free: 141.2 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003498/1.07, allocations: 391.2 kB / 0.6854 GB, free: 141 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07733/1.147, allocations: 50.98 MB / 0.7352 GB, free: 90.25 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004955/1.152, allocations: 2.977 MB / 0.7381 GB, free: 87.25 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0043/1.156, allocations: 1.813 MB / 0.7398 GB, free: 85.43 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002244/1.159, allocations: 1.659 MB / 0.7415 GB, free: 83.77 MB / 0.4981 GB Notification: Performance of SimCode: time 1.273e-06/1.159, allocations: 0 / 0.7415 GB, free: 83.77 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09486/1.253, allocations: 69.07 MB / 0.8089 GB, free: 14.69 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001459/1.254, allocations: 230.8 kB / 0.8091 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.583/4.837, allocations: 0 / 0.8091 GB, free: 14.43 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