Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.002006/0.002006, allocations: 115.8 kB / 20.43 MB, free: 1.457 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.002418/0.002418, allocations: 214.1 kB / 23.75 MB, free: 4.668 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.443/1.443, allocations: 230.6 MB / 257.5 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2233/0.2233, allocations: 46.93 MB / 360.9 MB, free: 4.273 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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_1_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002239/0.002239, allocations: 71.89 kB / 0.4962 GB, free: 7.91 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3118/0.3141, allocations: 66.05 MB / 0.5607 GB, free: 4.484 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.01237/0.3265, allocations: 10.42 MB / 0.5708 GB, free: 10.01 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.008238/0.3347, allocations: 3.932 MB / 0.5747 GB, free: 6.062 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001496/0.3362, allocations: 71.62 kB / 0.5747 GB, free: 5.992 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004561/0.3407, allocations: 2.114 MB / 0.5768 GB, free: 3.871 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004954/0.3457, allocations: 1.716 MB / 0.5785 GB, free: 2.148 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001934/0.3476, allocations: 0.694 MB / 0.5792 GB, free: 1.453 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006613/0.3542, allocations: 4.005 MB / 0.5831 GB, free: 13.44 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00364/0.3579, allocations: 2.155 MB / 0.5852 GB, free: 11.23 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002492/0.3604, allocations: 1.324 MB / 0.5865 GB, free: 9.902 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003376/0.3638, allocations: 2.013 MB / 0.5884 GB, free: 7.883 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009063/0.3647, allocations: 264 kB / 0.5887 GB, free: 7.625 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002707/0.3674, allocations: 1.221 MB / 0.5899 GB, free: 6.402 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002327/0.3697, allocations: 1.706 MB / 0.5916 GB, free: 4.691 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003642/0.3733, allocations: 1.961 MB / 0.5935 GB, free: 2.719 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009712/0.3831, allocations: 6.342 MB / 0.5997 GB, free: 12.35 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.044e-06/0.3831, allocations: 0 / 0.5997 GB, free: 12.35 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.514e-06/0.3831, allocations: 0 / 0.5997 GB, free: 12.35 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002448/0.3833, allocations: 0 / 0.5997 GB, free: 12.35 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.01205/0.3954, allocations: 4.366 MB / 0.6039 GB, free: 7.93 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.742e-05/0.3954, allocations: 8.031 kB / 0.6039 GB, free: 7.922 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001488/0.3969, allocations: 0.6366 MB / 0.6046 GB, free: 7.273 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08414/0.481, allocations: 7.048 MB / 0.6114 GB, free: 220 kB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006536/0.4876, allocations: 2.557 MB / 0.6139 GB, free: 13.59 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002185/0.4878, allocations: 205.2 kB / 0.6141 GB, free: 13.39 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001049/0.4888, allocations: 275.7 kB / 0.6144 GB, free: 13.12 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01583/0.5047, allocations: 8.525 MB / 0.6227 GB, free: 3.965 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001597/0.5048, allocations: 43.64 kB / 0.6228 GB, free: 3.922 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00039/0.5052, allocations: 123.9 kB / 0.6229 GB, free: 3.801 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002757/0.508, allocations: 1.739 MB / 0.6246 GB, free: 2.062 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0137/0.5217, allocations: 7.17 MB / 0.6316 GB, free: 10.89 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04354/0.5652, allocations: 33.75 MB / 0.6645 GB, free: 8.035 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008527/0.5737, allocations: 2.831 MB / 0.6673 GB, free: 5.172 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00239/0.5761, allocations: 1.518 MB / 0.6688 GB, free: 3.645 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01158/0.5877, allocations: 6.301 MB / 0.6749 GB, free: 13.3 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.597e-05/0.5877, allocations: 55.5 kB / 0.675 GB, free: 13.24 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=151): time 4.127e-06/0.5878, allocations: 0 / 0.675 GB, free: 13.24 MB / 0.5137 GB Notification: Performance of matching and sorting (n=188): time 0.06344/0.6512, allocations: 18.91 MB / 0.6935 GB, free: 10.27 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001422/0.6513, allocations: 201.2 kB / 0.6936 GB, free: 10.04 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006508/0.6578, allocations: 3.749 MB / 0.6973 GB, free: 6.297 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0003362/0.6582, allocations: 53.7 kB / 0.6974 GB, free: 6.238 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002468/0.6606, allocations: 2.933 MB / 0.7002 GB, free: 3.277 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001035/0.6617, allocations: 0.752 MB / 0.701 GB, free: 2.52 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002135/0.6638, allocations: 1.183 MB / 0.7021 GB, free: 1.324 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001268/0.6639, allocations: 305.1 kB / 0.7024 GB, free: 1.023 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003302/0.6672, allocations: 2.096 MB / 0.7045 GB, free: 14.92 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006474/0.6737, allocations: 5.66 MB / 0.71 GB, free: 7.488 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01118/0.6849, allocations: 8.422 MB / 0.7182 GB, free: 13.31 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001148/0.685, allocations: 36 kB / 0.7182 GB, free: 13.27 MB / 0.5606 GB Notification: Performance of matching and sorting (n=763) (initialization): time 0.01921/0.7042, allocations: 8.693 MB / 0.7267 GB, free: 4.57 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001727/0.7044, allocations: 60 kB / 0.7268 GB, free: 4.512 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002108/0.7046, allocations: 124 kB / 0.7269 GB, free: 4.391 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005215/0.7098, allocations: 1.384 MB / 0.7283 GB, free: 3.004 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004804/0.7146, allocations: 1.302 MB / 0.7295 GB, free: 1.699 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2564/0.971, allocations: 9.092 MB / 0.7384 GB, free: 148.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003899/0.9749, allocations: 300.5 kB / 0.7387 GB, free: 148 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006434/0.9755, allocations: 361.8 kB / 0.739 GB, free: 148 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.002329/0.9779, allocations: 1.887 MB / 0.7409 GB, free: 147.3 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004709/0.9783, allocations: 355.3 kB / 0.7412 GB, free: 147.3 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007317/0.9857, allocations: 3.752 MB / 0.7449 GB, free: 146 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.643e-05/0.9857, allocations: 19.62 kB / 0.7449 GB, free: 146 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.237e-05/0.9857, allocations: 12.59 kB / 0.7449 GB, free: 146 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.043e-05/0.9857, allocations: 11.47 kB / 0.7449 GB, free: 146 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01334/0.9991, allocations: 8.106 MB / 0.7528 GB, free: 143.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.315e-05/0.9991, allocations: 0 / 0.7528 GB, free: 143.3 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001122/1, allocations: 251.9 kB / 0.7531 GB, free: 143.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003972/1.004, allocations: 1.181 MB / 0.7542 GB, free: 142.6 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001607/1.004, allocations: 31.98 kB / 0.7543 GB, free: 142.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009559/1.014, allocations: 8.37 MB / 0.7624 GB, free: 134.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/1.014, allocations: 0 / 0.7624 GB, free: 134.2 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009146/1.023, allocations: 6.291 MB / 0.7686 GB, free: 128.1 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008397/1.024, allocations: 311.8 kB / 0.7689 GB, free: 127.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000359/1.024, allocations: 28 kB / 0.7689 GB, free: 127.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001259/1.025, allocations: 91.56 kB / 0.769 GB, free: 127.7 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002973/1.026, allocations: 116.1 kB / 0.7691 GB, free: 127.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001144/1.026, allocations: 59.92 kB / 0.7692 GB, free: 127.5 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002789/1.029, allocations: 2.322 MB / 0.7714 GB, free: 125.2 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/1.029, allocations: 0 / 0.7714 GB, free: 125.2 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004682/1.033, allocations: 0.9502 MB / 0.7724 GB, free: 124.3 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.009345/1.043, allocations: 6.988 MB / 0.7792 GB, free: 117.3 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.006329/1.049, allocations: 5.022 MB / 0.7841 GB, free: 112.3 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.601e-06/1.049, allocations: 4 kB / 0.7841 GB, free: 112.3 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001776/1.051, allocations: 1.618 MB / 0.7857 GB, free: 110.7 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002102/1.053, allocations: 415.1 kB / 0.7861 GB, free: 110.3 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05109/1.104, allocations: 44.34 MB / 0.8294 GB, free: 60.46 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002371/1.106, allocations: 2.961 MB / 0.8323 GB, free: 57.46 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003398/1.11, allocations: 1.807 MB / 0.834 GB, free: 55.65 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001772/1.112, allocations: 1.651 MB / 0.8356 GB, free: 54 MB / 0.5606 GB Notification: Performance of SimCode: time 1.062e-06/1.112, allocations: 0 / 0.8356 GB, free: 54 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1217/1.233, allocations: 72.19 MB / 0.9061 GB, free: 14.25 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 29.24/30.47, allocations: 2.75 kB / 0.9061 GB, free: 14.25 MB / 0.5919 GB " [Timeout remaining time 629] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --stepSize=0.00059976 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses.fmu > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses/ForceWithTwoMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.78765368903987]