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.001818/0.001818, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002195/0.002195, allocations: 211.8 kB / 23.73 MB, free: 4.16 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.508/1.508, allocations: 230.6 MB / 257.5 MB, free: 7.812 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.2213/0.2213, allocations: 46.97 MB / 360.9 MB, free: 4.043 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.002191/0.002191, allocations: 71.91 kB / 0.4961 GB, free: 7.715 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3228/0.325, allocations: 66.03 MB / 0.5606 GB, free: 4.23 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.01092/0.3359, allocations: 9.11 MB / 0.5695 GB, free: 11.07 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.007344/0.3432, allocations: 3.691 MB / 0.5731 GB, free: 7.375 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001095/0.3443, allocations: 75.62 kB / 0.5732 GB, free: 7.301 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003973/0.3483, allocations: 2.028 MB / 0.5752 GB, free: 5.266 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004132/0.3524, allocations: 1.716 MB / 0.5768 GB, free: 3.547 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00162/0.3541, allocations: 0.6979 MB / 0.5775 GB, free: 2.848 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005593/0.3597, allocations: 4.013 MB / 0.5814 GB, free: 14.82 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003056/0.3627, allocations: 2.144 MB / 0.5835 GB, free: 12.62 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002297/0.365, allocations: 1.328 MB / 0.5848 GB, free: 11.29 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003045/0.3681, allocations: 1.912 MB / 0.5867 GB, free: 9.375 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008741/0.3689, allocations: 264 kB / 0.5869 GB, free: 9.117 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002422/0.3714, allocations: 1.084 MB / 0.588 GB, free: 8.031 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002085/0.3734, allocations: 1.698 MB / 0.5897 GB, free: 6.328 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00255/0.376, allocations: 1.464 MB / 0.5911 GB, free: 4.855 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007523/0.3835, allocations: 6.366 MB / 0.5973 GB, free: 14.46 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.3835, allocations: 0 / 0.5973 GB, free: 14.46 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3835, allocations: 0 / 0.5973 GB, free: 14.46 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001467/0.3837, allocations: 0 / 0.5973 GB, free: 14.46 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.009975/0.3936, allocations: 4.37 MB / 0.6016 GB, free: 10.03 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.3937, allocations: 8.031 kB / 0.6016 GB, free: 10.02 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009738/0.3947, allocations: 0.6249 MB / 0.6022 GB, free: 9.387 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08682/0.4815, allocations: 7.052 MB / 0.6091 GB, free: 2.324 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006901/0.4884, allocations: 2.581 MB / 0.6116 GB, free: 15.68 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001707/0.4886, allocations: 193.2 kB / 0.6118 GB, free: 15.49 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007889/0.4893, allocations: 279.7 kB / 0.612 GB, free: 15.22 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01475/0.5041, allocations: 8.596 MB / 0.6204 GB, free: 5.969 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000122/0.5042, allocations: 47.62 kB / 0.6205 GB, free: 5.922 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003642/0.5046, allocations: 119.9 kB / 0.6206 GB, free: 5.805 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003078/0.5077, allocations: 1.739 MB / 0.6223 GB, free: 4.066 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01486/0.5225, allocations: 7.151 MB / 0.6293 GB, free: 12.91 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04285/0.5654, allocations: 32.12 MB / 0.6606 GB, free: 11.8 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008586/0.574, allocations: 2.832 MB / 0.6634 GB, free: 8.934 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002296/0.5763, allocations: 1.522 MB / 0.6649 GB, free: 7.402 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01167/0.5879, allocations: 5.942 MB / 0.6707 GB, free: 1.418 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.143e-05/0.588, allocations: 51.5 kB / 0.6708 GB, free: 1.359 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=151): time 4.97e-06/0.588, allocations: 4 kB / 0.6708 GB, free: 1.355 MB / 0.4981 GB Notification: Performance of matching and sorting (n=188): time 0.06419/0.6522, allocations: 18.97 MB / 0.6893 GB, free: 14.33 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001794/0.6523, allocations: 201.2 kB / 0.6895 GB, free: 14.09 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007351/0.6597, allocations: 3.953 MB / 0.6933 GB, free: 10.14 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0003989/0.6601, allocations: 53.7 kB / 0.6934 GB, free: 10.09 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002669/0.6628, allocations: 2.937 MB / 0.6963 GB, free: 7.121 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001178/0.6639, allocations: 0.7442 MB / 0.697 GB, free: 6.371 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002558/0.6665, allocations: 1.179 MB / 0.6981 GB, free: 5.18 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001416/0.6666, allocations: 301.1 kB / 0.6984 GB, free: 4.883 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003543/0.6702, allocations: 2.108 MB / 0.7005 GB, free: 2.77 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006417/0.6766, allocations: 5.706 MB / 0.706 GB, free: 11.28 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.011/0.6876, allocations: 8.422 MB / 0.7143 GB, free: 1.102 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001265/0.6877, allocations: 36.28 kB / 0.7143 GB, free: 1.066 MB / 0.545 GB Notification: Performance of matching and sorting (n=763) (initialization): time 0.02014/0.7079, allocations: 8.691 MB / 0.7228 GB, free: 8.367 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001964/0.7081, allocations: 56.09 kB / 0.7228 GB, free: 8.312 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002588/0.7083, allocations: 127.9 kB / 0.723 GB, free: 8.188 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005163/0.7135, allocations: 1.391 MB / 0.7243 GB, free: 6.793 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004397/0.7179, allocations: 1.298 MB / 0.7256 GB, free: 5.492 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2524/0.9703, allocations: 8.993 MB / 0.7344 GB, free: 149.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003805/0.9741, allocations: 306.4 kB / 0.7347 GB, free: 149.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005895/0.9747, allocations: 360.5 kB / 0.735 GB, free: 149.6 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.002381/0.977, allocations: 1.885 MB / 0.7369 GB, free: 148.9 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005053/0.9776, allocations: 352.6 kB / 0.7372 GB, free: 148.9 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007228/0.9848, allocations: 3.749 MB / 0.7409 GB, free: 147.6 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.035e-05/0.9848, allocations: 24.31 kB / 0.7409 GB, free: 147.6 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.624e-05/0.9848, allocations: 12.88 kB / 0.7409 GB, free: 147.6 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.336e-05/0.9849, allocations: 14.73 kB / 0.7409 GB, free: 147.6 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01442/0.9993, allocations: 7.786 MB / 0.7485 GB, free: 144.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.682e-05/0.9993, allocations: 0 / 0.7485 GB, free: 144.9 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001177/1, allocations: 251.4 kB / 0.7487 GB, free: 144.9 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004618/1.005, allocations: 1.179 MB / 0.7499 GB, free: 144.7 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003237/1.005, allocations: 37.27 kB / 0.7499 GB, free: 144.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01459/1.02, allocations: 8.272 MB / 0.758 GB, free: 137.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.323e-06/1.02, allocations: 4.031 kB / 0.758 GB, free: 137.5 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01346/1.033, allocations: 6.291 MB / 0.7642 GB, free: 131.5 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001059/1.035, allocations: 314.2 kB / 0.7645 GB, free: 131.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000843/1.035, allocations: 31.36 kB / 0.7645 GB, free: 131.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002294/1.038, allocations: 83.91 kB / 0.7646 GB, free: 131.2 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004371/1.038, allocations: 116 kB / 0.7647 GB, free: 131.1 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001982/1.038, allocations: 55.98 kB / 0.7647 GB, free: 131 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004672/1.043, allocations: 2.326 MB / 0.767 GB, free: 128.7 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/1.043, allocations: 0 / 0.767 GB, free: 128.7 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006883/1.05, allocations: 0.9497 MB / 0.7679 GB, free: 127.8 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.01352/1.063, allocations: 6.987 MB / 0.7748 GB, free: 120.8 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.006526/1.07, allocations: 5.021 MB / 0.7797 GB, free: 115.8 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.213e-06/1.07, allocations: 4 kB / 0.7797 GB, free: 115.8 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001995/1.072, allocations: 1.626 MB / 0.7812 GB, free: 114.2 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002753/1.075, allocations: 403.6 kB / 0.7816 GB, free: 113.8 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05556/1.13, allocations: 44.33 MB / 0.8249 GB, free: 63.99 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002291/1.133, allocations: 2.414 MB / 0.8273 GB, free: 61.54 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003252/1.136, allocations: 1.815 MB / 0.8291 GB, free: 59.72 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001565/1.137, allocations: 1.647 MB / 0.8307 GB, free: 58.07 MB / 0.5606 GB Notification: Performance of SimCode: time 7.11e-07/1.137, allocations: 0 / 0.8307 GB, free: 58.07 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1065/1.244, allocations: 67.69 MB / 0.8968 GB, free: 7.172 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.4/17.65, allocations: 11.86 kB / 0.8968 GB, free: 7.16 MB / 0.5762 GB " [Timeout remaining time 642] (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: 21.134972997009754]