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.0006497/0.0006498, allocations: 92.59 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.0007457/0.0007458, allocations: 204.3 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.136/1.136, allocations: 227.7 MB / 246.8 MB, free: 11.33 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1685/0.1685, allocations: 46.18 MB / 345.2 MB, free: 11.42 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002144/0.0002143, allocations: 8 kB / 419.6 MB, free: 19.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08645/0.08668, allocations: 63.55 MB / 483.2 MB, free: 4.102 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.02663/0.1133, allocations: 33.62 MB / 0.5047 GB, free: 2.344 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.1728/0.2862, allocations: 7.791 MB / 0.5123 GB, free: 9.727 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003402/0.2896, allocations: 154 kB / 0.5124 GB, free: 9.723 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007484/0.2904, allocations: 383.7 kB / 0.5128 GB, free: 9.723 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002718/0.2931, allocations: 1.577 MB / 0.5143 GB, free: 9.637 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001106/0.2942, allocations: 0.6356 MB / 0.515 GB, free: 9.609 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00539/0.2996, allocations: 5.712 MB / 0.5205 GB, free: 9.457 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00343/0.3031, allocations: 3.303 MB / 0.5238 GB, free: 8.777 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00116/0.3043, allocations: 1.016 MB / 0.5248 GB, free: 8.566 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001664/0.3059, allocations: 1.804 MB / 0.5265 GB, free: 7.695 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002284/0.3062, allocations: 124.3 kB / 0.5266 GB, free: 7.695 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001508/0.3077, allocations: 1.097 MB / 0.5277 GB, free: 7.219 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000868/0.3086, allocations: 1.506 MB / 0.5292 GB, free: 6.414 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001018/0.3096, allocations: 1.784 MB / 0.5309 GB, free: 5.062 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003453/0.313, allocations: 5.901 MB / 0.5367 GB, free: 1.242 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.3131, allocations: 0 / 0.5367 GB, free: 1.242 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3131, allocations: 4 kB / 0.5367 GB, free: 1.238 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.838e-05/0.3131, allocations: 0 / 0.5367 GB, free: 1.238 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.005936/0.3191, allocations: 3.584 MB / 0.5402 GB, free: 14.71 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.365e-05/0.3191, allocations: 11.28 kB / 0.5402 GB, free: 14.71 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005984/0.3197, allocations: 0.6241 MB / 0.5408 GB, free: 14.3 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08476/0.4045, allocations: 7.218 MB / 0.5479 GB, free: 8.766 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004024/0.4085, allocations: 2.568 MB / 0.5504 GB, free: 6.164 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001196/0.4086, allocations: 190.9 kB / 0.5505 GB, free: 6.008 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004659/0.4091, allocations: 280.1 kB / 0.5508 GB, free: 5.77 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01059/0.4197, allocations: 8.552 MB / 0.5592 GB, free: 12.69 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.692e-05/0.4198, allocations: 39.66 kB / 0.5592 GB, free: 12.65 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002871/0.4201, allocations: 126.6 kB / 0.5593 GB, free: 12.56 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002511/0.4226, allocations: 1.735 MB / 0.561 GB, free: 10.84 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01045/0.4331, allocations: 7.209 MB / 0.5681 GB, free: 3.625 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02928/0.4624, allocations: 33.98 MB / 0.6012 GB, free: 0.7383 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007709/0.4701, allocations: 3.473 MB / 0.6046 GB, free: 13.12 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001878/0.472, allocations: 1.651 MB / 0.6062 GB, free: 11.45 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008742/0.4807, allocations: 7.311 MB / 0.6134 GB, free: 3.895 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.419e-05/0.4808, allocations: 55.55 kB / 0.6134 GB, free: 3.832 MB / 462.1 MB Notification: Performance of pre-optimization done (n=151): time 3.026e-06/0.4808, allocations: 0 / 0.6134 GB, free: 3.832 MB / 462.1 MB Notification: Performance of matching and sorting (n=188): time 0.05629/0.5371, allocations: 19.4 MB / 0.6324 GB, free: 296 kB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.17e-05/0.5372, allocations: 205.2 kB / 0.6326 GB, free: 48 kB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004035/0.5412, allocations: 3.732 MB / 0.6362 GB, free: 12.32 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001137/0.5414, allocations: 57.69 kB / 0.6363 GB, free: 12.26 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001584/0.5429, allocations: 2.821 MB / 0.639 GB, free: 9.445 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004997/0.5435, allocations: 0.7152 MB / 0.6397 GB, free: 8.734 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005287/0.544, allocations: 0.4911 MB / 0.6402 GB, free: 8.234 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 7.267e-05/0.5441, allocations: 301.1 kB / 0.6405 GB, free: 7.938 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002665/0.5467, allocations: 2.104 MB / 0.6425 GB, free: 5.828 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004566/0.5513, allocations: 5.663 MB / 0.6481 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007859/0.5592, allocations: 8.434 MB / 0.6563 GB, free: 4.203 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.159e-05/0.5592, allocations: 36 kB / 0.6563 GB, free: 4.168 MB / 0.4981 GB Notification: Performance of matching and sorting (n=763) (initialization): time 0.01393/0.5732, allocations: 8.747 MB / 0.6649 GB, free: 11.41 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 6.256e-05/0.5732, allocations: 60 kB / 0.6649 GB, free: 11.35 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.37e-05/0.5733, allocations: 124.9 kB / 0.6651 GB, free: 11.23 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004894/0.5782, allocations: 1.413 MB / 0.6664 GB, free: 9.816 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003254/0.5815, allocations: 1.306 MB / 0.6677 GB, free: 8.508 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01164/0.5932, allocations: 8.637 MB / 0.6762 GB, free: 15.74 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002829/0.596, allocations: 307.4 kB / 0.6765 GB, free: 15.44 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003882/0.5964, allocations: 362.2 kB / 0.6768 GB, free: 15.09 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.002304/0.5987, allocations: 1.892 MB / 0.6786 GB, free: 13.18 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003806/0.5991, allocations: 331.7 kB / 0.679 GB, free: 12.86 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008149/0.6073, allocations: 3.815 MB / 0.6827 GB, free: 9.027 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.399e-05/0.6073, allocations: 26.28 kB / 0.6827 GB, free: 9.004 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.052e-05/0.6073, allocations: 12 kB / 0.6827 GB, free: 8.992 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.451e-05/0.6073, allocations: 7.969 kB / 0.6827 GB, free: 8.984 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01357/0.6209, allocations: 8.239 MB / 0.6908 GB, free: 0.7266 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.671e-06/0.6209, allocations: 4 kB / 0.6908 GB, free: 0.7227 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001067/0.622, allocations: 251.6 kB / 0.691 GB, free: 488 kB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004576/0.6266, allocations: 1.204 MB / 0.6922 GB, free: 15.27 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001017/0.6267, allocations: 31.98 kB / 0.6922 GB, free: 15.23 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01071/0.6374, allocations: 7.896 MB / 0.6999 GB, free: 7.211 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.113e-06/0.6374, allocations: 8.016 kB / 0.6999 GB, free: 7.203 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01036/0.6478, allocations: 6.329 MB / 0.7061 GB, free: 0.8477 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004262/0.6482, allocations: 384.6 kB / 0.7065 GB, free: 460 kB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002834/0.6485, allocations: 28.06 kB / 0.7065 GB, free: 432 kB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001203/0.6497, allocations: 95.17 kB / 0.7066 GB, free: 340 kB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002557/0.65, allocations: 113 kB / 0.7067 GB, free: 228 kB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001141/0.6501, allocations: 55.98 kB / 0.7068 GB, free: 172 kB / 0.545 GB Notification: Performance of sorting global known variables: time 0.164/0.8141, allocations: 2.321 MB / 0.709 GB, free: 192.3 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.8e-07/0.8142, allocations: 0 / 0.709 GB, free: 192.3 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004006/0.8182, allocations: 0.9482 MB / 0.71 GB, free: 192.3 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.01066/0.8289, allocations: 7.043 MB / 0.7168 GB, free: 190.9 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.006675/0.8355, allocations: 5.217 MB / 0.7219 GB, free: 189 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.8356, allocations: 0 / 0.7219 GB, free: 189 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002082/0.8376, allocations: 1.758 MB / 0.7237 GB, free: 188.3 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002118/0.8398, allocations: 393.9 kB / 0.724 GB, free: 188.1 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04952/0.8893, allocations: 51.01 MB / 0.7738 GB, free: 144.3 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002144/0.8915, allocations: 2.957 MB / 0.7767 GB, free: 141.3 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003374/0.8949, allocations: 1.811 MB / 0.7785 GB, free: 139.5 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00137/0.8962, allocations: 1.651 MB / 0.7801 GB, free: 137.8 MB / 0.545 GB Notification: Performance of SimCode: time 6.41e-07/0.8962, allocations: 0 / 0.7801 GB, free: 137.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06371/0.96, allocations: 68.03 MB / 0.8465 GB, free: 70.13 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001499/0.9601, allocations: 238.6 kB / 0.8468 GB, free: 69.87 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.887/3.847, allocations: 3.938 kB / 0.8468 GB, free: 69.86 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