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.001215/0.001215, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001155/0.001155, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.35/1.35, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2136/0.2136, allocations: 46.09 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001266, allocations: 77.56 kB / 417.7 MB, free: 19.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1077, allocations: 62.44 MB / 480.1 MB, free: 5.176 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.01433/0.1221, allocations: 14.94 MB / 495.1 MB, free: 6.16 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008907/0.131, allocations: 4.423 MB / 499.5 MB, free: 1.723 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002096/0.1331, allocations: 79.81 kB / 499.6 MB, free: 1.645 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004484/0.1376, allocations: 2.227 MB / 0.49 GB, free: 15.41 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004384/0.1421, allocations: 1.973 MB / 0.492 GB, free: 13.43 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001352/0.1435, allocations: 0.6161 MB / 0.4926 GB, free: 12.81 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005078/0.1485, allocations: 4.309 MB / 0.4968 GB, free: 8.5 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003849/0.1524, allocations: 3.154 MB / 0.4999 GB, free: 5.293 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002154/0.1546, allocations: 1.565 MB / 0.5014 GB, free: 3.723 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002824/0.1574, allocations: 2.215 MB / 0.5035 GB, free: 1.5 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008682/0.1583, allocations: 344 kB / 0.5039 GB, free: 1.164 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002129/0.1605, allocations: 1.03 MB / 0.5049 GB, free: 136 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2237/0.3842, allocations: 1.963 MB / 0.5068 GB, free: 16.37 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003136/0.3873, allocations: 2.38 MB / 0.5091 GB, free: 15.6 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01008/0.3974, allocations: 7.421 MB / 0.5164 GB, free: 14.59 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.3975, allocations: 0 / 0.5164 GB, free: 14.59 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.3975, allocations: 2.375 kB / 0.5164 GB, free: 14.59 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003087/0.3978, allocations: 0 / 0.5164 GB, free: 14.59 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.01492/0.4128, allocations: 5.075 MB / 0.5213 GB, free: 12.55 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.078e-05/0.4128, allocations: 8.719 kB / 0.5213 GB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002114/0.4149, allocations: 0.8552 MB / 0.5222 GB, free: 12.47 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01136/0.4263, allocations: 3.195 MB / 0.5253 GB, free: 12.07 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006458/0.4328, allocations: 2.569 MB / 0.5278 GB, free: 10.96 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002045/0.433, allocations: 252.3 kB / 0.528 GB, free: 10.89 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001643/0.4347, allocations: 336.9 kB / 0.5284 GB, free: 10.82 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01954/0.4543, allocations: 12.22 MB / 0.5403 GB, free: 4.238 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001122/0.4544, allocations: 36.77 kB / 0.5403 GB, free: 4.227 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004903/0.4549, allocations: 152.5 kB / 0.5405 GB, free: 4.168 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003997/0.4589, allocations: 2.845 MB / 0.5433 GB, free: 3.07 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02146/0.4804, allocations: 11.13 MB / 0.5541 GB, free: 8.328 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05865/0.539, allocations: 40.71 MB / 0.5939 GB, free: 15.2 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009227/0.5483, allocations: 4.695 MB / 0.5985 GB, free: 10.29 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003217/0.5516, allocations: 2.435 MB / 0.6008 GB, free: 7.863 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001182/0.5528, allocations: 1.318 MB / 0.6021 GB, free: 6.332 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.822e-05/0.5528, allocations: 55.09 kB / 0.6022 GB, free: 6.273 MB / 446.1 MB Notification: Performance of pre-optimization done (n=249): time 5.631e-06/0.5528, allocations: 0 / 0.6022 GB, free: 6.273 MB / 446.1 MB Notification: Performance of matching and sorting (n=267): time 0.04342/0.5963, allocations: 18.68 MB / 0.6204 GB, free: 3.48 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.847e-05/0.5964, allocations: 73.41 kB / 0.6205 GB, free: 3.398 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005761/0.6021, allocations: 3.176 MB / 0.6236 GB, free: 216 kB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005887/0.6028, allocations: 61.7 kB / 0.6237 GB, free: 148 kB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002175/0.6049, allocations: 3.117 MB / 0.6267 GB, free: 13.03 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001381/0.6063, allocations: 0.9716 MB / 0.6276 GB, free: 12.06 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002619/0.609, allocations: 1.178 MB / 0.6288 GB, free: 10.88 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.104e-05/0.6091, allocations: 301.1 kB / 0.6291 GB, free: 10.58 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003616/0.6127, allocations: 2.463 MB / 0.6315 GB, free: 8.109 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005797/0.6185, allocations: 5.713 MB / 0.6371 GB, free: 0.8477 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01045/0.629, allocations: 8.981 MB / 0.6458 GB, free: 6.746 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001202/0.6291, allocations: 32 kB / 0.6459 GB, free: 6.715 MB / 494.1 MB Notification: Performance of matching and sorting (n=787) (initialization): time 0.01814/0.6473, allocations: 8.98 MB / 0.6546 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001068/0.6474, allocations: 52 kB / 0.6547 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001652/0.6476, allocations: 112.1 kB / 0.6548 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003041/0.6507, allocations: 1.058 MB / 0.6558 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004654/0.6553, allocations: 1.337 MB / 0.6571 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007087/0.6624, allocations: 5.55 MB / 0.6626 GB, free: 6.023 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003869/0.6663, allocations: 319.8 kB / 0.6629 GB, free: 5.711 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009198/0.6673, allocations: 346 kB / 0.6632 GB, free: 5.375 MB / 0.4981 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.005317/0.6726, allocations: 2.412 MB / 0.6655 GB, free: 2.953 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007413/0.6733, allocations: 308 kB / 0.6658 GB, free: 2.648 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009638/0.683, allocations: 5.362 MB / 0.6711 GB, free: 13.23 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.829e-05/0.6831, allocations: 51.98 kB / 0.6711 GB, free: 13.18 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.522e-05/0.6831, allocations: 4 kB / 0.6711 GB, free: 13.17 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.85e-05/0.6831, allocations: 11.95 kB / 0.6711 GB, free: 13.16 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02315/0.7063, allocations: 13.07 MB / 0.6839 GB, free: 15.89 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-05/0.7064, allocations: 8 kB / 0.6839 GB, free: 15.89 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001853/0.7082, allocations: 423.3 kB / 0.6843 GB, free: 15.47 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002823/0.7111, allocations: 0.8947 MB / 0.6852 GB, free: 14.57 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003064/0.7114, allocations: 55.98 kB / 0.6852 GB, free: 14.52 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006093/0.7175, allocations: 4.833 MB / 0.69 GB, free: 9.551 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.724e-05/0.7175, allocations: 23.81 kB / 0.69 GB, free: 9.527 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01302/0.7306, allocations: 8.022 MB / 0.6978 GB, free: 1.289 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001293/0.7319, allocations: 361 kB / 0.6982 GB, free: 0.9141 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001048/0.733, allocations: 55.92 kB / 0.6982 GB, free: 0.8594 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002197/0.7352, allocations: 147.9 kB / 0.6984 GB, free: 0.7148 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005254/0.7357, allocations: 173.5 kB / 0.6985 GB, free: 0.543 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002348/0.736, allocations: 78.61 kB / 0.6986 GB, free: 480 kB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004556/0.7405, allocations: 1.959 MB / 0.7005 GB, free: 14.52 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.874e-06/0.7405, allocations: 0 / 0.7005 GB, free: 14.52 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006583/0.7471, allocations: 1.068 MB / 0.7016 GB, free: 13.45 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.01328/0.7604, allocations: 8.683 MB / 0.71 GB, free: 4.543 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.2151/0.9756, allocations: 9.632 MB / 0.7194 GB, free: 203.6 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.036e-05/0.9756, allocations: 5.25 kB / 0.7195 GB, free: 203.6 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003437/0.979, allocations: 2.248 MB / 0.7216 GB, free: 203 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003168/0.9822, allocations: 451.3 kB / 0.7221 GB, free: 202.8 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06293/1.045, allocations: 51.22 MB / 0.7721 GB, free: 157.6 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003163/1.048, allocations: 3.704 MB / 0.7757 GB, free: 153.9 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00391/1.052, allocations: 2.161 MB / 0.7778 GB, free: 151.7 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002035/1.054, allocations: 2.104 MB / 0.7799 GB, free: 149.6 MB / 0.545 GB Notification: Performance of SimCode: time 6.72e-07/1.054, allocations: 0 / 0.7799 GB, free: 149.6 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1023/1.157, allocations: 69.87 MB / 0.8481 GB, free: 79.89 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.95/13.11, allocations: 3.938 kB / 0.8481 GB, free: 79.89 MB / 0.545 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Planar_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Planar.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Joints.Planar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches