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: translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001072/0.001072, allocations: 96.02 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001317/0.001317, allocations: 200.8 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.406/1.406, allocations: 227.2 MB / 245.9 MB, free: 12.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1997/0.1997, allocations: 45.92 MB / 344 MB, free: 12.36 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002983/0.0002984, allocations: 11.98 kB / 417.9 MB, free: 20.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1294/0.1297, allocations: 63.46 MB / 481.4 MB, free: 5.449 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.02903/0.1588, allocations: 29.79 MB / 0.4992 GB, free: 7.574 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2577/0.4165, allocations: 7.772 MB / 0.5068 GB, free: 9.984 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006743/0.4233, allocations: 147.7 kB / 0.5069 GB, free: 9.984 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005758/0.4291, allocations: 1.436 MB / 0.5083 GB, free: 9.984 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01797/0.4471, allocations: 4.342 MB / 0.5126 GB, free: 9.91 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003775/0.4509, allocations: 0.5669 MB / 0.5131 GB, free: 9.906 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.03537/0.4863, allocations: 24.88 MB / 0.5374 GB, free: 5.332 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00436/0.4907, allocations: 2.97 MB / 0.5403 GB, free: 3.145 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001894/0.4926, allocations: 0.936 MB / 0.5412 GB, free: 2.527 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002029/0.4947, allocations: 1.275 MB / 0.5425 GB, free: 1.633 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008175/0.4955, allocations: 124 kB / 0.5426 GB, free: 1.512 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002138/0.4976, allocations: 0.9241 MB / 0.5435 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001797/0.4995, allocations: 1.381 MB / 0.5448 GB, free: 15.8 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001314/0.5008, allocations: 0.7247 MB / 0.5456 GB, free: 15.55 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006159/0.507, allocations: 4.833 MB / 0.5503 GB, free: 11.34 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.507, allocations: 2.719 kB / 0.5503 GB, free: 11.34 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.507, allocations: 0 / 0.5503 GB, free: 11.34 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002838/0.5073, allocations: 0 / 0.5503 GB, free: 11.34 MB / 398.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.01446/0.5218, allocations: 3.703 MB / 0.5539 GB, free: 7.898 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.1e-05/0.5218, allocations: 12.03 kB / 0.5539 GB, free: 7.887 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08911/0.611, allocations: 8.29 MB / 0.562 GB, free: 15.98 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007516/0.6185, allocations: 2.434 MB / 0.5644 GB, free: 14.18 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000184/0.6187, allocations: 199.8 kB / 0.5646 GB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001051/0.6198, allocations: 269.5 kB / 0.5648 GB, free: 13.9 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01679/0.6366, allocations: 8.596 MB / 0.5732 GB, free: 7.055 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001437/0.6368, allocations: 45.23 kB / 0.5733 GB, free: 7.031 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003767/0.6372, allocations: 128.3 kB / 0.5734 GB, free: 6.992 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002905/0.6401, allocations: 1.734 MB / 0.5751 GB, free: 5.559 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01501/0.6551, allocations: 7.248 MB / 0.5822 GB, free: 14.57 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0483/0.7035, allocations: 34.04 MB / 0.6154 GB, free: 11.78 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008875/0.7124, allocations: 3.48 MB / 0.6188 GB, free: 8.164 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01327/0.7257, allocations: 7.378 MB / 0.626 GB, free: 0.5586 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.615e-05/0.7258, allocations: 47.56 kB / 0.626 GB, free: 0.5039 MB / 462.1 MB Notification: Performance of pre-optimization done (n=151): time 5.521e-06/0.7259, allocations: 0 / 0.626 GB, free: 0.5039 MB / 462.1 MB Notification: Performance of matching and sorting (n=188): time 0.06416/0.79, allocations: 19.64 MB / 0.6452 GB, free: 12.68 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001315/0.7902, allocations: 201.2 kB / 0.6454 GB, free: 12.44 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005652/0.7959, allocations: 3.851 MB / 0.6492 GB, free: 8.605 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004715/0.7964, allocations: 53.7 kB / 0.6492 GB, free: 8.547 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002346/0.7987, allocations: 2.82 MB / 0.652 GB, free: 5.742 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001022/0.7997, allocations: 0.713 MB / 0.6527 GB, free: 5.035 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002679/0.8, allocations: 120 kB / 0.6528 GB, free: 4.918 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000377/0.8004, allocations: 0.5477 MB / 0.6533 GB, free: 4.363 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003196/0.8036, allocations: 2.084 MB / 0.6554 GB, free: 2.273 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005596/0.8092, allocations: 5.617 MB / 0.6608 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005238/0.8145, allocations: 3.357 MB / 0.6641 GB, free: 7.539 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.843e-05/0.8146, allocations: 36 kB / 0.6642 GB, free: 7.504 MB / 0.4981 GB Notification: Performance of matching and sorting (n=763) (initialization): time 0.01919/0.8338, allocations: 8.695 MB / 0.6727 GB, free: 14.8 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 8.922e-05/0.8339, allocations: 60 kB / 0.6727 GB, free: 14.75 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001566/0.8341, allocations: 124 kB / 0.6728 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005357/0.8395, allocations: 1.453 MB / 0.6742 GB, free: 13.17 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004797/0.8443, allocations: 1.308 MB / 0.6755 GB, free: 11.86 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01409/0.8584, allocations: 8.88 MB / 0.6842 GB, free: 2.852 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004587/0.863, allocations: 302.4 kB / 0.6845 GB, free: 2.559 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007586/0.8638, allocations: 365.6 kB / 0.6848 GB, free: 2.203 MB / 0.5137 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 43} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003543/0.8674, allocations: 1.888 MB / 0.6867 GB, free: 308 kB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007909/0.8682, allocations: 335.7 kB / 0.687 GB, free: 15.96 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00858/0.8768, allocations: 3.808 MB / 0.6907 GB, free: 12.14 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.289e-05/0.8768, allocations: 20 kB / 0.6907 GB, free: 12.12 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.014e-05/0.8769, allocations: 8 kB / 0.6907 GB, free: 12.12 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.488e-05/0.8769, allocations: 7.969 kB / 0.6908 GB, free: 12.11 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01708/0.894, allocations: 8.255 MB / 0.6988 GB, free: 3.836 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.755e-05/0.894, allocations: 5.75 kB / 0.6988 GB, free: 3.832 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001318/0.8953, allocations: 255.6 kB / 0.6991 GB, free: 3.582 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004674/0.9, allocations: 1.201 MB / 0.7002 GB, free: 2.379 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002072/0.9002, allocations: 35.98 kB / 0.7003 GB, free: 2.344 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01163/0.9119, allocations: 8.178 MB / 0.7083 GB, free: 10.04 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/0.9119, allocations: 3.953 kB / 0.7083 GB, free: 10.04 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01181/0.9237, allocations: 6.393 MB / 0.7145 GB, free: 3.609 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001278/0.925, allocations: 380.7 kB / 0.7149 GB, free: 3.215 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004607/0.9255, allocations: 32 kB / 0.7149 GB, free: 3.184 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001308/0.9268, allocations: 87.89 kB / 0.715 GB, free: 3.098 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003245/0.9272, allocations: 113.1 kB / 0.7151 GB, free: 2.984 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001305/0.9273, allocations: 55.98 kB / 0.7151 GB, free: 2.93 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003697/0.931, allocations: 2.41 MB / 0.7175 GB, free: 0.5352 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.41e-07/0.931, allocations: 0 / 0.7175 GB, free: 0.5352 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.2699/1.201, allocations: 0.9748 MB / 0.7184 GB, free: 192.4 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006893/1.202, allocations: 166.4 kB / 0.7186 GB, free: 192.3 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01083/1.213, allocations: 5.2 MB / 0.7237 GB, free: 191.9 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.011e-06/1.213, allocations: 3.938 kB / 0.7237 GB, free: 191.9 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002502/1.215, allocations: 1.75 MB / 0.7254 GB, free: 191.7 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002071/1.217, allocations: 362.8 kB / 0.7257 GB, free: 191.7 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01676/1.234, allocations: 9.879 MB / 0.7354 GB, free: 187 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004052/1.238, allocations: 3.038 MB / 0.7384 GB, free: 185.8 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004316/1.242, allocations: 1.816 MB / 0.7401 GB, free: 185.7 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005664/1.243, allocations: 226.6 kB / 0.7403 GB, free: 185.7 MB / 0.545 GB Notification: Performance of SimCode: time 1.192e-06/1.243, allocations: 0 / 0.7403 GB, free: 185.7 MB / 0.545 GB Notification: Performance of Templates: time 0.05777/1.301, allocations: 35.96 MB / 0.7755 GB, free: 160.7 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses/ForceWithTwoMasses.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches