Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.0007888/0.0007888, allocations: 80.53 kB / 19.92 MB, free: 4.637 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.0007884/0.0007884, allocations: 169.9 kB / 23.21 MB, free: 1.355 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.772/0.772, allocations: 158.6 MB / 185 MB, free: 3.051 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1247/0.1247, allocations: 32.37 MB / 269.6 MB, free: 14.97 MB / 266.7 MB " [Timeout remaining time 180] 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 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 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_3_2_3_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.202e-06/1.202e-06, allocations: 0 / 406.8 MB, free: 2.234 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.121e-05/1.241e-05, allocations: 6.078 kB / 406.8 MB, free: 2.23 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.006493/0.006505, allocations: 9.166 MB / 416 MB, free: 9.02 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.004694/0.0112, allocations: 3.682 MB / 419.7 MB, free: 5.324 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006089/0.01181, allocations: 67.69 kB / 419.8 MB, free: 5.258 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001913/0.01372, allocations: 2.133 MB / 421.9 MB, free: 3.117 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002016/0.01574, allocations: 1.804 MB / 423.7 MB, free: 1.305 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008071/0.01654, allocations: 0.756 MB / 424.5 MB, free: 0.5469 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.002591/0.01913, allocations: 4.176 MB / 428.6 MB, free: 12.36 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001551/0.02069, allocations: 2.432 MB / 431.1 MB, free: 9.867 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001511/0.0222, allocations: 1.992 MB / 433.1 MB, free: 7.871 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00144/0.02364, allocations: 2.015 MB / 435.1 MB, free: 5.852 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002368/0.02387, allocations: 276 kB / 435.3 MB, free: 5.582 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001027/0.0249, allocations: 1.139 MB / 436.5 MB, free: 4.441 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008642/0.02576, allocations: 1.804 MB / 438.3 MB, free: 2.633 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007893/0.02655, allocations: 1.16 MB / 439.4 MB, free: 1.469 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003678/0.03023, allocations: 6.479 MB / 445.9 MB, free: 10.97 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.03024, allocations: 0 / 445.9 MB, free: 10.97 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.03024, allocations: 0 / 445.9 MB, free: 10.97 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.477e-05/0.03028, allocations: 0 / 445.9 MB, free: 10.97 MB / 426.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.005032/0.03531, allocations: 4.432 MB / 450.4 MB, free: 6.48 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.03535, allocations: 8.031 kB / 450.4 MB, free: 6.473 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004682/0.03582, allocations: 0.621 MB / 451 MB, free: 5.84 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03707/0.07289, allocations: 7.321 MB / 458.3 MB, free: 14.51 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003913/0.0768, allocations: 2.584 MB / 460.9 MB, free: 11.87 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.423e-05/0.0769, allocations: 197.3 kB / 461.1 MB, free: 11.68 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004234/0.07732, allocations: 272.5 kB / 461.3 MB, free: 11.41 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007654/0.08497, allocations: 8.592 MB / 469.9 MB, free: 2.168 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.386e-05/0.08504, allocations: 47.62 kB / 470 MB, free: 2.121 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002177/0.08525, allocations: 123.9 kB / 470.1 MB, free: 2 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001481/0.08674, allocations: 1.735 MB / 471.8 MB, free: 264 kB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1557/0.2424, allocations: 7.125 MB / 479 MB, free: 93.09 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01781/0.2603, allocations: 32.4 MB / 0.4994 GB, free: 70.19 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004566/0.2648, allocations: 2.897 MB / 0.5022 GB, free: 69.43 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001164/0.266, allocations: 1.517 MB / 0.5037 GB, free: 68.81 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005695/0.2717, allocations: 6.132 MB / 0.5097 GB, free: 66.11 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.37e-05/0.2717, allocations: 49.94 kB / 0.5097 GB, free: 66.05 MB / 442.7 MB Notification: Performance of pre-optimization done (n=151): time 3.346e-06/0.2717, allocations: 2.125 kB / 0.5097 GB, free: 66.05 MB / 442.7 MB Notification: Performance of matching and sorting (n=188): time 0.03031/0.302, allocations: 19.3 MB / 0.5286 GB, free: 55.66 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.58e-05/0.3021, allocations: 197.2 kB / 0.5288 GB, free: 55.43 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002883/0.305, allocations: 4.202 MB / 0.5329 GB, free: 51.26 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 9.378e-05/0.305, allocations: 53.7 kB / 0.5329 GB, free: 51.2 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007214/0.3058, allocations: 2.901 MB / 0.5358 GB, free: 48.32 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002945/0.3061, allocations: 0.7381 MB / 0.5365 GB, free: 47.59 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007574/0.3068, allocations: 1.152 MB / 0.5376 GB, free: 46.43 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 2.826e-05/0.3068, allocations: 309 kB / 0.5379 GB, free: 46.12 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001582/0.3084, allocations: 2.034 MB / 0.5399 GB, free: 44.08 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002223/0.3107, allocations: 5.628 MB / 0.5454 GB, free: 36.66 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004363/0.315, allocations: 8.288 MB / 0.5535 GB, free: 26.62 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.014e-05/0.315, allocations: 36 kB / 0.5535 GB, free: 26.59 MB / 442.7 MB Notification: Performance of matching and sorting (n=763) (initialization): time 0.008157/0.3232, allocations: 8.62 MB / 0.5619 GB, free: 17.96 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.558e-05/0.3232, allocations: 60 kB / 0.562 GB, free: 17.91 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.451e-05/0.3233, allocations: 124 kB / 0.5621 GB, free: 17.79 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002367/0.3257, allocations: 1.465 MB / 0.5635 GB, free: 16.32 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001747/0.3274, allocations: 1.291 MB / 0.5648 GB, free: 15.02 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006649/0.3341, allocations: 8.84 MB / 0.5734 GB, free: 6.074 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002117/0.3362, allocations: 347.2 kB / 0.5737 GB, free: 5.742 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002252/0.3364, allocations: 363.4 kB / 0.5741 GB, free: 5.391 MB / 442.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 (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.001551/0.338, allocations: 1.9 MB / 0.576 GB, free: 3.484 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000241/0.3382, allocations: 349.7 kB / 0.5763 GB, free: 3.141 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004137/0.3423, allocations: 3.681 MB / 0.5799 GB, free: 15.44 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.912e-05/0.3424, allocations: 20 kB / 0.5799 GB, free: 15.42 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.336e-06/0.3424, allocations: 8 kB / 0.5799 GB, free: 15.41 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.138e-05/0.3424, allocations: 15.97 kB / 0.5799 GB, free: 15.39 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009574/0.3519, allocations: 7.745 MB / 0.5875 GB, free: 7.629 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.352, allocations: 0 / 0.5875 GB, free: 7.629 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000601/0.3526, allocations: 255.6 kB / 0.5877 GB, free: 7.379 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002387/0.3549, allocations: 1.253 MB / 0.589 GB, free: 6.121 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001177/0.3551, allocations: 39.38 kB / 0.589 GB, free: 6.086 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007642/0.3627, allocations: 8.122 MB / 0.5969 GB, free: 13.86 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.3627, allocations: 0 / 0.5969 GB, free: 13.86 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006573/0.3693, allocations: 6.128 MB / 0.6029 GB, free: 7.711 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009879/0.3703, allocations: 0.5872 MB / 0.6035 GB, free: 7.121 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002298/0.3705, allocations: 31.94 kB / 0.6035 GB, free: 7.09 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007803/0.3713, allocations: 123.8 kB / 0.6036 GB, free: 6.969 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001907/0.3715, allocations: 120 kB / 0.6037 GB, free: 6.855 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.981e-05/0.3715, allocations: 47.98 kB / 0.6038 GB, free: 6.809 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002509/0.3741, allocations: 2.512 MB / 0.6062 GB, free: 4.312 MB / 474.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3741, allocations: 0 / 0.6062 GB, free: 4.312 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002818/0.3769, allocations: 1.058 MB / 0.6073 GB, free: 3.254 MB / 474.7 MB 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.006743/0.3836, allocations: 6.806 MB / 0.6139 GB, free: 12.41 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.004942/0.3886, allocations: 4.855 MB / 0.6187 GB, free: 7.57 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.3886, allocations: 0 / 0.6187 GB, free: 7.57 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001419/0.39, allocations: 1.542 MB / 0.6202 GB, free: 6.016 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001319/0.3913, allocations: 409.3 kB / 0.6206 GB, free: 5.629 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1911/0.5824, allocations: 44.55 MB / 0.6641 GB, free: 152.4 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00181/0.5842, allocations: 2.431 MB / 0.6664 GB, free: 151.8 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.002245/0.5864, allocations: 1.821 MB / 0.6682 GB, free: 151.7 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00109/0.5875, allocations: 1.665 MB / 0.6698 GB, free: 150.4 MB / 0.5105 GB Notification: Performance of SimCode: time 1.613e-06/0.5875, allocations: 0 / 0.6698 GB, free: 150.4 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07517/0.6627, allocations: 70.11 MB / 0.7383 GB, free: 103.8 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.94/10.6, allocations: 12 kB / 0.7383 GB, free: 103.8 MB / 0.5105 GB " [Timeout remaining time 649] (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --stepSize=0.00059976 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses/ForceWithTwoMasses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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.761066803708673]