Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Planar,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Planar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Planar,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Planar",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001605/0.001605, allocations: 110.4 kB / 17.77 MB, free: 5.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002085/0.002085, allocations: 183.1 kB / 18.7 MB, free: 4.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.444/1.444, allocations: 222.9 MB / 242.4 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2393/0.2393, allocations: 44.18 MB / 336.8 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001378/0.001378, allocations: 63.89 kB / 470 MB, free: 13.67 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3668/0.3682, allocations: 60.83 MB / 0.5184 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.01608/0.3843, allocations: 15 MB / 0.5331 GB, free: 8.574 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01139/0.3957, allocations: 4.405 MB / 0.5374 GB, free: 5.145 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00317/0.399, allocations: 82.53 kB / 0.5375 GB, free: 5.133 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007085/0.4061, allocations: 2.23 MB / 0.5396 GB, free: 3.617 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006373/0.4125, allocations: 2.014 MB / 0.5416 GB, free: 2.227 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001798/0.4144, allocations: 0.614 MB / 0.5422 GB, free: 1.812 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00682/0.4212, allocations: 4.292 MB / 0.5464 GB, free: 15.42 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004848/0.4261, allocations: 3.16 MB / 0.5495 GB, free: 12.21 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003332/0.4294, allocations: 1.6 MB / 0.551 GB, free: 10.61 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003673/0.4332, allocations: 2.227 MB / 0.5532 GB, free: 8.371 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001283/0.4345, allocations: 344 kB / 0.5535 GB, free: 8.035 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003112/0.4376, allocations: 1.045 MB / 0.5546 GB, free: 6.988 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003113/0.4407, allocations: 1.991 MB / 0.5565 GB, free: 4.992 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004453/0.4452, allocations: 2.411 MB / 0.5589 GB, free: 2.566 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01061/0.4559, allocations: 7.812 MB / 0.5665 GB, free: 10.73 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.905e-06/0.4559, allocations: 0 / 0.5665 GB, free: 10.73 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.4559, allocations: 0 / 0.5665 GB, free: 10.73 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003275/0.4563, allocations: 0 / 0.5665 GB, free: 10.73 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: 1828 * Number of variables: 1828 Notification: Performance of Generate backend data structure: time 0.01375/0.47, allocations: 5.108 MB / 0.5715 GB, free: 5.547 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.85e-05/0.4701, allocations: 12.03 kB / 0.5715 GB, free: 5.535 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002626/0.4727, allocations: 0.8526 MB / 0.5723 GB, free: 4.672 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01154/0.4843, allocations: 3.196 MB / 0.5754 GB, free: 1.465 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007118/0.4915, allocations: 2.709 MB / 0.5781 GB, free: 14.7 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002865/0.4918, allocations: 254.4 kB / 0.5783 GB, free: 14.45 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001483/0.4933, allocations: 323.7 kB / 0.5786 GB, free: 14.14 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02362/0.5169, allocations: 12.23 MB / 0.5906 GB, free: 1.371 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002263/0.5172, allocations: 31.66 kB / 0.5906 GB, free: 1.34 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001708/0.519, allocations: 155.8 kB / 0.5908 GB, free: 1.188 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005159/0.5241, allocations: 2.856 MB / 0.5935 GB, free: 14.32 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02408/0.5483, allocations: 11.13 MB / 0.6044 GB, free: 3.176 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07075/0.6191, allocations: 40.5 MB / 0.644 GB, free: 9.621 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009854/0.629, allocations: 4.692 MB / 0.6486 GB, free: 4.699 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00352/0.6325, allocations: 2.427 MB / 0.6509 GB, free: 2.27 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001401/0.634, allocations: 1.315 MB / 0.6522 GB, free: 0.7344 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.706e-05/0.6341, allocations: 60.5 kB / 0.6523 GB, free: 0.6641 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=249): time 7.655e-06/0.6341, allocations: 0 / 0.6523 GB, free: 0.6641 MB / 0.4981 GB Notification: Performance of matching and sorting (n=267): time 0.04908/0.6832, allocations: 18.69 MB / 0.6705 GB, free: 13.83 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.666e-05/0.6833, allocations: 73.41 kB / 0.6706 GB, free: 13.75 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005828/0.6891, allocations: 3.188 MB / 0.6737 GB, free: 10.55 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0004327/0.6896, allocations: 57.7 kB / 0.6738 GB, free: 10.48 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002335/0.6919, allocations: 3.114 MB / 0.6768 GB, free: 7.328 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001348/0.6933, allocations: 0.9751 MB / 0.6778 GB, free: 6.34 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002772/0.6961, allocations: 1.171 MB / 0.6789 GB, free: 5.156 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0002099/0.6963, allocations: 309.1 kB / 0.6792 GB, free: 4.852 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004192/0.7005, allocations: 2.463 MB / 0.6816 GB, free: 2.383 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007017/0.7076, allocations: 5.719 MB / 0.6872 GB, free: 11.06 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01214/0.7197, allocations: 8.969 MB / 0.6959 GB, free: 0.4922 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001291/0.7199, allocations: 32 kB / 0.696 GB, free: 472 kB / 0.545 GB Notification: Performance of matching and sorting (n=787) (initialization): time 0.01952/0.7394, allocations: 8.988 MB / 0.7047 GB, free: 7.461 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001555/0.7396, allocations: 52 kB / 0.7048 GB, free: 7.41 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002687/0.7399, allocations: 116 kB / 0.7049 GB, free: 7.297 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00338/0.7433, allocations: 1.047 MB / 0.7059 GB, free: 6.246 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004853/0.7482, allocations: 1.341 MB / 0.7072 GB, free: 4.902 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008212/0.7564, allocations: 5.547 MB / 0.7127 GB, free: 15.22 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004183/0.7606, allocations: 319.7 kB / 0.713 GB, free: 14.91 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001094/0.7618, allocations: 344 kB / 0.7133 GB, free: 14.57 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 517 * Number of states: 0 () * Number of discrete variables: 46 (axis1.arrowLine.twoHeadedArrow,axis1.headAtOrigin,axis2.arrowLine.twoHeadedArrow,axis2.headAtOrigin,axis1.color[3],axis1.color[2],axis1.color[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],planar.cylinderColor[3],planar.cylinderColor[2],planar.cylinderColor[1],planar.boxColor[3],planar.boxColor[2],planar.boxColor[1],planar.revolute.cylinderColor[3],planar.revolute.cylinderColor[2],planar.revolute.cylinderColor[1],planar.prismatic_y.boxColor[3],planar.prismatic_y.boxColor[2],planar.prismatic_y.boxColor[1],planar.prismatic_x.boxColor[3],planar.prismatic_x.boxColor[2],planar.prismatic_x.boxColor[1],axis2.color[3],axis2.color[2],axis2.color[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (725): * Single equations (assignments): 718 * Array equations: 6 * 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 {(4,11,87.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004935/0.7667, allocations: 2.413 MB / 0.7156 GB, free: 12.14 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008053/0.7675, allocations: 311.9 kB / 0.7159 GB, free: 11.84 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01043/0.778, allocations: 5.368 MB / 0.7212 GB, free: 6.402 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.457e-05/0.7781, allocations: 48 kB / 0.7212 GB, free: 6.355 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.633e-05/0.7781, allocations: 0 / 0.7212 GB, free: 6.355 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.532e-05/0.7782, allocations: 11.95 kB / 0.7212 GB, free: 6.344 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3026/1.081, allocations: 13.03 MB / 0.734 GB, free: 178.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.04e-05/1.081, allocations: 11.75 kB / 0.734 GB, free: 178.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001993/1.083, allocations: 423.2 kB / 0.7344 GB, free: 178.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002922/1.086, allocations: 0.8941 MB / 0.7353 GB, free: 178.5 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003749/1.086, allocations: 51.23 kB / 0.7353 GB, free: 178.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00594/1.092, allocations: 4.841 MB / 0.74 GB, free: 176 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.676e-05/1.092, allocations: 16 kB / 0.74 GB, free: 176 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01106/1.103, allocations: 8.013 MB / 0.7479 GB, free: 173 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008549/1.104, allocations: 363.2 kB / 0.7482 GB, free: 172.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004262/1.105, allocations: 55 kB / 0.7483 GB, free: 172.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001305/1.106, allocations: 154.9 kB / 0.7484 GB, free: 172.8 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000358/1.106, allocations: 158.8 kB / 0.7486 GB, free: 172.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000148/1.106, allocations: 77.28 kB / 0.7486 GB, free: 172.8 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.002503/1.109, allocations: 1.967 MB / 0.7506 GB, free: 172.1 MB / 0.5762 GB Notification: Performance of sort global known variables: time 6.31e-07/1.109, allocations: 0 / 0.7506 GB, free: 172.1 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.004419/1.113, allocations: 1.086 MB / 0.7516 GB, free: 172 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 6 (planar.s_x,planar.s_y,planar.phi,planar.v_x,planar.v_y,planar.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 (208): * Single equations (assignments): 201 * Array equations: 6 * 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 {(3,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01091/1.124, allocations: 8.694 MB / 0.7601 GB, free: 168.4 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.008107/1.132, allocations: 6.03 MB / 0.766 GB, free: 163.3 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.312e-05/1.133, allocations: 0 / 0.766 GB, free: 163.3 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.002644/1.135, allocations: 2.259 MB / 0.7682 GB, free: 161 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003582/1.139, allocations: 459 kB / 0.7686 GB, free: 160.6 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0687/1.208, allocations: 46.89 MB / 0.8144 GB, free: 108.7 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004448/1.212, allocations: 3.705 MB / 0.8181 GB, free: 105 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.004074/1.216, allocations: 2.15 MB / 0.8202 GB, free: 102.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002548/1.219, allocations: 2.104 MB / 0.8222 GB, free: 100.7 MB / 0.5762 GB Notification: Performance of SimCode: time 8.61e-07/1.219, allocations: 0 / 0.8222 GB, free: 100.7 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1005/1.319, allocations: 67.82 MB / 0.8884 GB, free: 33.25 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.79/26.11, allocations: 6.906 kB / 0.8884 GB, free: 33.24 MB / 0.5762 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Planar_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Planar.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Planar/Planar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches