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.001352/0.001353, allocations: 104.1 kB / 17.63 MB, free: 5.344 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.001529/0.001529, allocations: 192 kB / 18.56 MB, free: 4.434 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.472/1.472, allocations: 222.9 MB / 242.3 MB, free: 15.16 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.2128/0.2128, allocations: 44.18 MB / 336.6 MB, free: 2.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 72.84 kB / 408.5 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1172/0.1185, allocations: 60.82 MB / 469.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.01585/0.1344, allocations: 14.99 MB / 484.3 MB, free: 15.2 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01058/0.145, allocations: 4.431 MB / 488.8 MB, free: 10.75 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003276/0.1483, allocations: 75.88 kB / 488.9 MB, free: 10.68 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005179/0.1535, allocations: 2.219 MB / 491.1 MB, free: 8.449 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00575/0.1593, allocations: 2.02 MB / 493.1 MB, free: 6.422 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001725/0.1611, allocations: 0.6122 MB / 493.7 MB, free: 5.809 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005771/0.1669, allocations: 4.287 MB / 498 MB, free: 1.516 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004154/0.1711, allocations: 3.158 MB / 0.4894 GB, free: 14.3 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002544/0.1736, allocations: 1.581 MB / 0.4909 GB, free: 12.72 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003518/0.1772, allocations: 2.223 MB / 0.4931 GB, free: 10.49 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001374/0.1786, allocations: 348 kB / 0.4934 GB, free: 10.15 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002783/0.1814, allocations: 1.045 MB / 0.4945 GB, free: 9.102 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002825/0.1842, allocations: 1.995 MB / 0.4964 GB, free: 7.102 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004379/0.1886, allocations: 2.399 MB / 0.4988 GB, free: 4.688 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2574/0.4461, allocations: 7.493 MB / 0.5061 GB, free: 21.34 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.251e-05/0.4461, allocations: 0 / 0.5061 GB, free: 21.34 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.076e-06/0.4461, allocations: 0 / 0.5061 GB, free: 21.34 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003203/0.4465, allocations: 0 / 0.5061 GB, free: 21.34 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: 1828 * Number of variables: 1828 Notification: Performance of Generate backend data structure: time 0.01693/0.4634, allocations: 5.1 MB / 0.5111 GB, free: 19.32 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.164e-05/0.4635, allocations: 10.92 kB / 0.5111 GB, free: 19.32 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00187/0.4654, allocations: 0.8517 MB / 0.5119 GB, free: 19.23 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01151/0.4769, allocations: 3.205 MB / 0.515 GB, free: 18.91 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007111/0.484, allocations: 2.674 MB / 0.5176 GB, free: 18.34 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003005/0.4844, allocations: 248.2 kB / 0.5179 GB, free: 18.33 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002102/0.4865, allocations: 334.2 kB / 0.5182 GB, free: 18.32 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0241/0.5106, allocations: 12.24 MB / 0.5301 GB, free: 14.32 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001676/0.5108, allocations: 31.88 kB / 0.5302 GB, free: 14.32 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001001/0.5118, allocations: 154.4 kB / 0.5303 GB, free: 14.25 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004342/0.5162, allocations: 2.848 MB / 0.5331 GB, free: 13.15 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01933/0.5355, allocations: 11.13 MB / 0.544 GB, free: 4.367 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06386/0.5994, allocations: 40.69 MB / 0.5837 GB, free: 11.28 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009815/0.6093, allocations: 4.687 MB / 0.5883 GB, free: 6.387 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003751/0.6131, allocations: 2.438 MB / 0.5907 GB, free: 3.949 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001444/0.6145, allocations: 1.322 MB / 0.592 GB, free: 2.414 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.698e-05/0.6146, allocations: 60.56 kB / 0.592 GB, free: 2.348 MB / 430.1 MB Notification: Performance of pre-optimization done (n=249): time 8.496e-06/0.6147, allocations: 0 / 0.592 GB, free: 2.348 MB / 430.1 MB Notification: Performance of matching and sorting (n=267): time 0.0521/0.6668, allocations: 18.68 MB / 0.6103 GB, free: 15.57 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.491e-05/0.6669, allocations: 73.41 kB / 0.6103 GB, free: 15.49 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005917/0.6728, allocations: 3.18 MB / 0.6134 GB, free: 12.3 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005736/0.6734, allocations: 61.61 kB / 0.6135 GB, free: 12.24 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00241/0.6758, allocations: 3.119 MB / 0.6165 GB, free: 9.137 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001499/0.6774, allocations: 0.9664 MB / 0.6175 GB, free: 8.18 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00282/0.6802, allocations: 1.182 MB / 0.6186 GB, free: 6.988 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001013/0.6803, allocations: 305.1 kB / 0.6189 GB, free: 6.688 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004154/0.6845, allocations: 2.459 MB / 0.6213 GB, free: 4.223 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006649/0.6912, allocations: 5.721 MB / 0.6269 GB, free: 12.95 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0115/0.7027, allocations: 8.97 MB / 0.6357 GB, free: 2.859 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001145/0.7029, allocations: 32 kB / 0.6357 GB, free: 2.828 MB / 478.1 MB Notification: Performance of matching and sorting (n=787) (initialization): time 0.01839/0.7213, allocations: 8.993 MB / 0.6445 GB, free: 10.39 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001768/0.7215, allocations: 52 kB / 0.6445 GB, free: 10.34 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002176/0.7217, allocations: 112.8 kB / 0.6446 GB, free: 10.23 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003428/0.7251, allocations: 1.059 MB / 0.6457 GB, free: 9.168 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004967/0.7301, allocations: 1.341 MB / 0.647 GB, free: 7.824 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008462/0.7386, allocations: 5.54 MB / 0.6524 GB, free: 2.156 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004643/0.7433, allocations: 319.3 kB / 0.6527 GB, free: 1.848 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00126/0.7446, allocations: 344.9 kB / 0.653 GB, free: 1.512 MB / 494.1 MB 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.005721/0.7503, allocations: 2.405 MB / 0.6554 GB, free: 15.1 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008978/0.7512, allocations: 308 kB / 0.6557 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0104/0.7616, allocations: 5.38 MB / 0.6609 GB, free: 9.348 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.528e-05/0.7618, allocations: 44 kB / 0.661 GB, free: 9.305 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.837e-05/0.7618, allocations: 7.984 kB / 0.661 GB, free: 9.297 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-05/0.7618, allocations: 11.97 kB / 0.661 GB, free: 9.285 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02891/0.7907, allocations: 13.09 MB / 0.6738 GB, free: 12.02 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.594e-05/0.7908, allocations: 12 kB / 0.6738 GB, free: 12.01 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001935/0.7928, allocations: 423.3 kB / 0.6742 GB, free: 11.59 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002917/0.7957, allocations: 0.8922 MB / 0.6751 GB, free: 10.7 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004231/0.7962, allocations: 55.98 kB / 0.6751 GB, free: 10.64 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006828/0.803, allocations: 4.831 MB / 0.6798 GB, free: 5.688 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.626e-05/0.803, allocations: 19.88 kB / 0.6798 GB, free: 5.668 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01323/0.8163, allocations: 8.007 MB / 0.6877 GB, free: 13.45 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00113/0.8174, allocations: 365.1 kB / 0.688 GB, free: 13.07 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009128/0.8184, allocations: 55.38 kB / 0.6881 GB, free: 13.02 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002011/0.8204, allocations: 151.8 kB / 0.6882 GB, free: 12.87 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004897/0.8209, allocations: 169.5 kB / 0.6884 GB, free: 12.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002204/0.8211, allocations: 72 kB / 0.6884 GB, free: 12.63 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003904/0.8251, allocations: 1.969 MB / 0.6904 GB, free: 10.66 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.81e-07/0.8251, allocations: 0 / 0.6904 GB, free: 10.66 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006367/0.8314, allocations: 1.082 MB / 0.6914 GB, free: 9.586 MB / 0.5294 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.01353/0.845, allocations: 8.684 MB / 0.6999 GB, free: 0.6797 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.2407/1.086, allocations: 9.634 MB / 0.7093 GB, free: 195.2 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.716e-05/1.086, allocations: 1.469 kB / 0.7093 GB, free: 195.2 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003407/1.089, allocations: 2.257 MB / 0.7115 GB, free: 194.4 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002788/1.092, allocations: 459.5 kB / 0.712 GB, free: 194.2 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05925/1.151, allocations: 51.28 MB / 0.762 GB, free: 145.4 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003344/1.155, allocations: 3.708 MB / 0.7657 GB, free: 141.7 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004203/1.159, allocations: 2.149 MB / 0.7678 GB, free: 139.5 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002682/1.162, allocations: 2.112 MB / 0.7698 GB, free: 137.4 MB / 0.5294 GB Notification: Performance of SimCode: time 1.022e-06/1.162, allocations: 0 / 0.7698 GB, free: 137.4 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1356/1.297, allocations: 69.97 MB / 0.8382 GB, free: 67.73 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.03/12.33, allocations: 11.12 kB / 0.8382 GB, free: 67.72 MB / 0.5294 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 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.csv","/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