Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001565/0.001565, allocations: 118.2 kB / 18.49 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001663/0.001663, allocations: 218.3 kB / 21.46 MB, free: 1.613 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.428/1.428, allocations: 230.4 MB / 254.7 MB, free: 15.17 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2193/0.2193, allocations: 46.91 MB / 357.7 MB, free: 10.2 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002151/0.002151, allocations: 79.88 kB / 0.4917 GB, free: 7.691 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.1229, allocations: 66.04 MB / 0.5562 GB, free: 5.523 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.01209/0.135, allocations: 10.4 MB / 0.5663 GB, free: 11.07 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.008552/0.1435, allocations: 3.899 MB / 0.5701 GB, free: 7.152 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001751/0.1453, allocations: 79.62 kB / 0.5702 GB, free: 7.074 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004314/0.1496, allocations: 2.094 MB / 0.5722 GB, free: 4.973 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004501/0.1541, allocations: 1.707 MB / 0.5739 GB, free: 3.262 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001668/0.1558, allocations: 0.7018 MB / 0.5746 GB, free: 2.559 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.006088/0.1618, allocations: 3.998 MB / 0.5785 GB, free: 14.55 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002957/0.1648, allocations: 2.219 MB / 0.5807 GB, free: 12.29 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002083/0.1669, allocations: 1.32 MB / 0.582 GB, free: 10.96 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00293/0.1698, allocations: 2.005 MB / 0.5839 GB, free: 8.949 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006287/0.1704, allocations: 268 kB / 0.5842 GB, free: 8.688 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002554/0.173, allocations: 1.221 MB / 0.5854 GB, free: 7.465 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001875/0.1749, allocations: 1.702 MB / 0.587 GB, free: 5.758 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002285/0.1772, allocations: 1.953 MB / 0.5889 GB, free: 3.793 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2761/0.4533, allocations: 6.34 MB / 0.5951 GB, free: 13.36 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.616e-06/0.4533, allocations: 5.344 kB / 0.5951 GB, free: 13.36 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.4533, allocations: 0 / 0.5951 GB, free: 13.36 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002116/0.4535, allocations: 1.094 kB / 0.5951 GB, free: 13.36 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.4656, allocations: 4.447 MB / 0.5995 GB, free: 11.5 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.486e-05/0.4656, allocations: 8.969 kB / 0.5995 GB, free: 11.5 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001995/0.4658, allocations: 91.17 kB / 0.5996 GB, free: 11.49 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001296/0.4671, allocations: 0.6247 MB / 0.6002 GB, free: 11.42 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08688/0.554, allocations: 7.054 MB / 0.6071 GB, free: 11.08 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00689/0.5609, allocations: 2.631 MB / 0.6096 GB, free: 10.5 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001658/0.5611, allocations: 194.9 kB / 0.6098 GB, free: 10.49 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009845/0.562, allocations: 273.4 kB / 0.6101 GB, free: 10.48 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01458/0.5766, allocations: 8.531 MB / 0.6184 GB, free: 8.023 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001136/0.5767, allocations: 36.08 kB / 0.6184 GB, free: 8.02 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004008/0.5771, allocations: 134.9 kB / 0.6186 GB, free: 7.965 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002502/0.5796, allocations: 1.729 MB / 0.6203 GB, free: 7.684 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01142/0.591, allocations: 7.173 MB / 0.6273 GB, free: 4.582 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04009/0.6311, allocations: 33.86 MB / 0.6603 GB, free: 3.031 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009239/0.6404, allocations: 3.292 MB / 0.6636 GB, free: 15.6 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002391/0.6428, allocations: 1.519 MB / 0.665 GB, free: 14.07 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01236/0.6551, allocations: 7.319 MB / 0.6722 GB, free: 6.547 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.681e-05/0.6552, allocations: 55.55 kB / 0.6722 GB, free: 6.484 MB / 494.1 MB Notification: Performance of pre-optimization done (n=151): time 4.138e-06/0.6552, allocations: 0 / 0.6722 GB, free: 6.484 MB / 494.1 MB Notification: Performance of matching and sorting (n=188): time 0.06433/0.7195, allocations: 19.21 MB / 0.691 GB, free: 3.223 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001344/0.7197, allocations: 197.2 kB / 0.6912 GB, free: 2.988 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005826/0.7255, allocations: 3.751 MB / 0.6948 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.000354/0.7258, allocations: 49.7 kB / 0.6949 GB, free: 15.2 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002396/0.7282, allocations: 2.938 MB / 0.6978 GB, free: 12.29 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009581/0.7292, allocations: 0.7442 MB / 0.6985 GB, free: 11.55 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001828/0.731, allocations: 1.179 MB / 0.6996 GB, free: 10.37 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001345/0.7311, allocations: 309.5 kB / 0.6999 GB, free: 10.07 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003407/0.7346, allocations: 2.096 MB / 0.702 GB, free: 7.965 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006482/0.741, allocations: 5.654 MB / 0.7075 GB, free: 0.5938 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01124/0.7523, allocations: 8.414 MB / 0.7157 GB, free: 6.938 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001004/0.7524, allocations: 36 kB / 0.7158 GB, free: 6.902 MB / 0.5294 GB Notification: Performance of matching and sorting (n=763) (initialization): time 0.01944/0.7718, allocations: 8.706 MB / 0.7243 GB, free: 14.41 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.608e-05/0.7719, allocations: 56 kB / 0.7243 GB, free: 14.36 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001637/0.7721, allocations: 128 kB / 0.7244 GB, free: 14.23 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005148/0.7772, allocations: 1.388 MB / 0.7258 GB, free: 12.84 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004338/0.7816, allocations: 1.298 MB / 0.7271 GB, free: 11.54 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01476/0.7963, allocations: 9.21 MB / 0.736 GB, free: 2.195 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004511/0.8008, allocations: 303.6 kB / 0.7363 GB, free: 1.898 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007999/0.8016, allocations: 360 kB / 0.7367 GB, free: 1.547 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.003524/0.8052, allocations: 1.891 MB / 0.7385 GB, free: 15.65 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006991/0.8059, allocations: 357.6 kB / 0.7389 GB, free: 15.3 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009218/0.8151, allocations: 3.743 MB / 0.7425 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.157e-05/0.8151, allocations: 23.98 kB / 0.7425 GB, free: 11.51 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.551e-05/0.8151, allocations: 12 kB / 0.7426 GB, free: 11.5 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.113e-05/0.8152, allocations: 15.95 kB / 0.7426 GB, free: 11.48 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01802/0.8332, allocations: 8.132 MB / 0.7505 GB, free: 3.344 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.927e-05/0.8332, allocations: 4 kB / 0.7505 GB, free: 3.34 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001371/0.8346, allocations: 255.6 kB / 0.7508 GB, free: 3.09 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004807/0.8394, allocations: 1.171 MB / 0.7519 GB, free: 1.914 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002477/0.8396, allocations: 28 kB / 0.7519 GB, free: 1.887 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01387/0.8535, allocations: 8.486 MB / 0.7602 GB, free: 9.277 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.8535, allocations: 0 / 0.7602 GB, free: 9.277 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01262/0.8661, allocations: 6.28 MB / 0.7664 GB, free: 2.973 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009859/0.8671, allocations: 390.7 kB / 0.7667 GB, free: 2.57 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005693/0.8677, allocations: 35.05 kB / 0.7668 GB, free: 2.539 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001543/0.8692, allocations: 83.89 kB / 0.7668 GB, free: 2.457 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003706/0.8696, allocations: 117 kB / 0.767 GB, free: 2.344 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001469/0.8698, allocations: 55.98 kB / 0.767 GB, free: 2.289 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.003929/0.8737, allocations: 2.328 MB / 0.7693 GB, free: 15.98 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8737, allocations: 0 / 0.7693 GB, free: 15.98 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.004663/0.8784, allocations: 0.9491 MB / 0.7702 GB, free: 15.03 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.891, allocations: 6.987 MB / 0.777 GB, free: 8.008 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.008849/0.8998, allocations: 5.024 MB / 0.7819 GB, free: 3 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.731e-06/0.8999, allocations: 0 / 0.7819 GB, free: 3 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.00274/0.9026, allocations: 1.628 MB / 0.7835 GB, free: 1.363 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002662/0.9053, allocations: 393.8 kB / 0.7839 GB, free: 0.9844 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0805/0.9858, allocations: 44.29 MB / 0.8271 GB, free: 15.16 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004057/0.9898, allocations: 2.961 MB / 0.83 GB, free: 12.17 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.004235/0.994, allocations: 1.816 MB / 0.8318 GB, free: 10.34 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002392/0.9964, allocations: 1.647 MB / 0.8334 GB, free: 8.695 MB / 0.6544 GB Notification: Performance of SimCode: time 1.403e-06/0.9964, allocations: 0 / 0.8334 GB, free: 8.695 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3476/1.344, allocations: 67.33 MB / 0.8992 GB, free: 205.4 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.54/26.88, allocations: 16.89 kB / 0.8992 GB, free: 205.4 MB / 0.6544 GB " [Timeout remaining time 633] (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --stepSize=0.00059976 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_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_trunk_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: 30.993524724966846]