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.001315/0.001315, allocations: 115.6 kB / 20.43 MB, free: 1.449 MB / 14.72 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.001529/0.001529, allocations: 213.4 kB / 23.74 MB, free: 4.656 MB / 14.72 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 1.457/1.457, allocations: 230.6 MB / 257.5 MB, free: 8.031 MB / 206.1 MB " [Timeout remaining time 178] 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.2233/0.2233, allocations: 44.92 MB / 358.8 MB, free: 6.383 MB / 286.1 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: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002552/0.002552, allocations: 71.89 kB / 0.4931 GB, free: 10.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3783/0.3808, allocations: 65.47 MB / 0.557 GB, free: 7.535 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.01362/0.3944, allocations: 10.42 MB / 0.5672 GB, free: 13.3 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.009074/0.4035, allocations: 3.936 MB / 0.5711 GB, free: 9.352 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00238/0.4059, allocations: 71.62 kB / 0.5711 GB, free: 9.281 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005019/0.4109, allocations: 2.118 MB / 0.5732 GB, free: 7.156 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004861/0.4158, allocations: 1.712 MB / 0.5749 GB, free: 5.438 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001948/0.4177, allocations: 0.694 MB / 0.5755 GB, free: 4.742 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006415/0.4241, allocations: 4.013 MB / 0.5795 GB, free: 0.7227 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003518/0.4276, allocations: 2.152 MB / 0.5816 GB, free: 14.52 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002503/0.4302, allocations: 1.331 MB / 0.5829 GB, free: 13.18 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003473/0.4336, allocations: 2.005 MB / 0.5848 GB, free: 11.17 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001012/0.4346, allocations: 264 kB / 0.5851 GB, free: 10.91 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002799/0.4374, allocations: 1.221 MB / 0.5863 GB, free: 9.688 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002341/0.4398, allocations: 1.714 MB / 0.5879 GB, free: 7.969 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003752/0.4435, allocations: 1.953 MB / 0.5898 GB, free: 6.004 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009495/0.453, allocations: 6.342 MB / 0.596 GB, free: 15.64 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.453, allocations: 0 / 0.596 GB, free: 15.64 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.453, allocations: 0 / 0.596 GB, free: 15.64 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002002/0.4532, allocations: 0 / 0.596 GB, free: 15.64 MB / 446.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.01228/0.4655, allocations: 4.366 MB / 0.6003 GB, free: 11.21 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.851e-05/0.4656, allocations: 11.97 kB / 0.6003 GB, free: 11.2 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001442/0.467, allocations: 0.6327 MB / 0.6009 GB, free: 10.56 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08329/0.5503, allocations: 7.044 MB / 0.6078 GB, free: 3.504 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006954/0.5572, allocations: 2.565 MB / 0.6103 GB, free: 0.8789 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002108/0.5575, allocations: 197.3 kB / 0.6105 GB, free: 0.6836 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001042/0.5585, allocations: 271.7 kB / 0.6108 GB, free: 428 kB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01615/0.5746, allocations: 8.525 MB / 0.6191 GB, free: 7.258 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001759/0.5748, allocations: 47.62 kB / 0.6191 GB, free: 7.211 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000702/0.5755, allocations: 127.8 kB / 0.6193 GB, free: 7.086 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003021/0.5785, allocations: 1.739 MB / 0.621 GB, free: 5.348 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01531/0.5939, allocations: 7.167 MB / 0.6279 GB, free: 14.18 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04891/0.6428, allocations: 33.75 MB / 0.6609 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008725/0.6515, allocations: 2.835 MB / 0.6637 GB, free: 8.453 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002414/0.6539, allocations: 1.514 MB / 0.6652 GB, free: 6.93 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01275/0.6667, allocations: 6.301 MB / 0.6713 GB, free: 0.5898 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.297e-05/0.6667, allocations: 55.5 kB / 0.6714 GB, free: 0.5273 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=151): time 5.931e-06/0.6667, allocations: 0 / 0.6714 GB, free: 0.5273 MB / 0.4981 GB Notification: Performance of matching and sorting (n=188): time 0.06668/0.7334, allocations: 18.91 MB / 0.6898 GB, free: 13.55 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001373/0.7336, allocations: 197.2 kB / 0.69 GB, free: 13.32 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006194/0.7397, allocations: 3.749 MB / 0.6937 GB, free: 9.582 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0003416/0.7401, allocations: 53.7 kB / 0.6937 GB, free: 9.523 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002448/0.7425, allocations: 2.937 MB / 0.6966 GB, free: 6.559 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009767/0.7435, allocations: 0.7442 MB / 0.6973 GB, free: 5.809 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002065/0.7456, allocations: 1.187 MB / 0.6985 GB, free: 4.609 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001395/0.7457, allocations: 301.1 kB / 0.6988 GB, free: 4.312 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003724/0.7494, allocations: 2.096 MB / 0.7008 GB, free: 2.211 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007054/0.7565, allocations: 5.66 MB / 0.7063 GB, free: 10.78 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01231/0.7688, allocations: 8.422 MB / 0.7146 GB, free: 0.5977 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001869/0.769, allocations: 39.94 kB / 0.7146 GB, free: 0.5586 MB / 0.545 GB Notification: Performance of matching and sorting (n=763) (initialization): time 0.01991/0.7889, allocations: 8.688 MB / 0.7231 GB, free: 7.855 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001251/0.789, allocations: 62.34 kB / 0.7232 GB, free: 7.797 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001792/0.7892, allocations: 127.9 kB / 0.7233 GB, free: 7.672 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005342/0.7945, allocations: 1.384 MB / 0.7246 GB, free: 6.285 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004638/0.7992, allocations: 1.298 MB / 0.7259 GB, free: 4.984 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2712/1.07, allocations: 9.108 MB / 0.7348 GB, free: 151.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004056/1.074, allocations: 304.6 kB / 0.7351 GB, free: 151.8 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007029/1.075, allocations: 354.5 kB / 0.7354 GB, free: 151.8 MB / 0.5606 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.002618/1.078, allocations: 1.896 MB / 0.7373 GB, free: 151.1 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005344/1.078, allocations: 351.9 kB / 0.7376 GB, free: 151.1 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007353/1.086, allocations: 3.747 MB / 0.7413 GB, free: 149.8 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.035e-05/1.086, allocations: 28.22 kB / 0.7413 GB, free: 149.8 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.249e-05/1.086, allocations: 7.625 kB / 0.7413 GB, free: 149.8 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.233e-05/1.086, allocations: 7.406 kB / 0.7413 GB, free: 149.8 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01398/1.1, allocations: 8.101 MB / 0.7492 GB, free: 147.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.165e-05/1.1, allocations: 7.719 kB / 0.7492 GB, free: 147.1 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001169/1.101, allocations: 249.5 kB / 0.7495 GB, free: 147.1 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004054/1.105, allocations: 1.179 MB / 0.7506 GB, free: 146.8 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002163/1.105, allocations: 31.44 kB / 0.7506 GB, free: 146.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01014/1.115, allocations: 8.374 MB / 0.7588 GB, free: 140.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/1.115, allocations: 0 / 0.7588 GB, free: 140.1 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01004/1.125, allocations: 6.291 MB / 0.765 GB, free: 134 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009261/1.126, allocations: 313.8 kB / 0.7653 GB, free: 133.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008198/1.127, allocations: 28 kB / 0.7653 GB, free: 133.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001586/1.129, allocations: 83.81 kB / 0.7654 GB, free: 133.6 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003737/1.129, allocations: 116.4 kB / 0.7655 GB, free: 133.5 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000147/1.129, allocations: 55.98 kB / 0.7655 GB, free: 133.4 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003088/1.132, allocations: 2.328 MB / 0.7678 GB, free: 131.1 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.01e-07/1.132, allocations: 0 / 0.7678 GB, free: 131.1 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004681/1.137, allocations: 0.9471 MB / 0.7687 GB, free: 130.2 MB / 0.5606 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.009713/1.147, allocations: 6.989 MB / 0.7756 GB, free: 123.2 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.006472/1.153, allocations: 5.025 MB / 0.7805 GB, free: 118.2 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.472e-06/1.153, allocations: 4 kB / 0.7805 GB, free: 118.2 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001974/1.155, allocations: 1.619 MB / 0.7821 GB, free: 116.6 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002239/1.157, allocations: 408.8 kB / 0.7824 GB, free: 116.2 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05406/1.211, allocations: 44.34 MB / 0.8257 GB, free: 66.4 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002593/1.214, allocations: 2.961 MB / 0.8286 GB, free: 63.41 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003486/1.217, allocations: 1.815 MB / 0.8304 GB, free: 61.58 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001696/1.219, allocations: 1.647 MB / 0.832 GB, free: 59.93 MB / 0.5606 GB Notification: Performance of SimCode: time 1.212e-06/1.219, allocations: 0 / 0.832 GB, free: 59.93 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1182/1.337, allocations: 72.19 MB / 0.9025 GB, free: 4.195 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 28.74/30.07, allocations: 7.25 kB / 0.9025 GB, free: 4.191 MB / 0.5762 GB " [Timeout remaining time 630] (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/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 33.52365285111591]