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.001004/0.001004, allocations: 94.97 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001231/0.001231, allocations: 193 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.4/1.4, allocations: 227.7 MB / 246.4 MB, free: 11.53 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2243/0.2243, allocations: 46.19 MB / 344.8 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003136/0.0003137, allocations: 8 kB / 418.8 MB, free: 20.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1339/0.1343, allocations: 63.56 MB / 482.4 MB, free: 4.539 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.03247/0.1668, allocations: 31.3 MB / 0.5017 GB, free: 5.148 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3078/0.4746, allocations: 7.389 MB / 0.5089 GB, free: 9.953 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006937/0.4816, allocations: 148.3 kB / 0.509 GB, free: 9.953 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006594/0.4882, allocations: 1.579 MB / 0.5106 GB, free: 9.949 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01675/0.505, allocations: 4.807 MB / 0.5153 GB, free: 9.703 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003164/0.5082, allocations: 0.5879 MB / 0.5158 GB, free: 9.688 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.04133/0.5495, allocations: 32.06 MB / 0.5471 GB, free: 13.16 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006927/0.5565, allocations: 2.98 MB / 0.55 GB, free: 10.91 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003231/0.5598, allocations: 1.114 MB / 0.5511 GB, free: 9.938 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003872/0.5637, allocations: 1.787 MB / 0.5529 GB, free: 8.426 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001166/0.5649, allocations: 120 kB / 0.553 GB, free: 8.309 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003082/0.568, allocations: 0.9474 MB / 0.5539 GB, free: 7.523 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002992/0.571, allocations: 1.479 MB / 0.5554 GB, free: 6.301 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002088/0.5732, allocations: 0.7103 MB / 0.5561 GB, free: 5.906 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00767/0.5808, allocations: 4.658 MB / 0.5606 GB, free: 1.852 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.955e-06/0.5809, allocations: 4 kB / 0.5606 GB, free: 1.848 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.236e-06/0.5809, allocations: 0 / 0.5606 GB, free: 1.848 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002776/0.5812, allocations: 0 / 0.5606 GB, free: 1.848 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.01024/0.5914, allocations: 3.507 MB / 0.564 GB, free: 14.57 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.357e-05/0.5915, allocations: 8.031 kB / 0.564 GB, free: 14.56 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01457/0.6061, allocations: 2.493 MB / 0.5665 GB, free: 12.14 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007201/0.6133, allocations: 2.324 MB / 0.5687 GB, free: 10.28 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002529/0.6136, allocations: 190.6 kB / 0.5689 GB, free: 10.18 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001574/0.6152, allocations: 279.2 kB / 0.5692 GB, free: 9.996 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01825/0.6335, allocations: 8.599 MB / 0.5776 GB, free: 2.93 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001639/0.6337, allocations: 35.66 kB / 0.5776 GB, free: 2.895 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008023/0.6345, allocations: 128.3 kB / 0.5777 GB, free: 2.801 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002964/0.6375, allocations: 1.74 MB / 0.5794 GB, free: 1.074 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01598/0.6535, allocations: 7.287 MB / 0.5866 GB, free: 9.781 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04022/0.6937, allocations: 34.18 MB / 0.6199 GB, free: 6.715 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008468/0.7022, allocations: 3.541 MB / 0.6234 GB, free: 3.039 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002475/0.7048, allocations: 1.709 MB / 0.6251 GB, free: 1.32 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01181/0.7166, allocations: 7.517 MB / 0.6324 GB, free: 9.57 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.316e-05/0.7167, allocations: 47.56 kB / 0.6325 GB, free: 9.516 MB / 478.1 MB Notification: Performance of pre-optimization done (n=151): time 6.251e-06/0.7167, allocations: 4 kB / 0.6325 GB, free: 9.512 MB / 478.1 MB Notification: Performance of matching and sorting (n=188): time 0.0829/0.7996, allocations: 19.97 MB / 0.652 GB, free: 5.406 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001231/0.7998, allocations: 201.2 kB / 0.6522 GB, free: 5.164 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007029/0.8069, allocations: 3.714 MB / 0.6558 GB, free: 1.461 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003638/0.8072, allocations: 49.7 kB / 0.6558 GB, free: 1.406 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00217/0.8094, allocations: 2.794 MB / 0.6586 GB, free: 14.63 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001375/0.8108, allocations: 0.7187 MB / 0.6593 GB, free: 13.92 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005457/0.8114, allocations: 126.8 kB / 0.6594 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0005662/0.812, allocations: 0.5561 MB / 0.6599 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004017/0.816, allocations: 2.194 MB / 0.6621 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006686/0.8227, allocations: 5.758 MB / 0.6677 GB, free: 3.504 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005574/0.8283, allocations: 3.47 MB / 0.6711 GB, free: 36 kB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.672e-05/0.8284, allocations: 36 kB / 0.6711 GB, free: 0 / 0.4981 GB Notification: Performance of matching and sorting (n=782) (initialization): time 0.01857/0.847, allocations: 9.182 MB / 0.6801 GB, free: 6.812 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 9.402e-05/0.8471, allocations: 60 kB / 0.6801 GB, free: 6.754 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001559/0.8473, allocations: 124 kB / 0.6803 GB, free: 6.633 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005729/0.853, allocations: 1.702 MB / 0.6819 GB, free: 4.93 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00439/0.8574, allocations: 1.326 MB / 0.6832 GB, free: 3.602 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01508/0.8725, allocations: 9.311 MB / 0.6923 GB, free: 10.16 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005024/0.8776, allocations: 330.2 kB / 0.6926 GB, free: 9.84 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001134/0.8787, allocations: 360 kB / 0.693 GB, free: 9.488 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 (714): * Single equations (assignments): 710 * 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.004242/0.883, allocations: 1.885 MB / 0.6948 GB, free: 7.59 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007279/0.8837, allocations: 335.6 kB / 0.6951 GB, free: 7.258 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00926/0.893, allocations: 4.175 MB / 0.6992 GB, free: 3.07 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-05/0.8931, allocations: 20 kB / 0.6992 GB, free: 3.051 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.678e-05/0.8931, allocations: 15.95 kB / 0.6992 GB, free: 3.035 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-05/0.8932, allocations: 7.969 kB / 0.6992 GB, free: 3.027 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01684/0.91, allocations: 8.59 MB / 0.7076 GB, free: 10.42 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.665e-05/0.91, allocations: 4 kB / 0.7076 GB, free: 10.41 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001206/0.9113, allocations: 252.1 kB / 0.7079 GB, free: 10.17 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005092/0.9164, allocations: 1.462 MB / 0.7093 GB, free: 8.703 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001931/0.9166, allocations: 35.94 kB / 0.7093 GB, free: 8.668 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3336/1.25, allocations: 8.592 MB / 0.7177 GB, free: 192.1 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.081e-06/1.25, allocations: 1.156 kB / 0.7177 GB, free: 192.1 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01564/1.266, allocations: 6.775 MB / 0.7243 GB, free: 191.7 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001431/1.267, allocations: 386.9 kB / 0.7247 GB, free: 191.6 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004212/1.268, allocations: 26.48 kB / 0.7247 GB, free: 191.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001308/1.269, allocations: 97.66 kB / 0.7248 GB, free: 191.6 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003423/1.269, allocations: 110.1 kB / 0.7249 GB, free: 191.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001397/1.27, allocations: 53.31 kB / 0.725 GB, free: 191.6 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004668/1.274, allocations: 2.296 MB / 0.7272 GB, free: 191 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.11e-07/1.274, allocations: 6.797 kB / 0.7272 GB, free: 191 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007508/1.282, allocations: 0.9807 MB / 0.7282 GB, free: 190.8 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.0006997/1.283, allocations: 154.8 kB / 0.7283 GB, free: 190.7 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01237/1.295, allocations: 5.41 MB / 0.7336 GB, free: 188.8 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.194e-05/1.295, allocations: 1.562 kB / 0.7336 GB, free: 188.8 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003451/1.298, allocations: 1.806 MB / 0.7354 GB, free: 188.1 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003367/1.302, allocations: 378.7 kB / 0.7357 GB, free: 187.9 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01663/1.319, allocations: 10.03 MB / 0.7455 GB, free: 183.1 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002925/1.321, allocations: 2.963 MB / 0.7484 GB, free: 181.9 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004301/1.326, allocations: 1.81 MB / 0.7502 GB, free: 181.7 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006493/1.326, allocations: 224.1 kB / 0.7504 GB, free: 181.7 MB / 0.545 GB Notification: Performance of SimCode: time 1.402e-06/1.326, allocations: 0 / 0.7504 GB, free: 181.7 MB / 0.545 GB Notification: Performance of Templates: time 0.06547/1.392, allocations: 36.22 MB / 0.7858 GB, free: 149.5 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