Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.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.Joints.Planar,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Planar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Planar,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Planar",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001174/0.001173, allocations: 121.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001687/0.001687, allocations: 203.8 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.458/1.458, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2239/0.2239, allocations: 46.1 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001522/0.001522, allocations: 71.89 kB / 480.8 MB, free: 4.555 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4552/0.4567, allocations: 62.44 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.01917/0.476, allocations: 14.95 MB / 0.5451 GB, free: 1.68 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01375/0.4897, allocations: 4.43 MB / 0.5494 GB, free: 14.23 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003968/0.4937, allocations: 80.84 kB / 0.5495 GB, free: 14.21 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005147/0.4989, allocations: 2.214 MB / 0.5517 GB, free: 12.04 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006501/0.5055, allocations: 2.043 MB / 0.5537 GB, free: 9.988 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001893/0.5074, allocations: 0.6199 MB / 0.5543 GB, free: 9.367 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006955/0.5144, allocations: 4.31 MB / 0.5585 GB, free: 5.047 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004854/0.5193, allocations: 3.145 MB / 0.5616 GB, free: 1.855 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003385/0.5227, allocations: 1.596 MB / 0.5631 GB, free: 260 kB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004017/0.5267, allocations: 2.219 MB / 0.5653 GB, free: 14.03 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0016/0.5283, allocations: 340 kB / 0.5656 GB, free: 13.7 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003567/0.5319, allocations: 1.041 MB / 0.5666 GB, free: 12.65 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003177/0.5351, allocations: 1.967 MB / 0.5686 GB, free: 10.68 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005272/0.5404, allocations: 2.368 MB / 0.5709 GB, free: 8.297 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01291/0.5534, allocations: 7.785 MB / 0.5785 GB, free: 492 kB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.5534, allocations: 0 / 0.5785 GB, free: 492 kB / 430.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.5534, allocations: 0 / 0.5785 GB, free: 492 kB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003465/0.5538, allocations: 0 / 0.5785 GB, free: 492 kB / 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.01542/0.5692, allocations: 5.216 MB / 0.5836 GB, free: 11.18 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.596e-05/0.5693, allocations: 8.031 kB / 0.5836 GB, free: 11.17 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002718/0.572, allocations: 0.8526 MB / 0.5844 GB, free: 10.31 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01171/0.5837, allocations: 3.234 MB / 0.5876 GB, free: 7.066 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006797/0.5905, allocations: 2.605 MB / 0.5901 GB, free: 4.41 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002129/0.5908, allocations: 250.4 kB / 0.5903 GB, free: 4.164 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009989/0.5918, allocations: 335.7 kB / 0.5907 GB, free: 3.836 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02092/0.6127, allocations: 12.23 MB / 0.6026 GB, free: 7.066 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001945/0.613, allocations: 35.75 kB / 0.6026 GB, free: 7.031 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001107/0.6141, allocations: 163.8 kB / 0.6028 GB, free: 6.871 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005257/0.6194, allocations: 2.844 MB / 0.6056 GB, free: 4.02 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02267/0.642, allocations: 11.12 MB / 0.6164 GB, free: 8.887 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0707/0.7128, allocations: 40.59 MB / 0.6561 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01088/0.7237, allocations: 4.68 MB / 0.6606 GB, free: 10.34 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003721/0.7275, allocations: 2.439 MB / 0.663 GB, free: 7.906 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001396/0.7289, allocations: 1.319 MB / 0.6643 GB, free: 6.367 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.233e-05/0.729, allocations: 48.56 kB / 0.6644 GB, free: 6.309 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=249): time 6.513e-06/0.729, allocations: 0 / 0.6644 GB, free: 6.309 MB / 0.5137 GB Notification: Performance of matching and sorting (n=267): time 0.05107/0.7801, allocations: 18.77 MB / 0.6827 GB, free: 3.398 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.645e-05/0.7802, allocations: 77.34 kB / 0.6828 GB, free: 3.309 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007248/0.7875, allocations: 3.192 MB / 0.6859 GB, free: 108 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.000515/0.788, allocations: 57.64 kB / 0.6859 GB, free: 44 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003043/0.7911, allocations: 3.237 MB / 0.6891 GB, free: 12.78 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001692/0.7928, allocations: 1.015 MB / 0.6901 GB, free: 11.75 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003085/0.7959, allocations: 1.191 MB / 0.6913 GB, free: 10.55 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.000148/0.7961, allocations: 305.1 kB / 0.6915 GB, free: 10.25 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004443/0.8005, allocations: 2.455 MB / 0.6939 GB, free: 7.789 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007403/0.8079, allocations: 5.723 MB / 0.6995 GB, free: 472 kB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01232/0.8203, allocations: 8.977 MB / 0.7083 GB, free: 5.887 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001397/0.8205, allocations: 32 kB / 0.7083 GB, free: 5.855 MB / 0.5606 GB Notification: Performance of matching and sorting (n=787) (initialization): time 0.01869/0.8392, allocations: 8.998 MB / 0.7171 GB, free: 12.84 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 0.000175/0.8394, allocations: 58.19 kB / 0.7172 GB, free: 12.79 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002363/0.8396, allocations: 112 kB / 0.7173 GB, free: 12.68 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003571/0.8432, allocations: 1.051 MB / 0.7183 GB, free: 11.62 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005481/0.8487, allocations: 1.341 MB / 0.7196 GB, free: 10.28 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00853/0.8573, allocations: 5.545 MB / 0.725 GB, free: 4.598 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005291/0.8626, allocations: 327.7 kB / 0.7253 GB, free: 4.277 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001265/0.8639, allocations: 336 kB / 0.7257 GB, free: 3.949 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.006395/0.8703, allocations: 2.413 MB / 0.728 GB, free: 1.523 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001045/0.8714, allocations: 337.7 kB / 0.7283 GB, free: 1.191 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3718/1.243, allocations: 5.358 MB / 0.7336 GB, free: 175.9 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.453e-05/1.243, allocations: 50.89 kB / 0.7336 GB, free: 175.9 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.325e-05/1.243, allocations: 3.094 kB / 0.7336 GB, free: 175.9 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.233e-05/1.243, allocations: 7.781 kB / 0.7336 GB, free: 175.9 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02165/1.265, allocations: 13.02 MB / 0.7463 GB, free: 171.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.83e-05/1.265, allocations: 15.25 kB / 0.7464 GB, free: 171.4 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001576/1.267, allocations: 427.3 kB / 0.7468 GB, free: 171.4 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002551/1.269, allocations: 0.8856 MB / 0.7476 GB, free: 171.3 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001853/1.269, allocations: 58.05 kB / 0.7477 GB, free: 171.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005186/1.275, allocations: 4.836 MB / 0.7524 GB, free: 168.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.011e-05/1.275, allocations: 18.91 kB / 0.7524 GB, free: 168.8 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009872/1.285, allocations: 8.032 MB / 0.7603 GB, free: 162.1 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001021/1.286, allocations: 385.3 kB / 0.7606 GB, free: 161.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004168/1.286, allocations: 48 kB / 0.7607 GB, free: 161.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00131/1.287, allocations: 159.5 kB / 0.7608 GB, free: 161.7 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003185/1.288, allocations: 166.9 kB / 0.761 GB, free: 161.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000158/1.288, allocations: 73.33 kB / 0.7611 GB, free: 161.4 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.002316/1.29, allocations: 1.961 MB / 0.763 GB, free: 159.5 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.2e-07/1.29, allocations: 0 / 0.763 GB, free: 159.5 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.004517/1.295, allocations: 1.062 MB / 0.764 GB, free: 158.4 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.009581/1.304, allocations: 8.705 MB / 0.7725 GB, free: 149.7 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.007552/1.312, allocations: 6.043 MB / 0.7784 GB, free: 143.7 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.339e-05/1.312, allocations: 0 / 0.7784 GB, free: 143.7 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.002408/1.314, allocations: 2.254 MB / 0.7806 GB, free: 141.5 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0025/1.317, allocations: 460 kB / 0.7811 GB, free: 141 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0587/1.376, allocations: 47.04 MB / 0.827 GB, free: 88.87 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003355/1.379, allocations: 3.712 MB / 0.8306 GB, free: 85.12 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003837/1.383, allocations: 2.15 MB / 0.8327 GB, free: 82.96 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002423/1.385, allocations: 2.104 MB / 0.8348 GB, free: 80.86 MB / 0.5762 GB Notification: Performance of SimCode: time 1.273e-06/1.385, allocations: 0 / 0.8348 GB, free: 80.86 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09547/1.481, allocations: 66.63 MB / 0.8998 GB, free: 14.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.59/27.07, allocations: 7.141 kB / 0.8999 GB, free: 14.49 MB / 0.5762 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_MultiBody_Joints_Planar.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Joints.Planar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches