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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009094/0.0009094, allocations: 87.69 kB / 20.67 MB, free: 3.883 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.000908/0.000908, allocations: 165.3 kB / 23.95 MB, free: 0.6055 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8769/0.8769, allocations: 177.1 MB / 204.3 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2253/0.2253, allocations: 32.8 MB / 293.5 MB, free: 1.203 MB / 266.7 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 0 / 439.6 MB, free: 4.23 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.634e-05/1.776e-05, allocations: 6.781 kB / 439.6 MB, free: 4.223 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.1742/0.1743, allocations: 9.105 MB / 448.7 MB, free: 41.7 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.005432/0.1797, allocations: 3.684 MB / 452.4 MB, free: 39.63 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001254/0.1809, allocations: 68.22 kB / 452.5 MB, free: 39.61 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00204/0.183, allocations: 2.142 MB / 454.6 MB, free: 38.7 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002681/0.1857, allocations: 1.767 MB / 456.4 MB, free: 37.89 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009894/0.1867, allocations: 0.7517 MB / 457.1 MB, free: 37.57 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.003313/0.19, allocations: 4.398 MB / 461.5 MB, free: 35.89 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002125/0.1921, allocations: 2.414 MB / 463.9 MB, free: 34.81 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002041/0.1941, allocations: 1.971 MB / 465.9 MB, free: 33.98 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001787/0.1959, allocations: 1.997 MB / 467.9 MB, free: 33.46 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003403/0.1963, allocations: 271.4 kB / 468.2 MB, free: 33.46 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001231/0.1975, allocations: 1.139 MB / 469.3 MB, free: 33.23 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008658/0.1984, allocations: 1.777 MB / 471.1 MB, free: 32.5 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008592/0.1992, allocations: 1.142 MB / 472.2 MB, free: 31.94 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00446/0.2037, allocations: 6.421 MB / 478.6 MB, free: 29.74 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.69e-06/0.2037, allocations: 4 kB / 478.6 MB, free: 29.73 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2037, allocations: 0 / 478.6 MB, free: 29.73 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001674/0.2039, allocations: 0 / 478.6 MB, free: 29.73 MB / 410.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.007891/0.2117, allocations: 4.394 MB / 483 MB, free: 27.27 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.588e-05/0.2118, allocations: 10.52 kB / 483.1 MB, free: 27.27 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009343/0.2127, allocations: 0.6272 MB / 483.7 MB, free: 26.95 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04006/0.2528, allocations: 7.316 MB / 491 MB, free: 26.34 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004884/0.2577, allocations: 2.399 MB / 493.4 MB, free: 25.13 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001442/0.2578, allocations: 193.3 kB / 493.6 MB, free: 25.04 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001166/0.259, allocations: 276.5 kB / 493.9 MB, free: 24.93 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01115/0.2701, allocations: 8.595 MB / 0.4907 GB, free: 19.6 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001154/0.2702, allocations: 39.98 kB / 0.4907 GB, free: 19.57 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003756/0.2706, allocations: 127 kB / 0.4908 GB, free: 19.49 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001646/0.2723, allocations: 1.738 MB / 0.4925 GB, free: 18.81 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00862/0.2809, allocations: 7.141 MB / 0.4995 GB, free: 12.14 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02616/0.307, allocations: 32.33 MB / 0.5311 GB, free: 10.86 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004956/0.312, allocations: 2.921 MB / 0.5339 GB, free: 7.898 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001431/0.3134, allocations: 1.514 MB / 0.5354 GB, free: 6.375 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007322/0.3208, allocations: 6.124 MB / 0.5414 GB, free: 228 kB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.541e-05/0.3208, allocations: 55.5 kB / 0.5414 GB, free: 164 kB / 442.7 MB Notification: Performance of pre-optimization done (n=151): time 3.447e-06/0.3208, allocations: 0 / 0.5414 GB, free: 164 kB / 442.7 MB Notification: Performance of matching and sorting (n=188): time 0.03478/0.3556, allocations: 19.18 MB / 0.5602 GB, free: 12.92 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.86e-05/0.3557, allocations: 209.1 kB / 0.5604 GB, free: 12.68 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004333/0.36, allocations: 4.133 MB / 0.5644 GB, free: 8.551 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002806/0.3603, allocations: 49.7 kB / 0.5645 GB, free: 8.496 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001387/0.3617, allocations: 2.909 MB / 0.5673 GB, free: 5.559 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006327/0.3623, allocations: 0.7364 MB / 0.568 GB, free: 4.816 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001129/0.3634, allocations: 1.16 MB / 0.5691 GB, free: 3.645 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000313/0.3637, allocations: 305.1 kB / 0.5694 GB, free: 3.344 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00206/0.3658, allocations: 2.038 MB / 0.5714 GB, free: 1.301 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003702/0.3695, allocations: 5.643 MB / 0.5769 GB, free: 9.867 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006687/0.3762, allocations: 8.296 MB / 0.585 GB, free: 15.82 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.69e-05/0.3763, allocations: 36 kB / 0.5851 GB, free: 15.78 MB / 0.4948 GB Notification: Performance of matching and sorting (n=763) (initialization): time 0.01105/0.3873, allocations: 8.632 MB / 0.5935 GB, free: 7.145 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 5.899e-05/0.3874, allocations: 59.98 kB / 0.5936 GB, free: 7.086 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.99e-05/0.3875, allocations: 129.8 kB / 0.5937 GB, free: 6.961 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002877/0.3904, allocations: 1.457 MB / 0.5951 GB, free: 5.5 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002337/0.3927, allocations: 1.298 MB / 0.5964 GB, free: 4.199 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008814/0.4015, allocations: 8.842 MB / 0.605 GB, free: 11.24 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003074/0.4046, allocations: 343.6 kB / 0.6053 GB, free: 10.9 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000705/0.4053, allocations: 360 kB / 0.6057 GB, free: 10.55 MB / 0.5105 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.002671/0.408, allocations: 1.885 MB / 0.6075 GB, free: 8.652 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006287/0.4086, allocations: 349.7 kB / 0.6079 GB, free: 8.309 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005204/0.4138, allocations: 3.692 MB / 0.6115 GB, free: 4.602 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.546e-05/0.4138, allocations: 27.94 kB / 0.6115 GB, free: 4.574 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.233e-05/0.4138, allocations: 8.5 kB / 0.6115 GB, free: 4.566 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.252e-05/0.4138, allocations: 7.969 kB / 0.6115 GB, free: 4.559 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01052/0.4244, allocations: 7.761 MB / 0.6191 GB, free: 12.73 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.588e-06/0.4244, allocations: 0.875 kB / 0.6191 GB, free: 12.73 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006613/0.425, allocations: 255.6 kB / 0.6193 GB, free: 12.48 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002424/0.4275, allocations: 1.26 MB / 0.6206 GB, free: 11.22 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001221/0.4276, allocations: 28 kB / 0.6206 GB, free: 11.19 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007921/0.4355, allocations: 8.124 MB / 0.6285 GB, free: 2.949 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.4355, allocations: 480 / 0.6285 GB, free: 2.949 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1811/0.6166, allocations: 6.145 MB / 0.6345 GB, free: 153.1 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001019/0.6176, allocations: 347.5 kB / 0.6349 GB, free: 153.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003951/0.618, allocations: 30.3 kB / 0.6349 GB, free: 153.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008829/0.6189, allocations: 124.2 kB / 0.635 GB, free: 153.1 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002648/0.6191, allocations: 115 kB / 0.6351 GB, free: 153.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.038e-05/0.6192, allocations: 45.81 kB / 0.6352 GB, free: 153.1 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002559/0.6218, allocations: 2.47 MB / 0.6376 GB, free: 152.6 MB / 0.5261 GB Notification: Performance of sort global known variables: time 3e-07/0.6218, allocations: 0 / 0.6376 GB, free: 152.6 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.003263/0.625, allocations: 1.037 MB / 0.6386 GB, free: 152.5 MB / 0.5261 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.00659/0.6316, allocations: 6.804 MB / 0.6452 GB, free: 149.7 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.005178/0.6368, allocations: 4.874 MB / 0.65 GB, free: 148 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.05e-06/0.6368, allocations: 0 / 0.65 GB, free: 148 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001434/0.6382, allocations: 1.551 MB / 0.6515 GB, free: 147.4 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001951/0.6402, allocations: 405.2 kB / 0.6519 GB, free: 147.2 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0521/0.6923, allocations: 44.35 MB / 0.6952 GB, free: 119.9 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002888/0.6952, allocations: 2.42 MB / 0.6976 GB, free: 119.2 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.002795/0.698, allocations: 1.814 MB / 0.6993 GB, free: 118.7 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001534/0.6995, allocations: 1.663 MB / 0.701 GB, free: 117.1 MB / 0.5261 GB Notification: Performance of SimCode: time 1.683e-06/0.6995, allocations: 0 / 0.701 GB, free: 117.1 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07585/0.7754, allocations: 69.48 MB / 0.7688 GB, free: 50.1 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.414/10.19, allocations: 19.27 kB / 0.7688 GB, free: 50.09 MB / 0.5261 GB " [Timeout remaining time 650] (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 --stepSize=0.00059976 --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) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.420835020020604]