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.001256/0.001256, allocations: 114 kB / 17.33 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001788/0.001788, allocations: 213.8 kB / 18.27 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.382/1.382, allocations: 227.4 MB / 246.4 MB, free: 9.082 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2168/0.2168, allocations: 46.1 MB / 343.8 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 71.72 kB / 417.2 MB, free: 19.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1266/0.128, allocations: 62.44 MB / 479.6 MB, free: 5.504 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.03787/0.1659, allocations: 34.62 MB / 0.5022 GB, free: 2.738 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2318/0.3977, allocations: 7.761 MB / 0.5097 GB, free: 10.34 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006465/0.4042, allocations: 151.4 kB / 0.5099 GB, free: 10.34 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004183/0.4085, allocations: 1.988 MB / 0.5118 GB, free: 10.31 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004759/0.4133, allocations: 1.554 MB / 0.5133 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001984/0.4153, allocations: 0.6509 MB / 0.514 GB, free: 10.2 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006091/0.4214, allocations: 4.225 MB / 0.5181 GB, free: 9.797 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003314/0.4247, allocations: 2.754 MB / 0.5208 GB, free: 8.73 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002226/0.427, allocations: 1.334 MB / 0.5221 GB, free: 8.309 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002554/0.4295, allocations: 2.061 MB / 0.5241 GB, free: 7.711 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007244/0.4303, allocations: 264.9 kB / 0.5244 GB, free: 7.711 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002152/0.4324, allocations: 1.191 MB / 0.5255 GB, free: 7.492 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0014/0.4338, allocations: 1.67 MB / 0.5272 GB, free: 6.629 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002904/0.4368, allocations: 1.979 MB / 0.5291 GB, free: 5.121 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006457/0.4432, allocations: 6.147 MB / 0.5351 GB, free: 1.102 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.4433, allocations: 0 / 0.5351 GB, free: 1.102 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.285e-06/0.4433, allocations: 0 / 0.5351 GB, free: 1.102 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001709/0.4435, allocations: 0 / 0.5351 GB, free: 1.102 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.01042/0.4539, allocations: 4.335 MB / 0.5393 GB, free: 14.16 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/0.4539, allocations: 7.594 kB / 0.5393 GB, free: 14.16 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00109/0.455, allocations: 0.623 MB / 0.5399 GB, free: 13.76 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08393/0.539, allocations: 7.026 MB / 0.5468 GB, free: 8.113 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007364/0.5464, allocations: 2.588 MB / 0.5493 GB, free: 5.488 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002286/0.5467, allocations: 192.2 kB / 0.5495 GB, free: 5.332 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001358/0.548, allocations: 274.9 kB / 0.5498 GB, free: 5.098 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01753/0.5656, allocations: 8.532 MB / 0.5581 GB, free: 12.04 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001878/0.5658, allocations: 35.66 kB / 0.5581 GB, free: 12 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008276/0.5667, allocations: 126.5 kB / 0.5583 GB, free: 11.91 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003016/0.5697, allocations: 1.743 MB / 0.56 GB, free: 10.18 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01514/0.5849, allocations: 7.163 MB / 0.567 GB, free: 3.012 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04918/0.6341, allocations: 33.93 MB / 0.6001 GB, free: 180 kB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009258/0.6434, allocations: 3.448 MB / 0.6035 GB, free: 12.58 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002502/0.6459, allocations: 1.647 MB / 0.6051 GB, free: 10.92 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01377/0.6597, allocations: 7.306 MB / 0.6122 GB, free: 3.367 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.61e-05/0.6598, allocations: 51.56 kB / 0.6123 GB, free: 3.309 MB / 462.1 MB Notification: Performance of pre-optimization done (n=151): time 8.086e-06/0.6599, allocations: 4 kB / 0.6123 GB, free: 3.305 MB / 462.1 MB Notification: Performance of matching and sorting (n=188): time 0.07185/0.7317, allocations: 19.02 MB / 0.6308 GB, free: 144 kB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001471/0.7319, allocations: 201.2 kB / 0.631 GB, free: 15.9 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007431/0.7394, allocations: 3.747 MB / 0.6347 GB, free: 12.16 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004244/0.7398, allocations: 49.7 kB / 0.6347 GB, free: 12.11 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002908/0.7428, allocations: 2.816 MB / 0.6375 GB, free: 9.297 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001317/0.7441, allocations: 0.7168 MB / 0.6382 GB, free: 8.586 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003075/0.7472, allocations: 1.169 MB / 0.6393 GB, free: 7.406 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000119/0.7473, allocations: 301.1 kB / 0.6396 GB, free: 7.109 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003923/0.7513, allocations: 2.1 MB / 0.6417 GB, free: 5.004 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007514/0.7588, allocations: 5.652 MB / 0.6472 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01257/0.7714, allocations: 8.42 MB / 0.6554 GB, free: 3.406 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001749/0.7717, allocations: 36 kB / 0.6554 GB, free: 3.371 MB / 0.4981 GB Notification: Performance of matching and sorting (n=763) (initialization): time 0.02278/0.7945, allocations: 8.698 MB / 0.6639 GB, free: 10.66 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.000233/0.7948, allocations: 56 kB / 0.664 GB, free: 10.61 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003455/0.7951, allocations: 128.4 kB / 0.6641 GB, free: 10.48 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006069/0.8012, allocations: 1.395 MB / 0.6655 GB, free: 9.086 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005106/0.8064, allocations: 1.302 MB / 0.6667 GB, free: 7.781 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01534/0.8217, allocations: 9.206 MB / 0.6757 GB, free: 14.43 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006702/0.8285, allocations: 309.7 kB / 0.676 GB, free: 14.13 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001621/0.8301, allocations: 355.9 kB / 0.6764 GB, free: 13.78 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.006089/0.8363, allocations: 1.891 MB / 0.6782 GB, free: 11.88 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001061/0.8373, allocations: 339.6 kB / 0.6785 GB, free: 11.54 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01005/0.8474, allocations: 3.78 MB / 0.6822 GB, free: 7.75 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.89e-05/0.8475, allocations: 20 kB / 0.6823 GB, free: 7.73 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.506e-05/0.8476, allocations: 8 kB / 0.6823 GB, free: 7.723 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.48e-05/0.8477, allocations: 7.969 kB / 0.6823 GB, free: 7.715 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02174/0.8694, allocations: 8.181 MB / 0.6903 GB, free: 15.51 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-05/0.8695, allocations: 8 kB / 0.6903 GB, free: 15.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001436/0.8709, allocations: 251.6 kB / 0.6905 GB, free: 15.26 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004956/0.8759, allocations: 1.179 MB / 0.6917 GB, free: 14.07 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000372/0.8763, allocations: 31.98 kB / 0.6917 GB, free: 14.04 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01384/0.8902, allocations: 8.482 MB / 0.7 GB, free: 5.426 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.8902, allocations: 0 / 0.7 GB, free: 5.426 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.251/1.141, allocations: 6.28 MB / 0.7061 GB, free: 193.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001414/1.143, allocations: 376.3 kB / 0.7065 GB, free: 193.1 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001374/1.144, allocations: 29.23 kB / 0.7065 GB, free: 193.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003129/1.147, allocations: 82.06 kB / 0.7066 GB, free: 193.1 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007625/1.148, allocations: 117.6 kB / 0.7067 GB, free: 193.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003831/1.148, allocations: 52.44 kB / 0.7067 GB, free: 193.1 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006436/1.155, allocations: 2.327 MB / 0.709 GB, free: 193 MB / 0.545 GB Notification: Performance of sort global known variables: time 6.41e-07/1.155, allocations: 0.7812 kB / 0.709 GB, free: 193 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008096/1.163, allocations: 0.9518 MB / 0.7099 GB, free: 193 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.01805/1.181, allocations: 6.985 MB / 0.7168 GB, free: 190.5 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01441/1.196, allocations: 6.134 MB / 0.7227 GB, free: 188.7 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.813e-06/1.196, allocations: 0 / 0.7227 GB, free: 188.7 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003455/1.199, allocations: 1.749 MB / 0.7244 GB, free: 187.9 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004528/1.204, allocations: 408 kB / 0.7248 GB, free: 187.8 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07796/1.282, allocations: 50.83 MB / 0.7745 GB, free: 143.1 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003685/1.285, allocations: 2.964 MB / 0.7774 GB, free: 140.2 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004087/1.289, allocations: 1.807 MB / 0.7791 GB, free: 138.3 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002017/1.291, allocations: 1.655 MB / 0.7808 GB, free: 136.7 MB / 0.545 GB Notification: Performance of SimCode: time 1.392e-06/1.291, allocations: 0 / 0.7808 GB, free: 136.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09564/1.387, allocations: 70.12 MB / 0.8492 GB, free: 66.91 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002476/1.387, allocations: 237.9 kB / 0.8495 GB, free: 66.64 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.16/5.547, allocations: 0 / 0.8495 GB, free: 66.64 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