Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001611/0.001611, allocations: 106.5 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001945/0.001945, allocations: 194 kB / 18.12 MB, free: 5.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.457/1.457, allocations: 222.9 MB / 241.8 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1917/0.1917, allocations: 44.18 MB / 336.1 MB, free: 2.996 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001374, allocations: 56.03 kB / 407.8 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1285/0.1299, allocations: 60.82 MB / 468.6 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.03243/0.1624, allocations: 34.84 MB / 0.4917 GB, free: 11.77 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01693/0.1793, allocations: 7.948 MB / 0.4994 GB, free: 3.789 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005641/0.185, allocations: 147.6 kB / 0.4996 GB, free: 3.645 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004453/0.1895, allocations: 2.049 MB / 0.5016 GB, free: 1.59 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2232/0.4128, allocations: 1.603 MB / 0.5031 GB, free: 10.86 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002013/0.4148, allocations: 0.6259 MB / 0.5037 GB, free: 10.86 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008829/0.4237, allocations: 5.684 MB / 0.5093 GB, free: 10.86 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004235/0.428, allocations: 2.586 MB / 0.5118 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002772/0.4308, allocations: 1.173 MB / 0.513 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003114/0.4339, allocations: 1.988 MB / 0.5149 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008547/0.4348, allocations: 186 kB / 0.5151 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002435/0.4372, allocations: 1.179 MB / 0.5162 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001643/0.4389, allocations: 1.609 MB / 0.5178 GB, free: 10.24 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00242/0.4413, allocations: 1.893 MB / 0.5197 GB, free: 9.539 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009864/0.4512, allocations: 6.109 MB / 0.5256 GB, free: 7.52 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.4512, allocations: 0 / 0.5256 GB, free: 7.52 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4512, allocations: 0 / 0.5256 GB, free: 7.52 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002117/0.4515, allocations: 0 / 0.5256 GB, free: 7.52 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.009935/0.4614, allocations: 4.345 MB / 0.5299 GB, free: 4.617 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.4615, allocations: 9.781 kB / 0.5299 GB, free: 4.617 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009541/0.4624, allocations: 0.6281 MB / 0.5305 GB, free: 4.211 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07743/0.5399, allocations: 7.028 MB / 0.5374 GB, free: 1.309 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006024/0.5459, allocations: 2.689 MB / 0.54 GB, free: 14.72 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001817/0.5461, allocations: 194 kB / 0.5402 GB, free: 14.56 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001359/0.5475, allocations: 280.7 kB / 0.5404 GB, free: 14.32 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02213/0.5697, allocations: 8.511 MB / 0.5487 GB, free: 5.363 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001534/0.5699, allocations: 40.22 kB / 0.5488 GB, free: 5.34 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005047/0.5704, allocations: 126.1 kB / 0.5489 GB, free: 5.25 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004195/0.5746, allocations: 1.733 MB / 0.5506 GB, free: 3.551 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02055/0.5952, allocations: 7.155 MB / 0.5576 GB, free: 12.55 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04352/0.6387, allocations: 33.94 MB / 0.5907 GB, free: 9.957 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008082/0.6468, allocations: 3.423 MB / 0.5941 GB, free: 6.402 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002205/0.6491, allocations: 1.65 MB / 0.5957 GB, free: 4.746 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01161/0.6607, allocations: 7.221 MB / 0.6027 GB, free: 13.31 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.305e-05/0.6608, allocations: 54.38 kB / 0.6028 GB, free: 13.25 MB / 462.1 MB Notification: Performance of pre-optimization done (n=151): time 5.791e-06/0.6608, allocations: 0 / 0.6028 GB, free: 13.25 MB / 462.1 MB Notification: Performance of matching and sorting (n=188): time 0.06367/0.7245, allocations: 19.02 MB / 0.6214 GB, free: 10.16 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001052/0.7247, allocations: 201.2 kB / 0.6215 GB, free: 9.922 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006347/0.731, allocations: 3.74 MB / 0.6252 GB, free: 6.191 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003985/0.7314, allocations: 49.7 kB / 0.6252 GB, free: 6.137 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001918/0.7334, allocations: 2.83 MB / 0.628 GB, free: 3.309 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009653/0.7343, allocations: 0.7139 MB / 0.6287 GB, free: 2.602 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001517/0.7359, allocations: 1.17 MB / 0.6299 GB, free: 1.422 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 8.979e-05/0.736, allocations: 302.7 kB / 0.6301 GB, free: 1.125 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002989/0.739, allocations: 2.095 MB / 0.6322 GB, free: 15.03 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005235/0.7442, allocations: 5.648 MB / 0.6377 GB, free: 7.668 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01029/0.7545, allocations: 8.391 MB / 0.6459 GB, free: 14.03 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001357/0.7547, allocations: 36 kB / 0.6459 GB, free: 13.99 MB / 0.4981 GB Notification: Performance of matching and sorting (n=763) (initialization): time 0.02058/0.7753, allocations: 8.685 MB / 0.6544 GB, free: 5.559 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001584/0.7755, allocations: 60.97 kB / 0.6545 GB, free: 5.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002634/0.7758, allocations: 124 kB / 0.6546 GB, free: 5.379 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005197/0.781, allocations: 1.387 MB / 0.6559 GB, free: 3.988 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004482/0.7855, allocations: 1.294 MB / 0.6572 GB, free: 2.691 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01356/0.7991, allocations: 8.574 MB / 0.6656 GB, free: 9.988 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005106/0.8042, allocations: 299.5 kB / 0.6659 GB, free: 9.695 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001373/0.8057, allocations: 356 kB / 0.6662 GB, free: 9.348 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 (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.004554/0.8102, allocations: 1.896 MB / 0.6681 GB, free: 7.438 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001075/0.8113, allocations: 331.7 kB / 0.6684 GB, free: 7.109 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01033/0.8217, allocations: 3.767 MB / 0.6721 GB, free: 3.332 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.921e-05/0.8218, allocations: 20 kB / 0.6721 GB, free: 3.312 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.913e-05/0.8218, allocations: 15.94 kB / 0.6721 GB, free: 3.297 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.348e-05/0.8219, allocations: 7.969 kB / 0.6721 GB, free: 3.289 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0226/0.8445, allocations: 8.179 MB / 0.6801 GB, free: 11.08 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.129e-05/0.8445, allocations: 7.938 kB / 0.6801 GB, free: 11.07 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001434/0.846, allocations: 243.6 kB / 0.6803 GB, free: 10.84 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004631/0.8506, allocations: 1.183 MB / 0.6815 GB, free: 9.652 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003413/0.851, allocations: 31.98 kB / 0.6815 GB, free: 9.621 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01254/0.8636, allocations: 7.84 MB / 0.6892 GB, free: 1.648 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.8636, allocations: 0 / 0.6892 GB, free: 1.648 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01254/0.8762, allocations: 6.261 MB / 0.6953 GB, free: 11.36 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001203/0.8774, allocations: 376.7 kB / 0.6956 GB, free: 10.97 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009889/0.8784, allocations: 32.06 kB / 0.6957 GB, free: 10.94 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002113/0.8805, allocations: 79.34 kB / 0.6957 GB, free: 10.86 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000502/0.8811, allocations: 113.6 kB / 0.6959 GB, free: 10.75 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002234/0.8813, allocations: 48 kB / 0.6959 GB, free: 10.7 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005426/0.8867, allocations: 2.332 MB / 0.6982 GB, free: 8.387 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.21e-07/0.8868, allocations: 0 / 0.6982 GB, free: 8.387 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007399/0.8942, allocations: 0.9648 MB / 0.6991 GB, free: 7.422 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.01376/0.908, allocations: 6.982 MB / 0.7059 GB, free: 424 kB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.2394/1.147, allocations: 5.18 MB / 0.711 GB, free: 209 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.731e-06/1.147, allocations: 0 / 0.711 GB, free: 209 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002455/1.15, allocations: 1.75 MB / 0.7127 GB, free: 208.8 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002482/1.152, allocations: 386.5 kB / 0.7131 GB, free: 208.8 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07094/1.223, allocations: 50.82 MB / 0.7627 GB, free: 166.7 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002533/1.226, allocations: 2.962 MB / 0.7656 GB, free: 163.8 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003703/1.23, allocations: 1.82 MB / 0.7674 GB, free: 162 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001551/1.231, allocations: 1.655 MB / 0.769 GB, free: 160.3 MB / 0.545 GB Notification: Performance of SimCode: time 1.673e-06/1.231, allocations: 3.609 kB / 0.769 GB, free: 160.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0842/1.315, allocations: 68.96 MB / 0.8363 GB, free: 91.78 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002594/1.316, allocations: 219.3 kB / 0.8365 GB, free: 91.53 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.984/5.3, allocations: 64 / 0.8365 GB, free: 91.53 MB / 0.545 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches