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.001587/0.001587, allocations: 107.3 kB / 17.2 MB, free: 6.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001867/0.001867, allocations: 213.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.364/1.364, allocations: 227.4 MB / 246.3 MB, free: 10.83 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2228/0.2228, allocations: 46.1 MB / 343.6 MB, free: 11.8 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001576/0.001576, allocations: 77.31 kB / 416.8 MB, free: 20.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1405/0.1421, allocations: 62.44 MB / 479.3 MB, free: 5.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.03576/0.1779, allocations: 34.63 MB / 0.5019 GB, free: 2.961 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2632/0.4411, allocations: 7.863 MB / 0.5095 GB, free: 10.24 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008472/0.4496, allocations: 147.2 kB / 0.5097 GB, free: 10.24 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004818/0.4545, allocations: 2.052 MB / 0.5117 GB, free: 10.2 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005168/0.4597, allocations: 1.57 MB / 0.5132 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001901/0.4617, allocations: 0.6339 MB / 0.5138 GB, free: 10.08 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01007/0.4717, allocations: 5.718 MB / 0.5194 GB, free: 9.578 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004735/0.4765, allocations: 2.573 MB / 0.5219 GB, free: 8.699 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003151/0.4797, allocations: 1.168 MB / 0.5231 GB, free: 8.352 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003422/0.4832, allocations: 1.979 MB / 0.525 GB, free: 7.602 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007199/0.4839, allocations: 188.2 kB / 0.5252 GB, free: 7.602 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002563/0.4865, allocations: 1.161 MB / 0.5263 GB, free: 7.117 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0016/0.4881, allocations: 1.592 MB / 0.5279 GB, free: 6.238 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001861/0.49, allocations: 1.831 MB / 0.5297 GB, free: 4.871 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006184/0.4962, allocations: 5.878 MB / 0.5354 GB, free: 1.031 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.082e-06/0.4962, allocations: 0 / 0.5354 GB, free: 1.031 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.4962, allocations: 0 / 0.5354 GB, free: 1.031 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001868/0.4964, allocations: 2.5 kB / 0.5354 GB, free: 1.031 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.008804/0.5052, allocations: 4.204 MB / 0.5395 GB, free: 14.18 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.324e-05/0.5053, allocations: 10.75 kB / 0.5395 GB, free: 14.18 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01572/0.521, allocations: 2.432 MB / 0.5419 GB, free: 12.91 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005725/0.5268, allocations: 2.361 MB / 0.5442 GB, free: 10.52 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00014/0.5269, allocations: 203.4 kB / 0.5444 GB, free: 10.35 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008464/0.5278, allocations: 275.6 kB / 0.5447 GB, free: 10.11 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01529/0.5431, allocations: 8.583 MB / 0.553 GB, free: 1 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001113/0.5432, allocations: 35.66 kB / 0.5531 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003568/0.5436, allocations: 126.9 kB / 0.5532 GB, free: 0.875 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003053/0.5467, allocations: 1.746 MB / 0.5549 GB, free: 15.14 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01473/0.5614, allocations: 7.292 MB / 0.562 GB, free: 7.844 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0475/0.609, allocations: 34.18 MB / 0.5954 GB, free: 4.75 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01002/0.619, allocations: 3.49 MB / 0.5988 GB, free: 1.117 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002578/0.6217, allocations: 1.71 MB / 0.6005 GB, free: 15.39 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01299/0.6347, allocations: 7.516 MB / 0.6078 GB, free: 7.637 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.707e-05/0.6348, allocations: 59.5 kB / 0.6079 GB, free: 7.57 MB / 462.1 MB Notification: Performance of pre-optimization done (n=151): time 3.787e-06/0.6348, allocations: 0 / 0.6079 GB, free: 7.57 MB / 462.1 MB Notification: Performance of matching and sorting (n=188): time 0.07225/0.707, allocations: 19.6 MB / 0.627 GB, free: 3.82 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000123/0.7072, allocations: 197.2 kB / 0.6272 GB, free: 3.586 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00659/0.7138, allocations: 3.73 MB / 0.6309 GB, free: 15.86 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004527/0.7143, allocations: 49.7 kB / 0.6309 GB, free: 15.81 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002367/0.7167, allocations: 2.805 MB / 0.6336 GB, free: 13.01 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00111/0.7178, allocations: 0.7175 MB / 0.6343 GB, free: 12.3 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002475/0.7203, allocations: 1.21 MB / 0.6355 GB, free: 11.08 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001144/0.7204, allocations: 301.1 kB / 0.6358 GB, free: 10.78 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00369/0.7241, allocations: 2.21 MB / 0.638 GB, free: 8.566 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006245/0.7304, allocations: 5.766 MB / 0.6436 GB, free: 1.023 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01064/0.7411, allocations: 8.612 MB / 0.652 GB, free: 6.66 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.76e-05/0.7412, allocations: 36 kB / 0.652 GB, free: 6.625 MB / 0.4981 GB Notification: Performance of matching and sorting (n=782) (initialization): time 0.02229/0.7635, allocations: 9.185 MB / 0.661 GB, free: 13.43 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001782/0.7637, allocations: 63.98 kB / 0.6611 GB, free: 13.37 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002462/0.764, allocations: 124 kB / 0.6612 GB, free: 13.25 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006543/0.7705, allocations: 1.657 MB / 0.6628 GB, free: 11.59 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00483/0.7754, allocations: 1.322 MB / 0.6641 GB, free: 10.26 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01553/0.791, allocations: 9.257 MB / 0.6731 GB, free: 0.875 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004896/0.7959, allocations: 322 kB / 0.6734 GB, free: 0.5625 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001144/0.7971, allocations: 364 kB / 0.6738 GB, free: 212 kB / 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 (714): * Single equations (assignments): 710 * 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 {(2,43,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004222/0.8013, allocations: 1.892 MB / 0.6756 GB, free: 14.3 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009692/0.8023, allocations: 323.8 kB / 0.676 GB, free: 13.98 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01041/0.8127, allocations: 4.151 MB / 0.68 GB, free: 9.812 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.976e-05/0.8128, allocations: 20 kB / 0.68 GB, free: 9.793 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.416e-05/0.8129, allocations: 8 kB / 0.68 GB, free: 9.785 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.369e-05/0.8129, allocations: 11.97 kB / 0.68 GB, free: 9.773 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02244/0.8354, allocations: 8.552 MB / 0.6884 GB, free: 1.191 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.829e-05/0.8354, allocations: 8 kB / 0.6884 GB, free: 1.184 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001418/0.8369, allocations: 247.6 kB / 0.6886 GB, free: 0.9414 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005473/0.8424, allocations: 1.431 MB / 0.69 GB, free: 15.51 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002973/0.8427, allocations: 28 kB / 0.6901 GB, free: 15.48 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01388/0.8566, allocations: 8.542 MB / 0.6984 GB, free: 6.809 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/0.8566, allocations: 4.062 kB / 0.6984 GB, free: 6.805 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01474/0.8714, allocations: 6.742 MB / 0.705 GB, free: 40 kB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.2817/1.153, allocations: 367.3 kB / 0.7053 GB, free: 194 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00102/1.154, allocations: 28.89 kB / 0.7054 GB, free: 194 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001641/1.156, allocations: 93.23 kB / 0.7055 GB, free: 194 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004932/1.156, allocations: 110 kB / 0.7056 GB, free: 194 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001706/1.157, allocations: 51.06 kB / 0.7056 GB, free: 194 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004844/1.161, allocations: 2.321 MB / 0.7079 GB, free: 193.9 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.5e-07/1.161, allocations: 1.938 kB / 0.7079 GB, free: 193.9 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006631/1.168, allocations: 0.9821 MB / 0.7088 GB, free: 193.9 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.0004748/1.168, allocations: 155.8 kB / 0.709 GB, free: 193.8 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01001/1.179, allocations: 5.418 MB / 0.7143 GB, free: 192.4 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.628e-06/1.179, allocations: 1.5 kB / 0.7143 GB, free: 192.4 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002968/1.182, allocations: 1.811 MB / 0.716 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.002955/1.184, allocations: 370 kB / 0.7164 GB, free: 191.5 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01644/1.201, allocations: 10.36 MB / 0.7265 GB, free: 186.3 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003145/1.204, allocations: 2.962 MB / 0.7294 GB, free: 185.1 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004294/1.208, allocations: 1.812 MB / 0.7312 GB, free: 185 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000551/1.209, allocations: 227.1 kB / 0.7314 GB, free: 185 MB / 0.545 GB Notification: Performance of SimCode: time 7.92e-07/1.209, allocations: 0 / 0.7314 GB, free: 185 MB / 0.545 GB Notification: Performance of Templates: time 0.05781/1.267, allocations: 37.46 MB / 0.768 GB, free: 156.8 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches