Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSR.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSR,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_JointUSR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSR,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_JointUSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001106/0.001106, allocations: 175.5 kB / 16.72 MB, free: 4.953 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.248/1.248, allocations: 205.4 MB / 222.9 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007012/0.0007011, allocations: 95.86 kB / 271.2 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.313/0.313, allocations: 43.56 MB / 363.1 MB, free: 51.9 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003445/0.0003445, allocations: 12 kB / 432.1 MB, free: 5.488 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1063, allocations: 58.84 MB / 490.9 MB, free: 10.55 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUSR): time 0.1968/0.3031, allocations: 43.1 MB / 0.5215 GB, free: 19.66 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01909/0.3222, allocations: 8.986 MB / 0.5303 GB, free: 13.52 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008384/0.3307, allocations: 190.8 kB / 0.5305 GB, free: 13.5 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006001/0.3367, allocations: 2.072 MB / 0.5325 GB, free: 12.74 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01421/0.3509, allocations: 5.76 MB / 0.5381 GB, free: 10.27 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002949/0.3539, allocations: 0.7139 MB / 0.5388 GB, free: 9.984 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.003281/0.3572, allocations: 3.139 MB / 0.5419 GB, free: 8.812 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006396/0.3636, allocations: 5.731 MB / 0.5475 GB, free: 6.422 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001824/0.3655, allocations: 0.9701 MB / 0.5484 GB, free: 6.066 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002395/0.3679, allocations: 1.468 MB / 0.5498 GB, free: 5.566 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005119/0.3684, allocations: 132.3 kB / 0.55 GB, free: 5.566 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001962/0.3704, allocations: 0.8396 MB / 0.5508 GB, free: 5.352 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001516/0.3719, allocations: 1.367 MB / 0.5521 GB, free: 4.941 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001649/0.3736, allocations: 1.568 MB / 0.5537 GB, free: 3.852 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005202/0.3788, allocations: 5.035 MB / 0.5586 GB, free: 1.016 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.635e-06/0.3788, allocations: 0 / 0.5586 GB, free: 1.016 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.456e-06/0.3788, allocations: 5.312 kB / 0.5586 GB, free: 1.012 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001958/0.379, allocations: 0 / 0.5586 GB, free: 1.012 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1303 * Number of variables: 1303 Notification: Performance of Generate backend data structure: time 0.008916/0.388, allocations: 3.548 MB / 0.562 GB, free: 14.51 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.645e-05/0.388, allocations: 9.719 kB / 0.5621 GB, free: 14.51 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001678/0.3897, allocations: 0.6357 MB / 0.5627 GB, free: 14.05 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00253/0.3922, allocations: 0.5897 MB / 0.5633 GB, free: 13.73 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003675/0.3959, allocations: 1.872 MB / 0.5651 GB, free: 12.43 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001477/0.3961, allocations: 236.4 kB / 0.5653 GB, free: 12.32 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005256/0.3966, allocations: 310.4 kB / 0.5656 GB, free: 12.21 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01778/0.4144, allocations: 9.211 MB / 0.5746 GB, free: 3.91 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.967e-05/0.4145, allocations: 15.88 kB / 0.5746 GB, free: 3.895 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003314/0.4149, allocations: 143.9 kB / 0.5747 GB, free: 3.754 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00252/0.4174, allocations: 1.588 MB / 0.5763 GB, free: 2.164 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01566/0.4331, allocations: 7.438 MB / 0.5836 GB, free: 10.71 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03873/0.4718, allocations: 28.01 MB / 0.6109 GB, free: 14 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007316/0.4792, allocations: 2.33 MB / 0.6132 GB, free: 11.63 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001435/0.4807, allocations: 1.1 MB / 0.6143 GB, free: 10.52 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01006/0.4908, allocations: 7.63 MB / 0.6217 GB, free: 2.309 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.811e-05/0.4908, allocations: 47.16 kB / 0.6218 GB, free: 2.254 MB / 442.7 MB Notification: Performance of pre-optimization done (n=81): time 5.08e-06/0.4909, allocations: 3.984 kB / 0.6218 GB, free: 2.25 MB / 442.7 MB Notification: Performance of matching and sorting (n=97): time 0.01915/0.51, allocations: 7.156 MB / 0.6288 GB, free: 11.05 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.882e-05/0.5101, allocations: 145.5 kB / 0.6289 GB, free: 10.88 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003741/0.5139, allocations: 2.64 MB / 0.6315 GB, free: 8.219 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001584/0.5141, allocations: 49.8 kB / 0.6315 GB, free: 8.164 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00172/0.5158, allocations: 2.423 MB / 0.6339 GB, free: 5.707 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004529/0.5163, allocations: 399.1 kB / 0.6343 GB, free: 5.312 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001518/0.5164, allocations: 80 kB / 0.6343 GB, free: 5.234 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002821/0.5167, allocations: 466.3 kB / 0.6348 GB, free: 4.773 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001786/0.5185, allocations: 1.07 MB / 0.6358 GB, free: 3.703 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003567/0.5221, allocations: 3.486 MB / 0.6392 GB, free: 15.02 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005658/0.5278, allocations: 4.946 MB / 0.6441 GB, free: 8.875 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.411e-05/0.5279, allocations: 24 kB / 0.6441 GB, free: 8.852 MB / 474.7 MB Notification: Performance of matching and sorting (n=499) (initialization): time 0.00841/0.5363, allocations: 4.434 MB / 0.6484 GB, free: 4.414 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.491e-05/0.5364, allocations: 40 kB / 0.6485 GB, free: 4.375 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.681e-05/0.5365, allocations: 88.12 kB / 0.6485 GB, free: 4.289 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001144/0.5366, allocations: 116 kB / 0.6487 GB, free: 4.176 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002961/0.5396, allocations: 0.9475 MB / 0.6496 GB, free: 3.227 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001305/0.5398, allocations: 167.3 kB / 0.6497 GB, free: 3.062 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00263/0.5424, allocations: 199.8 kB / 0.6499 GB, free: 2.867 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003399/0.5427, allocations: 232 kB / 0.6502 GB, free: 2.641 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 390 * Number of states: 0 () * Number of discrete variables: 43 (jointUSR.revolute.positiveBranch,prism.color[3],prism.color[2],prism.color[1],rRod2.color[3],rRod2.color[2],rRod2.color[1],rRod1.color[3],rRod1.color[2],rRod1.color[1],n2_ia.color[3],n2_ia.color[2],n2_ia.color[1],n1_a.color[3],n1_a.color[2],n1_a.color[1],jointUSR.rod1Color[3],jointUSR.rod1Color[2],jointUSR.rod1Color[1],jointUSR.cylinderColor[3],jointUSR.cylinderColor[2],jointUSR.cylinderColor[1],jointUSR.sphereColor[3],jointUSR.sphereColor[2],jointUSR.sphereColor[1],jointUSR.revoluteColor[3],jointUSR.revoluteColor[2],jointUSR.revoluteColor[1],Fixed1.color[3],Fixed1.color[2],Fixed1.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 (499): * Single equations (assignments): 499 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003106/0.5459, allocations: 1.601 MB / 0.6517 GB, free: 1.023 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004448/0.5463, allocations: 236.9 kB / 0.6519 GB, free: 0.7891 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002271/0.5486, allocations: 1.373 MB / 0.6533 GB, free: 15.4 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.161e-05/0.5486, allocations: 16 kB / 0.6533 GB, free: 15.38 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.014e-06/0.5486, allocations: 0 / 0.6533 GB, free: 15.38 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.225e-05/0.5487, allocations: 7.984 kB / 0.6533 GB, free: 15.38 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009873/0.5585, allocations: 6.02 MB / 0.6592 GB, free: 9.066 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.729e-05/0.5586, allocations: 23.88 kB / 0.6592 GB, free: 9.043 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007576/0.5594, allocations: 219.6 kB / 0.6594 GB, free: 8.828 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.2e-05/0.5594, allocations: 24 kB / 0.6594 GB, free: 8.805 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.625e-05/0.5595, allocations: 40.7 kB / 0.6595 GB, free: 8.766 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.201e-05/0.5595, allocations: 39.81 kB / 0.6595 GB, free: 8.727 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.456e-05/0.5595, allocations: 19.94 kB / 0.6595 GB, free: 8.707 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002248/0.5618, allocations: 1.788 MB / 0.6613 GB, free: 6.691 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007258/0.5625, allocations: 325.8 kB / 0.6616 GB, free: 6.352 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002589/0.5628, allocations: 39.98 kB / 0.6616 GB, free: 6.312 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008561/0.5637, allocations: 55.91 kB / 0.6617 GB, free: 6.258 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001941/0.5639, allocations: 116.1 kB / 0.6618 GB, free: 6.145 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.517e-05/0.5639, allocations: 55.98 kB / 0.6618 GB, free: 6.09 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002777/0.5667, allocations: 1.677 MB / 0.6635 GB, free: 4.406 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5667, allocations: 0 / 0.6635 GB, free: 4.406 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003672/0.5704, allocations: 0.6719 MB / 0.6641 GB, free: 3.734 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 68 * Number of states: 0 () * 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 (122): * Single equations (assignments): 122 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002852/0.5733, allocations: 2.435 MB / 0.6665 GB, free: 1.062 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.003698/0.577, allocations: 2.5 MB / 0.669 GB, free: 14.58 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 6.883e-06/0.577, allocations: 0 / 0.669 GB, free: 14.58 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0007264/0.5778, allocations: 0.5716 MB / 0.6695 GB, free: 14.02 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006869/0.5846, allocations: 333.6 kB / 0.6698 GB, free: 13.7 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2792/0.8638, allocations: 21.8 MB / 0.6911 GB, free: 149.8 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004881/0.8688, allocations: 2.736 MB / 0.6938 GB, free: 149.1 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002555/0.8714, allocations: 1.498 MB / 0.6953 GB, free: 148.3 MB / 0.4948 GB Notification: Performance of SimCode: time 1.202e-06/0.8714, allocations: 0 / 0.6953 GB, free: 148.3 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.385/6.256, allocations: 53.15 MB / 0.7472 GB, free: 123.6 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSR.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSR.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSR.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSR_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_JointUSR_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_JointUSR.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSR.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSR_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/JointUSR/JointUSR.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches