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.001522/0.001522, 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.00155/0.00155, allocations: 214.4 kB / 23.73 MB, free: 4.156 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.456/1.456, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.2111/0.2111, allocations: 44.93 MB / 358.8 MB, free: 6.152 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.002081/0.002081, allocations: 71.89 kB / 0.493 GB, free: 10.55 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2966/0.2987, allocations: 65.47 MB / 0.557 GB, free: 7.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.0115/0.3102, allocations: 9.107 MB / 0.5659 GB, free: 14.38 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.007472/0.3176, allocations: 3.683 MB / 0.5695 GB, free: 10.69 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001315/0.319, allocations: 75.62 kB / 0.5695 GB, free: 10.61 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004197/0.3232, allocations: 2.028 MB / 0.5715 GB, free: 8.578 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004289/0.3274, allocations: 1.723 MB / 0.5732 GB, free: 6.852 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001726/0.3292, allocations: 0.6979 MB / 0.5739 GB, free: 6.152 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005562/0.3347, allocations: 4.012 MB / 0.5778 GB, free: 2.133 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002992/0.3377, allocations: 2.14 MB / 0.5799 GB, free: 15.93 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002157/0.3399, allocations: 1.335 MB / 0.5812 GB, free: 14.6 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00307/0.343, allocations: 1.904 MB / 0.5831 GB, free: 12.69 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007984/0.3438, allocations: 264 kB / 0.5833 GB, free: 12.43 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00232/0.3461, allocations: 1.088 MB / 0.5844 GB, free: 11.34 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002022/0.3481, allocations: 1.71 MB / 0.586 GB, free: 9.625 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001996/0.3501, allocations: 1.456 MB / 0.5875 GB, free: 8.16 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007264/0.3574, allocations: 6.366 MB / 0.5937 GB, free: 1.77 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.704e-06/0.3574, allocations: 4 kB / 0.5937 GB, free: 1.766 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.3574, allocations: 0 / 0.5937 GB, free: 1.766 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001488/0.3575, allocations: 0 / 0.5937 GB, free: 1.766 MB / 430.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.0105/0.368, allocations: 4.367 MB / 0.5979 GB, free: 13.34 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.699e-05/0.3681, allocations: 11.97 kB / 0.598 GB, free: 13.33 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009798/0.369, allocations: 0.6288 MB / 0.5986 GB, free: 12.69 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08635/0.4554, allocations: 7.048 MB / 0.6055 GB, free: 5.633 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007175/0.4626, allocations: 2.573 MB / 0.608 GB, free: 2.996 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001855/0.4627, allocations: 191.9 kB / 0.6081 GB, free: 2.809 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008143/0.4636, allocations: 279.8 kB / 0.6084 GB, free: 2.535 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01517/0.4787, allocations: 8.6 MB / 0.6168 GB, free: 9.281 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001096/0.4788, allocations: 39.7 kB / 0.6168 GB, free: 9.242 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003572/0.4792, allocations: 127.9 kB / 0.617 GB, free: 9.117 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00294/0.4821, allocations: 1.731 MB / 0.6187 GB, free: 7.387 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01456/0.4967, allocations: 7.159 MB / 0.6257 GB, free: 228 kB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04233/0.539, allocations: 32.12 MB / 0.657 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008534/0.5476, allocations: 2.832 MB / 0.6598 GB, free: 12.25 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002245/0.5498, allocations: 1.526 MB / 0.6613 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0114/0.5612, allocations: 5.938 MB / 0.6671 GB, free: 4.734 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.125e-05/0.5613, allocations: 59.48 kB / 0.6671 GB, free: 4.668 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=151): time 4.679e-06/0.5613, allocations: 0 / 0.6671 GB, free: 4.668 MB / 0.4981 GB Notification: Performance of matching and sorting (n=188): time 0.06264/0.6239, allocations: 18.96 MB / 0.6856 GB, free: 1.648 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001344/0.624, allocations: 205.2 kB / 0.6858 GB, free: 1.406 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005901/0.6299, allocations: 3.953 MB / 0.6897 GB, free: 13.46 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0004809/0.6304, allocations: 53.64 kB / 0.6898 GB, free: 13.4 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.00242/0.6328, allocations: 2.948 MB / 0.6926 GB, free: 10.43 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008921/0.6337, allocations: 0.7481 MB / 0.6934 GB, free: 9.672 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001629/0.6354, allocations: 1.171 MB / 0.6945 GB, free: 8.488 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.000135/0.6355, allocations: 301.1 kB / 0.6948 GB, free: 8.191 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003316/0.6388, allocations: 2.112 MB / 0.6969 GB, free: 6.074 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006222/0.645, allocations: 5.706 MB / 0.7024 GB, free: 14.58 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0112/0.6562, allocations: 8.418 MB / 0.7107 GB, free: 4.41 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001365/0.6564, allocations: 36 kB / 0.7107 GB, free: 4.375 MB / 0.545 GB Notification: Performance of matching and sorting (n=763) (initialization): time 0.0189/0.6753, allocations: 8.694 MB / 0.7192 GB, free: 11.67 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.624e-05/0.6754, allocations: 56 kB / 0.7192 GB, free: 11.62 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001672/0.6755, allocations: 128 kB / 0.7194 GB, free: 11.49 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005086/0.6806, allocations: 1.388 MB / 0.7207 GB, free: 10.1 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004383/0.685, allocations: 1.298 MB / 0.722 GB, free: 8.797 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2528/0.9378, allocations: 8.996 MB / 0.7308 GB, free: 153.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004815/0.9426, allocations: 307.2 kB / 0.7311 GB, free: 153.4 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001335/0.9439, allocations: 356.3 kB / 0.7314 GB, free: 153.4 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.003993/0.9479, allocations: 1.889 MB / 0.7332 GB, free: 153.3 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009027/0.9488, allocations: 352.4 kB / 0.7336 GB, free: 153.3 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008014/0.9568, allocations: 3.752 MB / 0.7372 GB, free: 152.3 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.289e-05/0.9569, allocations: 25.56 kB / 0.7373 GB, free: 152.3 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.716e-05/0.9569, allocations: 7.531 kB / 0.7373 GB, free: 152.3 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.75e-05/0.9569, allocations: 6.891 kB / 0.7373 GB, free: 152.3 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01374/0.9706, allocations: 7.778 MB / 0.7449 GB, free: 149.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-05/0.9707, allocations: 6.75 kB / 0.7449 GB, free: 149.6 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001144/0.9718, allocations: 256.2 kB / 0.7451 GB, free: 149.6 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003917/0.9757, allocations: 1.175 MB / 0.7463 GB, free: 149.4 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001825/0.9759, allocations: 34.77 kB / 0.7463 GB, free: 149.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009771/0.9857, allocations: 8.272 MB / 0.7544 GB, free: 143.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.9857, allocations: 3.969 kB / 0.7544 GB, free: 143.6 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009085/0.9948, allocations: 6.296 MB / 0.7605 GB, free: 137.8 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008024/0.9956, allocations: 311.5 kB / 0.7608 GB, free: 137.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003683/0.9959, allocations: 31.94 kB / 0.7609 GB, free: 137.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00124/0.9972, allocations: 94.41 kB / 0.761 GB, free: 137.6 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002987/0.9975, allocations: 113.1 kB / 0.7611 GB, free: 137.4 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001149/0.9976, allocations: 51.98 kB / 0.7611 GB, free: 137.4 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002529/1, allocations: 2.324 MB / 0.7634 GB, free: 135.1 MB / 0.5606 GB Notification: Performance of sort global known variables: time 8e-08/1, allocations: 0 / 0.7634 GB, free: 135.1 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003624/1.004, allocations: 0.955 MB / 0.7643 GB, free: 134.1 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.008986/1.013, allocations: 6.99 MB / 0.7711 GB, free: 127.2 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.00602/1.019, allocations: 5.026 MB / 0.776 GB, free: 122.2 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 9.087e-06/1.019, allocations: 0 / 0.776 GB, free: 122.2 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001815/1.021, allocations: 1.622 MB / 0.7776 GB, free: 120.6 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002074/1.023, allocations: 396.7 kB / 0.778 GB, free: 120.2 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05363/1.076, allocations: 44.34 MB / 0.8213 GB, free: 70.38 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002335/1.079, allocations: 2.414 MB / 0.8237 GB, free: 67.93 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003358/1.082, allocations: 1.807 MB / 0.8254 GB, free: 66.11 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001684/1.084, allocations: 1.659 MB / 0.827 GB, free: 64.45 MB / 0.5606 GB Notification: Performance of SimCode: time 1.062e-06/1.084, allocations: 0 / 0.827 GB, free: 64.45 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1507/1.234, allocations: 67.69 MB / 0.8932 GB, free: 13.55 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.8/17.03, allocations: 6.25 kB / 0.8932 GB, free: 13.55 MB / 0.5762 GB " [Timeout remaining time 643] (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: 20.398575994186103]