Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002489/0.002495, allocations: 188.7 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.029/2.029, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001188/0.001188, allocations: 98.83 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2867/0.2867, allocations: 43.56 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004555/0.0004555, allocations: 15.98 kB / 431.4 MB, free: 20.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1239, allocations: 58.86 MB / 490.2 MB, free: 9.34 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.04777/0.1717, allocations: 29.79 MB / 0.5078 GB, free: 11.46 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.02208/0.1938, allocations: 7.758 MB / 0.5154 GB, free: 3.684 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005749/0.1997, allocations: 151.6 kB / 0.5155 GB, free: 3.535 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005248/0.2049, allocations: 1.435 MB / 0.5169 GB, free: 2.094 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.3387/0.5437, allocations: 4.337 MB / 0.5212 GB, free: 11.14 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003224/0.547, allocations: 0.5672 MB / 0.5217 GB, free: 11.14 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.03573/0.5828, allocations: 13.96 MB / 0.5354 GB, free: 10.67 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005985/0.5888, allocations: 2.971 MB / 0.5383 GB, free: 10.35 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002593/0.5915, allocations: 0.9314 MB / 0.5392 GB, free: 10.35 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002952/0.5945, allocations: 1.284 MB / 0.5404 GB, free: 10.19 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001031/0.5955, allocations: 125.3 kB / 0.5405 GB, free: 10.19 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003059/0.5986, allocations: 0.924 MB / 0.5415 GB, free: 9.992 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002391/0.6011, allocations: 1.384 MB / 0.5428 GB, free: 9.703 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0014/0.6025, allocations: 0.73 MB / 0.5435 GB, free: 9.672 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007194/0.6097, allocations: 4.846 MB / 0.5482 GB, free: 7.113 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.137e-06/0.6098, allocations: 0 / 0.5482 GB, free: 7.113 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.867e-06/0.6098, allocations: 4 kB / 0.5483 GB, free: 7.109 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002265/0.6101, allocations: 0 / 0.5483 GB, free: 7.109 MB / 362.7 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.01324/0.6233, allocations: 3.707 MB / 0.5519 GB, free: 4.652 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.438e-05/0.6234, allocations: 8.562 kB / 0.5519 GB, free: 4.645 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1706/0.7939, allocations: 8.289 MB / 0.56 GB, free: 12.75 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008894/0.8029, allocations: 2.598 MB / 0.5625 GB, free: 10.83 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002491/0.8032, allocations: 197.2 kB / 0.5627 GB, free: 10.72 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001528/0.8047, allocations: 276.4 kB / 0.563 GB, free: 10.55 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0242/0.829, allocations: 8.578 MB / 0.5713 GB, free: 3.719 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001879/0.8292, allocations: 41.91 kB / 0.5714 GB, free: 3.699 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008461/0.8301, allocations: 126.4 kB / 0.5715 GB, free: 3.66 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00528/0.8354, allocations: 1.739 MB / 0.5732 GB, free: 2.227 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02293/0.8584, allocations: 7.224 MB / 0.5803 GB, free: 13.18 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06378/0.9222, allocations: 34.06 MB / 0.6135 GB, free: 11.44 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01532/0.9376, allocations: 3.457 MB / 0.6169 GB, free: 7.848 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02019/0.9578, allocations: 7.279 MB / 0.624 GB, free: 372 kB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.596e-05/0.958, allocations: 51.56 kB / 0.6241 GB, free: 312 kB / 426.7 MB Notification: Performance of pre-optimization done (n=151): time 5.691e-06/0.958, allocations: 7.656 kB / 0.6241 GB, free: 308 kB / 426.7 MB Notification: Performance of matching and sorting (n=188): time 0.1179/1.076, allocations: 19.68 MB / 0.6433 GB, free: 12.49 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001266/1.076, allocations: 203.5 kB / 0.6435 GB, free: 12.25 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008358/1.084, allocations: 3.865 MB / 0.6472 GB, free: 8.398 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000428/1.085, allocations: 53.7 kB / 0.6473 GB, free: 8.34 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002913/1.088, allocations: 2.761 MB / 0.65 GB, free: 5.598 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00133/1.089, allocations: 0.7133 MB / 0.6507 GB, free: 4.891 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006537/1.09, allocations: 117.9 kB / 0.6508 GB, free: 4.777 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004869/1.09, allocations: 0.5547 MB / 0.6513 GB, free: 4.211 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005696/1.096, allocations: 2.077 MB / 0.6534 GB, free: 2.129 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009068/1.105, allocations: 5.608 MB / 0.6588 GB, free: 10.75 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008332/1.114, allocations: 3.339 MB / 0.6621 GB, free: 7.43 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001112/1.114, allocations: 36 kB / 0.6621 GB, free: 7.395 MB / 474.7 MB Notification: Performance of matching and sorting (n=763) (initialization): time 0.02893/1.143, allocations: 8.562 MB / 0.6705 GB, free: 14.82 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000115/1.143, allocations: 56.22 kB / 0.6706 GB, free: 14.77 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001971/1.143, allocations: 136 kB / 0.6707 GB, free: 14.64 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009686/1.153, allocations: 1.441 MB / 0.6721 GB, free: 13.2 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007828/1.161, allocations: 1.298 MB / 0.6734 GB, free: 11.89 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02319/1.184, allocations: 8.882 MB / 0.682 GB, free: 2.879 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006047/1.19, allocations: 311.5 kB / 0.6823 GB, free: 2.574 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00125/1.191, allocations: 356 kB / 0.6827 GB, free: 2.227 MB / 490.7 MB 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.005151/1.197, allocations: 1.892 MB / 0.6845 GB, free: 328 kB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009545/1.197, allocations: 331.9 kB / 0.6848 GB, free: 15.99 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01553/1.213, allocations: 3.802 MB / 0.6886 GB, free: 12.18 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.606e-05/1.213, allocations: 20.47 kB / 0.6886 GB, free: 12.16 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.202e-05/1.213, allocations: 8 kB / 0.6886 GB, free: 12.15 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-05/1.213, allocations: 17.66 kB / 0.6886 GB, free: 12.13 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02931/1.243, allocations: 8.215 MB / 0.6966 GB, free: 3.898 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.388e-05/1.243, allocations: 0 / 0.6966 GB, free: 3.898 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002525/1.245, allocations: 251.6 kB / 0.6969 GB, free: 3.652 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009143/1.254, allocations: 1.209 MB / 0.698 GB, free: 2.441 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004053/1.255, allocations: 32 kB / 0.6981 GB, free: 2.41 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02202/1.277, allocations: 8.182 MB / 0.7061 GB, free: 10.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/1.277, allocations: 0 / 0.7061 GB, free: 10.1 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02245/1.299, allocations: 6.364 MB / 0.7123 GB, free: 3.703 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002524/1.302, allocations: 0.6215 MB / 0.7129 GB, free: 3.059 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009438/1.303, allocations: 32 kB / 0.7129 GB, free: 3.027 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00292/1.306, allocations: 83.91 kB / 0.713 GB, free: 2.945 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007606/1.307, allocations: 109.1 kB / 0.7131 GB, free: 2.84 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002382/1.307, allocations: 55.94 kB / 0.7131 GB, free: 2.785 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.006766/1.314, allocations: 2.426 MB / 0.7155 GB, free: 384 kB / 0.5105 GB Notification: Performance of sort global known variables: time 6.42e-07/1.314, allocations: 4.062 kB / 0.7155 GB, free: 380 kB / 0.5105 GB Notification: Performance of remove unused functions: time 0.3321/1.646, allocations: 0.9864 MB / 0.7165 GB, free: 180.6 MB / 0.5105 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.0009056/1.647, allocations: 176.5 kB / 0.7167 GB, free: 180.5 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01265/1.66, allocations: 5.172 MB / 0.7217 GB, free: 180.1 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.114e-06/1.66, allocations: 1.062 kB / 0.7217 GB, free: 180.1 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004394/1.664, allocations: 1.744 MB / 0.7234 GB, free: 179.6 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003106/1.667, allocations: 367.9 kB / 0.7238 GB, free: 179.5 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02465/1.692, allocations: 10.28 MB / 0.7338 GB, free: 174.4 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007205/1.699, allocations: 3.047 MB / 0.7368 GB, free: 173.2 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001524/1.701, allocations: 269.8 kB / 0.737 GB, free: 173.2 MB / 0.5105 GB Notification: Performance of SimCode: time 1.243e-06/1.701, allocations: 3.938 kB / 0.737 GB, free: 173.2 MB / 0.5105 GB Notification: Performance of Templates: time 0.1257/1.826, allocations: 67.01 MB / 0.8025 GB, free: 118.4 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses/ForceWithTwoMasses.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches