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.001644/0.001644, allocations: 109.4 kB / 17.21 MB, free: 6.27 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.001735/0.001735, allocations: 194 kB / 18.12 MB, free: 5.363 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.424/1.424, allocations: 222.9 MB / 241.8 MB, free: 15.55 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.2308/0.2308, allocations: 44.17 MB / 336.1 MB, free: 3.047 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002271/0.002271, allocations: 69.17 kB / 407.8 MB, free: 27.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1677/0.17, allocations: 60.83 MB / 468.6 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.06461/0.2347, allocations: 46.38 MB / 0.5029 GB, free: 200 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.308/0.5428, allocations: 9.635 MB / 0.5123 GB, free: 10.09 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01139/0.5542, allocations: 192.9 kB / 0.5125 GB, free: 10.09 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005487/0.5597, allocations: 2.189 MB / 0.5147 GB, free: 9.695 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005963/0.5658, allocations: 1.884 MB / 0.5165 GB, free: 9.184 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001937/0.5677, allocations: 0.5738 MB / 0.5171 GB, free: 8.98 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00793/0.5757, allocations: 5.998 MB / 0.5229 GB, free: 7.469 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006054/0.5818, allocations: 3.081 MB / 0.5259 GB, free: 6.086 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003275/0.5851, allocations: 1.391 MB / 0.5273 GB, free: 5.418 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003656/0.5888, allocations: 2.331 MB / 0.5296 GB, free: 4.238 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001232/0.59, allocations: 238.6 kB / 0.5298 GB, free: 4.238 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002926/0.593, allocations: 1.012 MB / 0.5308 GB, free: 3.824 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00287/0.5959, allocations: 1.918 MB / 0.5327 GB, free: 2.785 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003724/0.5996, allocations: 2.309 MB / 0.5349 GB, free: 1.047 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007793/0.6074, allocations: 7.399 MB / 0.5421 GB, free: 12.08 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.726e-06/0.6075, allocations: 8 kB / 0.5421 GB, free: 12.07 MB / 398.1 MB Notification: Performance of FrontEnd: time 9.62e-07/0.6075, allocations: 4 kB / 0.5422 GB, free: 12.07 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002243/0.6077, allocations: 0 / 0.5422 GB, free: 12.07 MB / 398.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.01033/0.618, allocations: 5.102 MB / 0.5471 GB, free: 7.027 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.786e-05/0.6181, allocations: 8.031 kB / 0.5471 GB, free: 7.02 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001571/0.6197, allocations: 0.8527 MB / 0.548 GB, free: 6.207 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01059/0.6303, allocations: 3.198 MB / 0.5511 GB, free: 3 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005744/0.6361, allocations: 2.677 MB / 0.5537 GB, free: 312 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000214/0.6363, allocations: 253.5 kB / 0.554 GB, free: 108 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001315/0.6376, allocations: 335.1 kB / 0.5543 GB, free: 15.82 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02572/0.6634, allocations: 12.23 MB / 0.5662 GB, free: 3.215 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001393/0.6636, allocations: 31.72 kB / 0.5662 GB, free: 3.184 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006213/0.6642, allocations: 153.4 kB / 0.5664 GB, free: 3.082 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005449/0.6696, allocations: 2.843 MB / 0.5692 GB, free: 256 kB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02358/0.6932, allocations: 11.13 MB / 0.58 GB, free: 5.105 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06145/0.7547, allocations: 40.72 MB / 0.6198 GB, free: 11.59 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009722/0.7645, allocations: 4.689 MB / 0.6244 GB, free: 6.676 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003462/0.768, allocations: 2.431 MB / 0.6268 GB, free: 4.246 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001259/0.7693, allocations: 1.325 MB / 0.628 GB, free: 2.707 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.588e-05/0.7693, allocations: 52.56 kB / 0.6281 GB, free: 2.648 MB / 478.1 MB Notification: Performance of pre-optimization done (n=249): time 5.049e-06/0.7694, allocations: 0 / 0.6281 GB, free: 2.648 MB / 478.1 MB Notification: Performance of matching and sorting (n=267): time 0.04753/0.8169, allocations: 18.68 MB / 0.6463 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.692e-05/0.817, allocations: 81.34 kB / 0.6464 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005932/0.8229, allocations: 3.172 MB / 0.6495 GB, free: 12.56 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.000433/0.8234, allocations: 64.2 kB / 0.6496 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002347/0.8258, allocations: 3.12 MB / 0.6526 GB, free: 9.371 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001354/0.8271, allocations: 0.9654 MB / 0.6536 GB, free: 8.414 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00295/0.8301, allocations: 1.179 MB / 0.6547 GB, free: 7.227 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001178/0.8302, allocations: 309.1 kB / 0.655 GB, free: 6.922 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004236/0.8345, allocations: 2.459 MB / 0.6574 GB, free: 4.457 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007714/0.8422, allocations: 5.711 MB / 0.663 GB, free: 13.14 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01273/0.855, allocations: 8.977 MB / 0.6718 GB, free: 2.562 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001772/0.8552, allocations: 32 kB / 0.6718 GB, free: 2.531 MB / 0.5137 GB Notification: Performance of matching and sorting (n=787) (initialization): time 0.01918/0.8744, allocations: 8.987 MB / 0.6806 GB, free: 9.527 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001487/0.8746, allocations: 52 kB / 0.6806 GB, free: 9.477 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002237/0.8748, allocations: 116 kB / 0.6807 GB, free: 9.363 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003226/0.878, allocations: 1.055 MB / 0.6818 GB, free: 8.305 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004906/0.883, allocations: 1.345 MB / 0.6831 GB, free: 6.957 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00746/0.8905, allocations: 5.13 MB / 0.6881 GB, free: 1.695 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004498/0.895, allocations: 327.8 kB / 0.6884 GB, free: 1.375 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001296/0.8963, allocations: 339 kB / 0.6887 GB, free: 1.047 MB / 0.5294 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.005525/0.9018, allocations: 2.413 MB / 0.6911 GB, free: 14.62 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008613/0.9027, allocations: 312 kB / 0.6914 GB, free: 14.31 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009838/0.9126, allocations: 5.374 MB / 0.6966 GB, free: 8.875 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.825e-05/0.9127, allocations: 50.88 kB / 0.6967 GB, free: 8.828 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.619e-05/0.9127, allocations: 4 kB / 0.6967 GB, free: 8.824 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.77e-05/0.9127, allocations: 7.969 kB / 0.6967 GB, free: 8.816 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3065/1.219, allocations: 13.07 MB / 0.7094 GB, free: 198.9 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.369e-05/1.219, allocations: 10.97 kB / 0.7095 GB, free: 198.9 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00178/1.221, allocations: 428.2 kB / 0.7099 GB, free: 198.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002827/1.224, allocations: 0.8901 MB / 0.7107 GB, free: 198.8 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002589/1.224, allocations: 58.52 kB / 0.7108 GB, free: 198.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006317/1.23, allocations: 4.504 MB / 0.7152 GB, free: 196.7 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-05/1.231, allocations: 16.59 kB / 0.7152 GB, free: 196.7 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01237/1.243, allocations: 8.025 MB / 0.723 GB, free: 193.7 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009841/1.244, allocations: 360.9 kB / 0.7234 GB, free: 193.6 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003919/1.244, allocations: 53.8 kB / 0.7234 GB, free: 193.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001292/1.246, allocations: 145.7 kB / 0.7236 GB, free: 193.5 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004306/1.246, allocations: 171.3 kB / 0.7237 GB, free: 193.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001803/1.246, allocations: 81.09 kB / 0.7238 GB, free: 193.5 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00274/1.249, allocations: 1.958 MB / 0.7257 GB, free: 192.8 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.3e-07/1.249, allocations: 3.938 kB / 0.7257 GB, free: 192.8 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004244/1.253, allocations: 1.077 MB / 0.7268 GB, free: 192.7 MB / 0.545 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.263, allocations: 8.69 MB / 0.7353 GB, free: 189.1 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.007564/1.27, allocations: 5.992 MB / 0.7411 GB, free: 187.1 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.748e-06/1.27, allocations: 7.25 kB / 0.7411 GB, free: 187.1 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002635/1.273, allocations: 2.251 MB / 0.7433 GB, free: 185.3 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002667/1.276, allocations: 437.4 kB / 0.7437 GB, free: 184.9 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1042/1.38, allocations: 53.6 MB / 0.7961 GB, free: 126 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008171/1.388, allocations: 3.712 MB / 0.7997 GB, free: 122.2 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.008422/1.397, allocations: 2.149 MB / 0.8018 GB, free: 120.1 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004921/1.402, allocations: 2.108 MB / 0.8039 GB, free: 117.9 MB / 0.545 GB Notification: Performance of SimCode: time 9.32e-07/1.402, allocations: 0 / 0.8039 GB, free: 117.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1198/1.521, allocations: 68.54 MB / 0.8708 GB, free: 49.72 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001558/1.522, allocations: 214.9 kB / 0.871 GB, free: 49.46 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.339/4.861, allocations: 0 / 0.871 GB, free: 49.46 MB / 0.545 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