Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.PlanarLoopWithMove.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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.PlanarLoopWithMove,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_PlanarLoopWithMove",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.PlanarLoopWithMove,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_PlanarLoopWithMove",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001562/0.001562, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001846/0.001846, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.433/1.433, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2182/0.2182, allocations: 46.1 MB / 344.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001543/0.001543, allocations: 76.12 kB / 417.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1433/0.1448, allocations: 62.45 MB / 480.1 MB, free: 5.203 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.PlanarLoopWithMove): time 0.01414/0.159, allocations: 11.97 MB / 492.1 MB, free: 9.176 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01189/0.171, allocations: 4.743 MB / 496.8 MB, free: 4.418 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00261/0.1736, allocations: 79.75 kB / 496.9 MB, free: 4.34 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006202/0.1799, allocations: 2.986 MB / 499.9 MB, free: 1.344 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006773/0.1867, allocations: 1.969 MB / 0.4901 GB, free: 15.37 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002593/0.1893, allocations: 0.8459 MB / 0.4909 GB, free: 14.52 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007482/0.1968, allocations: 4.093 MB / 0.4949 GB, free: 10.42 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005122/0.202, allocations: 3.305 MB / 0.4982 GB, free: 7.066 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004241/0.2063, allocations: 1.752 MB / 0.4999 GB, free: 5.309 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004/0.2103, allocations: 2.161 MB / 0.502 GB, free: 3.141 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001409/0.2118, allocations: 315.9 kB / 0.5023 GB, free: 2.832 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003777/0.2155, allocations: 1.19 MB / 0.5034 GB, free: 1.641 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2682/0.4838, allocations: 1.935 MB / 0.5053 GB, free: 16.84 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004778/0.4886, allocations: 2.275 MB / 0.5075 GB, free: 16.27 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01205/0.5007, allocations: 6.885 MB / 0.5143 GB, free: 15.29 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.032e-05/0.5008, allocations: 1.188 kB / 0.5143 GB, free: 15.29 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.5008, allocations: 3.469 kB / 0.5143 GB, free: 15.29 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000294/0.5011, allocations: 0 / 0.5143 GB, free: 15.29 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1597 * Number of variables: 1597 Notification: Performance of Generate backend data structure: time 0.01941/0.5205, allocations: 5.331 MB / 0.5195 GB, free: 13.18 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.768e-05/0.5206, allocations: 9.188 kB / 0.5195 GB, free: 13.18 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002472/0.5231, allocations: 0.7554 MB / 0.5202 GB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008715/0.5318, allocations: 1.88 MB / 0.5221 GB, free: 12.8 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008886/0.5408, allocations: 2.709 MB / 0.5247 GB, free: 12.02 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002717/0.5411, allocations: 238.1 kB / 0.5249 GB, free: 11.95 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001989/0.5431, allocations: 316.2 kB / 0.5252 GB, free: 11.87 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02269/0.5658, allocations: 11.19 MB / 0.5362 GB, free: 6.547 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001585/0.566, allocations: 45.62 kB / 0.5362 GB, free: 6.543 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006653/0.5667, allocations: 157.9 kB / 0.5364 GB, free: 6.477 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0039/0.5706, allocations: 2.298 MB / 0.5386 GB, free: 5.605 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02/0.5906, allocations: 9.866 MB / 0.5482 GB, free: 14.93 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06579/0.6564, allocations: 44.31 MB / 0.5915 GB, free: 1.992 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01433/0.6708, allocations: 5.836 MB / 0.5972 GB, free: 12.03 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004722/0.6756, allocations: 3.233 MB / 0.6004 GB, free: 8.793 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01792/0.6935, allocations: 9.36 MB / 0.6095 GB, free: 15.17 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.011/0.7046, allocations: 3.372 MB / 0.6128 GB, free: 11.77 MB / 462.1 MB Notification: Performance of pre-optimization done (n=211): time 7.714e-06/0.7046, allocations: 4 kB / 0.6128 GB, free: 11.77 MB / 462.1 MB Notification: Performance of matching and sorting (n=285): time 0.1289/0.8336, allocations: 33.39 MB / 0.6454 GB, free: 10.47 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001569/0.8338, allocations: 158.5 kB / 0.6456 GB, free: 10.28 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01124/0.8451, allocations: 4.198 MB / 0.6497 GB, free: 6.051 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001175/0.8463, allocations: 73.7 kB / 0.6497 GB, free: 5.973 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004367/0.8507, allocations: 3.245 MB / 0.6529 GB, free: 2.727 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002232/0.8529, allocations: 1.042 MB / 0.6539 GB, free: 1.691 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004631/0.8576, allocations: 1.34 MB / 0.6552 GB, free: 352 kB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001137/0.8577, allocations: 301.1 kB / 0.6555 GB, free: 48 kB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005495/0.8632, allocations: 3.374 MB / 0.6588 GB, free: 12.67 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008374/0.8716, allocations: 6.972 MB / 0.6656 GB, free: 3.996 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0154/0.8871, allocations: 11.18 MB / 0.6765 GB, free: 7.586 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001248/0.8872, allocations: 39.84 kB / 0.6766 GB, free: 7.551 MB / 0.5137 GB Notification: Performance of matching and sorting (n=859) (initialization): time 0.02836/0.9156, allocations: 12.58 MB / 0.6889 GB, free: 11.29 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002462/0.9159, allocations: 60.94 kB / 0.6889 GB, free: 11.23 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003234/0.9162, allocations: 124 kB / 0.689 GB, free: 11.11 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007974/0.9242, allocations: 2.651 MB / 0.6916 GB, free: 8.453 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005731/0.93, allocations: 1.474 MB / 0.6931 GB, free: 6.977 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2765/1.206, allocations: 23.38 MB / 0.7159 GB, free: 190.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006585/1.213, allocations: 434.5 kB / 0.7163 GB, free: 190.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001205/1.214, allocations: 391.5 kB / 0.7167 GB, free: 190.6 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 571 * Number of states: 0 () * Number of discrete variables: 47 ($PRE.combiTimeTable.nextTimeEvent,$whenCondition1,combiTimeTable.nextTimeEventScaled,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEvent,rod3.color[3],rod3.color[2],rod3.color[1],bodyShape.color[3],bodyShape.color[2],bodyShape.color[1],bodyShape.body.sphereColor[3],bodyShape.body.sphereColor[2],bodyShape.body.sphereColor[1],bodyShape.frameTranslation.color[3],bodyShape.frameTranslation.color[2],bodyShape.frameTranslation.color[1],rod2.color[3],rod2.color[2],rod2.color[1],rod1.color[3],rod1.color[2],rod1.color[1],r4.cylinderColor[3],r4.cylinderColor[2],r4.cylinderColor[1],r3.cylinderColor[3],r3.cylinderColor[2],r3.cylinderColor[1],r2.cylinderColor[3],r2.cylinderColor[2],r2.cylinderColor[1],r1.cylinderColor[3],r1.cylinderColor[2],r1.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 (760): * Single equations (assignments): 753 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,16,100.0%), (2,14,100.0%), (2,14,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,27)} Notification: Performance of prepare postOptimizeDAE: time 0.005233/1.22, allocations: 2.24 MB / 0.7189 GB, free: 190.4 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001117/1.221, allocations: 403.7 kB / 0.7193 GB, free: 190.4 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01552/1.236, allocations: 8.01 MB / 0.7271 GB, free: 189 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.793e-05/1.236, allocations: 32.28 kB / 0.7271 GB, free: 189 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.712e-05/1.236, allocations: 10.22 kB / 0.7271 GB, free: 189 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.1e-05/1.236, allocations: 16.62 kB / 0.7271 GB, free: 189 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02746/1.264, allocations: 14.8 MB / 0.7416 GB, free: 183.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.113e-05/1.264, allocations: 3 kB / 0.7416 GB, free: 183.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002456/1.266, allocations: 400.7 kB / 0.742 GB, free: 183.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005256/1.272, allocations: 2.318 MB / 0.7442 GB, free: 183.2 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000522/1.272, allocations: 51.31 kB / 0.7443 GB, free: 183.2 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02325/1.296, allocations: 23.11 MB / 0.7669 GB, free: 164.2 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/1.296, allocations: 7.703 kB / 0.7669 GB, free: 164.2 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01311/1.309, allocations: 8.126 MB / 0.7748 GB, free: 156.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001492/1.31, allocations: 448.2 kB / 0.7752 GB, free: 155.8 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009418/1.311, allocations: 44 kB / 0.7753 GB, free: 155.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002323/1.314, allocations: 215.7 kB / 0.7755 GB, free: 155.6 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008065/1.314, allocations: 186.9 kB / 0.7757 GB, free: 155.4 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002374/1.315, allocations: 75.92 kB / 0.7757 GB, free: 155.3 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004149/1.319, allocations: 2.634 MB / 0.7783 GB, free: 152.7 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.5e-07/1.319, allocations: 7.812 kB / 0.7783 GB, free: 152.7 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007003/1.326, allocations: 1.347 MB / 0.7796 GB, free: 151.3 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (188): * Single equations (assignments): 179 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,16,100.0%), (3,13,88.9%), (3,13,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,31)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01465/1.34, allocations: 9.093 MB / 0.7885 GB, free: 142.3 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01753/1.358, allocations: 11.62 MB / 0.7999 GB, free: 130.7 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.035e-06/1.358, allocations: 0 / 0.7999 GB, free: 130.7 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005378/1.363, allocations: 4.096 MB / 0.8039 GB, free: 126.6 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003742/1.367, allocations: 0.4916 MB / 0.8043 GB, free: 126.1 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08718/1.454, allocations: 67.67 MB / 0.8704 GB, free: 50.24 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00362/1.458, allocations: 3.575 MB / 0.8739 GB, free: 46.64 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004757/1.463, allocations: 2.14 MB / 0.876 GB, free: 44.49 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002514/1.465, allocations: 2.081 MB / 0.878 GB, free: 42.41 MB / 0.545 GB Notification: Performance of SimCode: time 1.112e-06/1.465, allocations: 3.938 kB / 0.878 GB, free: 42.41 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3721/1.838, allocations: 104.5 MB / 0.9801 GB, free: 148.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.08/15.92, allocations: 7.797 kB / 0.9801 GB, free: 148.9 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.PlanarLoopWithMove.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.PlanarLoopWithMove.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.PlanarLoopWithMove.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.PlanarLoopWithMove.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.MultiBody.PlanarLoopWithMove_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 ModelicaTest_trunk_ModelicaTest_MultiBody_PlanarLoopWithMove.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.PlanarLoopWithMove.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.PlanarLoopWithMove_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/PlanarLoopWithMove/PlanarLoopWithMove.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.PlanarLoopWithMove.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches