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.001327/0.001327, allocations: 109.1 kB / 21.22 MB, free: 0.6484 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.001464/0.001464, allocations: 208.7 kB / 24.51 MB, free: 3.941 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.371/1.371, allocations: 230.5 MB / 258.2 MB, free: 7.82 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.2178/0.2178, allocations: 46.95 MB / 361.6 MB, free: 4.055 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.002173/0.002173, allocations: 79.86 kB / 0.4969 GB, free: 7.605 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2872/0.2894, allocations: 66.08 MB / 0.5614 GB, free: 4.062 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.01175/0.3011, allocations: 9.041 MB / 0.5703 GB, free: 10.98 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.008302/0.3094, allocations: 3.689 MB / 0.5739 GB, free: 7.277 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001353/0.3108, allocations: 71.69 kB / 0.5739 GB, free: 7.207 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003933/0.3147, allocations: 2.021 MB / 0.5759 GB, free: 5.18 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004497/0.3192, allocations: 1.716 MB / 0.5776 GB, free: 3.457 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00175/0.3209, allocations: 0.7095 MB / 0.5783 GB, free: 2.746 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006127/0.3271, allocations: 4.005 MB / 0.5822 GB, free: 14.73 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003203/0.3303, allocations: 2.155 MB / 0.5843 GB, free: 12.52 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002362/0.3326, allocations: 1.324 MB / 0.5856 GB, free: 11.2 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003066/0.3357, allocations: 2.005 MB / 0.5876 GB, free: 9.184 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007533/0.3364, allocations: 268 kB / 0.5878 GB, free: 8.922 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002475/0.3389, allocations: 1.096 MB / 0.5889 GB, free: 7.824 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001881/0.3408, allocations: 1.71 MB / 0.5906 GB, free: 6.109 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001786/0.3426, allocations: 1.456 MB / 0.592 GB, free: 4.645 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00716/0.3498, allocations: 6.37 MB / 0.5982 GB, free: 14.25 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.3498, allocations: 0 / 0.5982 GB, free: 14.25 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.3498, allocations: 0 / 0.5982 GB, free: 14.25 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001529/0.3499, allocations: 0 / 0.5982 GB, free: 14.25 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.01129/0.3612, allocations: 4.366 MB / 0.6025 GB, free: 9.824 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.689e-05/0.3613, allocations: 8.031 kB / 0.6025 GB, free: 9.816 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001469/0.3614, allocations: 89.23 kB / 0.6025 GB, free: 9.727 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00114/0.3625, allocations: 0.6288 MB / 0.6032 GB, free: 9.086 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07448/0.437, allocations: 7.052 MB / 0.61 GB, free: 2.023 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006498/0.4435, allocations: 2.569 MB / 0.6126 GB, free: 15.39 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001846/0.4437, allocations: 197 kB / 0.6127 GB, free: 15.2 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008801/0.4446, allocations: 275.8 kB / 0.613 GB, free: 14.93 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01409/0.4587, allocations: 8.596 MB / 0.6214 GB, free: 5.68 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.889e-05/0.4588, allocations: 51.56 kB / 0.6215 GB, free: 5.629 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003315/0.4591, allocations: 127.9 kB / 0.6216 GB, free: 5.504 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002799/0.4619, allocations: 1.731 MB / 0.6233 GB, free: 3.773 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01361/0.4755, allocations: 7.17 MB / 0.6303 GB, free: 12.6 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04145/0.517, allocations: 32.13 MB / 0.6616 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008315/0.5253, allocations: 2.828 MB / 0.6644 GB, free: 8.629 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002424/0.5277, allocations: 1.518 MB / 0.6659 GB, free: 7.098 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01066/0.5384, allocations: 5.95 MB / 0.6717 GB, free: 1.105 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.868e-05/0.5384, allocations: 47.56 kB / 0.6717 GB, free: 1.051 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=151): time 4.378e-06/0.5384, allocations: 0 / 0.6717 GB, free: 1.051 MB / 0.4981 GB Notification: Performance of matching and sorting (n=188): time 0.05994/0.5984, allocations: 18.98 MB / 0.6903 GB, free: 14.01 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001265/0.5985, allocations: 201.2 kB / 0.6905 GB, free: 13.77 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005143/0.6036, allocations: 3.749 MB / 0.6941 GB, free: 10.03 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0002865/0.6039, allocations: 53.7 kB / 0.6942 GB, free: 9.973 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002148/0.6061, allocations: 2.937 MB / 0.6971 GB, free: 7.008 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007882/0.6068, allocations: 0.7404 MB / 0.6978 GB, free: 6.262 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001501/0.6084, allocations: 1.175 MB / 0.6989 GB, free: 5.074 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001176/0.6085, allocations: 305.1 kB / 0.6992 GB, free: 4.773 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003043/0.6115, allocations: 2.104 MB / 0.7013 GB, free: 2.664 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005867/0.6174, allocations: 5.71 MB / 0.7068 GB, free: 11.17 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009891/0.6273, allocations: 8.414 MB / 0.7151 GB, free: 0.9961 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.324e-05/0.6274, allocations: 36 kB / 0.7151 GB, free: 0.9609 MB / 0.545 GB Notification: Performance of matching and sorting (n=763) (initialization): time 0.01662/0.644, allocations: 8.699 MB / 0.7236 GB, free: 8.246 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.27e-05/0.6441, allocations: 60 kB / 0.7236 GB, free: 8.188 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001306/0.6442, allocations: 127.9 kB / 0.7238 GB, free: 8.062 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004894/0.6491, allocations: 1.38 MB / 0.7251 GB, free: 6.684 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003904/0.653, allocations: 1.302 MB / 0.7264 GB, free: 5.379 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2384/0.8914, allocations: 8.994 MB / 0.7352 GB, free: 150.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003671/0.8951, allocations: 303.9 kB / 0.7355 GB, free: 150.5 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000548/0.8956, allocations: 357.6 kB / 0.7358 GB, free: 150.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.002172/0.8978, allocations: 1.897 MB / 0.7377 GB, free: 149.7 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004368/0.8982, allocations: 347.9 kB / 0.738 GB, free: 149.7 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006837/0.905, allocations: 3.754 MB / 0.7417 GB, free: 148.5 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.724e-05/0.9051, allocations: 23.06 kB / 0.7417 GB, free: 148.5 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.173e-05/0.9051, allocations: 10.47 kB / 0.7417 GB, free: 148.5 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.845e-05/0.9051, allocations: 7.828 kB / 0.7417 GB, free: 148.5 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01276/0.9179, allocations: 7.776 MB / 0.7493 GB, free: 145.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.035e-05/0.9179, allocations: 6.5 kB / 0.7493 GB, free: 145.8 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00111/0.919, allocations: 255.6 kB / 0.7495 GB, free: 145.8 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004046/0.923, allocations: 1.174 MB / 0.7507 GB, free: 145.3 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001596/0.9232, allocations: 39.77 kB / 0.7507 GB, free: 145.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009101/0.9323, allocations: 8.281 MB / 0.7588 GB, free: 137.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.9323, allocations: 0 / 0.7588 GB, free: 137.5 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008817/0.9411, allocations: 6.292 MB / 0.765 GB, free: 131.5 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006895/0.9418, allocations: 322.9 kB / 0.7653 GB, free: 131.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003889/0.9422, allocations: 25.64 kB / 0.7653 GB, free: 131.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001254/0.9434, allocations: 79.91 kB / 0.7654 GB, free: 131.1 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002866/0.9437, allocations: 121.1 kB / 0.7655 GB, free: 131 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001186/0.9438, allocations: 55.42 kB / 0.7655 GB, free: 130.9 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002329/0.9462, allocations: 2.324 MB / 0.7678 GB, free: 128.6 MB / 0.5606 GB Notification: Performance of sort global known variables: time 9e-08/0.9462, allocations: 0 / 0.7678 GB, free: 128.6 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003482/0.9497, allocations: 0.952 MB / 0.7687 GB, free: 127.7 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.008909/0.9586, allocations: 6.981 MB / 0.7755 GB, free: 120.7 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.005901/0.9645, allocations: 5.019 MB / 0.7804 GB, free: 115.7 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.9645, allocations: 5.203 kB / 0.7805 GB, free: 115.7 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001785/0.9663, allocations: 1.631 MB / 0.782 GB, free: 114.1 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002139/0.9684, allocations: 406.5 kB / 0.7824 GB, free: 113.7 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04574/1.014, allocations: 44.32 MB / 0.8257 GB, free: 63.91 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002136/1.016, allocations: 2.425 MB / 0.8281 GB, free: 61.46 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003095/1.019, allocations: 1.803 MB / 0.8298 GB, free: 59.64 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001459/1.021, allocations: 1.647 MB / 0.8315 GB, free: 58 MB / 0.5606 GB Notification: Performance of SimCode: time 7.41e-07/1.021, allocations: 4 kB / 0.8315 GB, free: 57.99 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1007/1.122, allocations: 69.94 MB / 0.8998 GB, free: 4.723 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 28.59/29.71, allocations: 13.86 kB / 0.8998 GB, free: 4.715 MB / 0.5762 GB " [Timeout remaining time 630] (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: 33.5508561671013]