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.001643/0.001643, allocations: 116.2 kB / 18.49 MB, free: 4.559 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.002063/0.002063, allocations: 219 kB / 21.46 MB, free: 1.605 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.423/1.423, allocations: 230.6 MB / 254.8 MB, free: 15.24 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.2413/0.2413, allocations: 46.92 MB / 357.8 MB, free: 10.34 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001918/0.001918, allocations: 67.89 kB / 0.4916 GB, free: 7.961 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.168/0.17, allocations: 65.99 MB / 0.5561 GB, free: 5.848 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.01849/0.1885, allocations: 10.4 MB / 0.5662 GB, free: 11.4 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01118/0.1996, allocations: 3.915 MB / 0.57 GB, free: 7.469 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001718/0.2014, allocations: 71.62 kB / 0.5701 GB, free: 7.398 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005485/0.2068, allocations: 2.091 MB / 0.5722 GB, free: 5.301 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006059/0.2129, allocations: 1.712 MB / 0.5738 GB, free: 3.582 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002582/0.2155, allocations: 0.6979 MB / 0.5745 GB, free: 2.883 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.008788/0.2243, allocations: 3.997 MB / 0.5784 GB, free: 14.88 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00421/0.2285, allocations: 2.223 MB / 0.5806 GB, free: 12.61 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002812/0.2313, allocations: 1.327 MB / 0.5819 GB, free: 11.27 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004394/0.2357, allocations: 1.998 MB / 0.5838 GB, free: 9.27 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008221/0.2365, allocations: 268 kB / 0.5841 GB, free: 9.008 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00334/0.2398, allocations: 1.221 MB / 0.5853 GB, free: 7.785 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002684/0.2425, allocations: 1.702 MB / 0.5869 GB, free: 6.078 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003185/0.2457, allocations: 1.961 MB / 0.5889 GB, free: 4.105 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2623/0.508, allocations: 6.335 MB / 0.595 GB, free: 13.46 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.508, allocations: 0.6562 kB / 0.595 GB, free: 13.46 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.508, allocations: 0 / 0.595 GB, free: 13.46 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001892/0.5082, allocations: 1.438 kB / 0.595 GB, free: 13.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.01148/0.5197, allocations: 4.446 MB / 0.5994 GB, free: 11.61 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.2e-05/0.5197, allocations: 8.469 kB / 0.5994 GB, free: 11.61 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001987/0.5199, allocations: 87.8 kB / 0.5995 GB, free: 11.6 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001232/0.5212, allocations: 0.6273 MB / 0.6001 GB, free: 11.53 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08757/0.6087, allocations: 7.052 MB / 0.607 GB, free: 11.19 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006433/0.6152, allocations: 2.629 MB / 0.6095 GB, free: 10.61 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000169/0.6153, allocations: 196.4 kB / 0.6097 GB, free: 10.6 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001044/0.6164, allocations: 282.3 kB / 0.61 GB, free: 10.59 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01415/0.6305, allocations: 8.525 MB / 0.6183 GB, free: 8.027 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000116/0.6307, allocations: 36.42 kB / 0.6184 GB, free: 8.023 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003863/0.631, allocations: 128.3 kB / 0.6185 GB, free: 7.969 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002638/0.6337, allocations: 1.743 MB / 0.6202 GB, free: 7.684 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01225/0.6459, allocations: 7.164 MB / 0.6272 GB, free: 4.691 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03982/0.6858, allocations: 33.86 MB / 0.6602 GB, free: 3.23 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00914/0.6949, allocations: 3.298 MB / 0.6635 GB, free: 15.79 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002239/0.6971, allocations: 1.518 MB / 0.6649 GB, free: 14.27 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01185/0.709, allocations: 7.329 MB / 0.6721 GB, free: 6.734 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.691e-05/0.709, allocations: 47.56 kB / 0.6721 GB, free: 6.68 MB / 494.1 MB Notification: Performance of pre-optimization done (n=151): time 4.539e-06/0.709, allocations: 0 / 0.6721 GB, free: 6.68 MB / 494.1 MB Notification: Performance of matching and sorting (n=188): time 0.066/0.775, allocations: 19.2 MB / 0.6909 GB, free: 3.418 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001276/0.7752, allocations: 205.7 kB / 0.6911 GB, free: 3.18 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005486/0.7806, allocations: 3.752 MB / 0.6948 GB, free: 15.44 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0003502/0.781, allocations: 49.7 kB / 0.6948 GB, free: 15.39 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002272/0.7833, allocations: 2.946 MB / 0.6977 GB, free: 12.47 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009356/0.7842, allocations: 0.7366 MB / 0.6984 GB, free: 11.75 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001718/0.7859, allocations: 1.179 MB / 0.6996 GB, free: 10.55 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001207/0.786, allocations: 301.1 kB / 0.6998 GB, free: 10.26 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003415/0.7895, allocations: 2.097 MB / 0.7019 GB, free: 8.156 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006404/0.7959, allocations: 5.662 MB / 0.7074 GB, free: 0.7812 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01066/0.8065, allocations: 8.407 MB / 0.7156 GB, free: 7.129 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.65e-05/0.8066, allocations: 36 kB / 0.7157 GB, free: 7.094 MB / 0.5294 GB Notification: Performance of matching and sorting (n=763) (initialization): time 0.01727/0.8239, allocations: 8.703 MB / 0.7242 GB, free: 14.6 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.283e-05/0.8239, allocations: 60 kB / 0.7242 GB, free: 14.54 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001453/0.8241, allocations: 125.1 kB / 0.7243 GB, free: 14.42 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005176/0.8293, allocations: 1.396 MB / 0.7257 GB, free: 13.02 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004296/0.8336, allocations: 1.29 MB / 0.727 GB, free: 11.73 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01451/0.8481, allocations: 9.218 MB / 0.736 GB, free: 2.379 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004148/0.8522, allocations: 306.8 kB / 0.7363 GB, free: 2.082 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007863/0.853, allocations: 356 kB / 0.7366 GB, free: 1.734 MB / 0.545 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.003311/0.8563, allocations: 1.89 MB / 0.7384 GB, free: 15.83 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007002/0.857, allocations: 357.6 kB / 0.7388 GB, free: 15.48 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009213/0.8662, allocations: 3.751 MB / 0.7424 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.674e-05/0.8663, allocations: 23.05 kB / 0.7425 GB, free: 11.69 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.598e-05/0.8663, allocations: 8 kB / 0.7425 GB, free: 11.68 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.232e-05/0.8663, allocations: 11.97 kB / 0.7425 GB, free: 11.67 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01753/0.8839, allocations: 8.135 MB / 0.7504 GB, free: 3.523 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-05/0.8839, allocations: 7.984 kB / 0.7504 GB, free: 3.516 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001375/0.8853, allocations: 247.6 kB / 0.7507 GB, free: 3.273 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004806/0.8901, allocations: 1.179 MB / 0.7518 GB, free: 2.09 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002243/0.8903, allocations: 31.98 kB / 0.7519 GB, free: 2.059 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01362/0.9039, allocations: 8.476 MB / 0.7601 GB, free: 9.457 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.9039, allocations: 3.938 kB / 0.7601 GB, free: 9.453 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01217/0.9161, allocations: 6.284 MB / 0.7663 GB, free: 3.145 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001005/0.9171, allocations: 397.9 kB / 0.7667 GB, free: 2.738 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000432/0.9175, allocations: 28 kB / 0.7667 GB, free: 2.711 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001382/0.9189, allocations: 79.91 kB / 0.7668 GB, free: 2.633 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000355/0.9193, allocations: 117.1 kB / 0.7669 GB, free: 2.52 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001418/0.9194, allocations: 56 kB / 0.7669 GB, free: 2.465 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.003844/0.9232, allocations: 2.328 MB / 0.7692 GB, free: 156 kB / 0.5762 GB Notification: Performance of sort global known variables: time 9e-08/0.9232, allocations: 0 / 0.7692 GB, free: 156 kB / 0.5762 GB Notification: Performance of remove unused functions: time 0.004691/0.9279, allocations: 0.9532 MB / 0.7701 GB, free: 15.2 MB / 0.5919 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.01265/0.9406, allocations: 6.978 MB / 0.7769 GB, free: 8.191 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.008963/0.9495, allocations: 5.022 MB / 0.7818 GB, free: 3.18 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.621e-06/0.9495, allocations: 0 / 0.7818 GB, free: 3.18 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.002605/0.9522, allocations: 1.625 MB / 0.7834 GB, free: 1.547 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002549/0.9547, allocations: 403.7 kB / 0.7838 GB, free: 1.16 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07723/1.032, allocations: 44.28 MB / 0.8271 GB, free: 15.34 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003692/1.036, allocations: 2.96 MB / 0.83 GB, free: 12.36 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.00439/1.04, allocations: 1.818 MB / 0.8317 GB, free: 10.53 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002732/1.043, allocations: 1.655 MB / 0.8333 GB, free: 8.875 MB / 0.6544 GB Notification: Performance of SimCode: time 1.203e-06/1.043, allocations: 0 / 0.8333 GB, free: 8.875 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3787/1.421, allocations: 67.33 MB / 0.8991 GB, free: 205.6 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.5/27.92, allocations: 18.28 kB / 0.8991 GB, free: 205.6 MB / 0.6544 GB " [Timeout remaining time 632] (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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 32.068948667962104]