Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUSP.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSP,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_JointUSP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSP,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_JointUSP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001537/0.001537, allocations: 194.4 kB / 16.1 MB, free: 5.559 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.311/1.311, allocations: 226.5 MB / 243.4 MB, free: 6.469 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000756/0.000756, allocations: 95.7 kB / 295.5 MB, free: 6.68 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2871/0.2871, allocations: 44.81 MB / 392.3 MB, free: 35.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000289/0.000289, allocations: 8 kB / 465.4 MB, free: 12.58 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2906/0.2909, allocations: 62.97 MB / 0.516 GB, free: 37.29 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUSP): time 0.02833/0.3193, allocations: 41.51 MB / 0.5565 GB, free: 7.648 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01736/0.3367, allocations: 8.707 MB / 0.565 GB, free: 1.684 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008555/0.3453, allocations: 194.3 kB / 0.5652 GB, free: 1.652 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007085/0.3524, allocations: 2.02 MB / 0.5672 GB, free: 0.9297 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01532/0.3678, allocations: 5.637 MB / 0.5727 GB, free: 14.22 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003356/0.3712, allocations: 0.5801 MB / 0.5732 GB, free: 13.84 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.004137/0.3753, allocations: 2.65 MB / 0.5758 GB, free: 12.01 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00769/0.383, allocations: 5.585 MB / 0.5813 GB, free: 6.336 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001706/0.3848, allocations: 0.825 MB / 0.5821 GB, free: 5.508 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001997/0.3868, allocations: 1.301 MB / 0.5833 GB, free: 4.203 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004684/0.3873, allocations: 112 kB / 0.5835 GB, free: 4.094 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001533/0.3888, allocations: 0.7449 MB / 0.5842 GB, free: 3.348 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001253/0.3901, allocations: 1.208 MB / 0.5854 GB, free: 2.137 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001563/0.3917, allocations: 1.365 MB / 0.5867 GB, free: 0.7578 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004269/0.396, allocations: 4.497 MB / 0.5911 GB, free: 12.25 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.396, allocations: 4 kB / 0.5911 GB, free: 12.25 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.396, allocations: 4 kB / 0.5911 GB, free: 12.24 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001642/0.3962, allocations: 0 / 0.5911 GB, free: 12.24 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1077 * Number of variables: 1077 Notification: Performance of Generate backend data structure: time 0.006496/0.4027, allocations: 3.093 MB / 0.5941 GB, free: 9.086 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.226e-05/0.4027, allocations: 12.03 kB / 0.5941 GB, free: 9.074 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001124/0.4039, allocations: 0.5329 MB / 0.5946 GB, free: 8.531 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002251/0.4061, allocations: 0.5818 MB / 0.5952 GB, free: 7.945 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00314/0.4093, allocations: 1.743 MB / 0.5969 GB, free: 6.152 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001644/0.4095, allocations: 209.6 kB / 0.5971 GB, free: 5.945 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005689/0.41, allocations: 279.9 kB / 0.5974 GB, free: 5.672 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0143/0.4243, allocations: 7.611 MB / 0.6048 GB, free: 13.72 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.633e-05/0.4245, allocations: 15.88 kB / 0.6048 GB, free: 13.71 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006453/0.4251, allocations: 119.9 kB / 0.6049 GB, free: 13.59 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001624/0.4268, allocations: 1.103 MB / 0.606 GB, free: 12.48 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01348/0.4403, allocations: 6.167 MB / 0.612 GB, free: 6.301 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03074/0.4711, allocations: 22.93 MB / 0.6344 GB, free: 14.81 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006189/0.4773, allocations: 1.859 MB / 0.6362 GB, free: 12.94 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001269/0.4786, allocations: 0.8237 MB / 0.6371 GB, free: 12.11 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00777/0.4864, allocations: 5.781 MB / 0.6427 GB, free: 5.801 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.861e-05/0.4865, allocations: 47.22 kB / 0.6427 GB, free: 5.746 MB / 458.7 MB Notification: Performance of pre-optimization done (n=75): time 3.737e-06/0.4865, allocations: 0 / 0.6427 GB, free: 5.746 MB / 458.7 MB Notification: Performance of matching and sorting (n=94): time 0.01342/0.4999, allocations: 4.399 MB / 0.647 GB, free: 1.328 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.766e-05/0.5, allocations: 64.41 kB / 0.6471 GB, free: 1.254 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00336/0.5034, allocations: 2.263 MB / 0.6493 GB, free: 14.96 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001322/0.5036, allocations: 41.7 kB / 0.6494 GB, free: 14.91 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001358/0.5049, allocations: 2.046 MB / 0.6513 GB, free: 12.83 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003579/0.5053, allocations: 371.3 kB / 0.6517 GB, free: 12.46 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001695/0.5055, allocations: 72 kB / 0.6518 GB, free: 12.39 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002371/0.5057, allocations: 453.1 kB / 0.6522 GB, free: 11.95 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001432/0.5072, allocations: 0.8733 MB / 0.6531 GB, free: 11.07 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002612/0.5098, allocations: 2.954 MB / 0.6559 GB, free: 7.086 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004428/0.5143, allocations: 4.19 MB / 0.66 GB, free: 1.863 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.058e-05/0.5143, allocations: 20 kB / 0.6601 GB, free: 1.844 MB / 474.7 MB Notification: Performance of matching and sorting (n=436) (initialization): time 0.006281/0.5206, allocations: 3.739 MB / 0.6637 GB, free: 14.1 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.731e-05/0.5207, allocations: 36 kB / 0.6637 GB, free: 14.06 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.18e-05/0.5208, allocations: 76 kB / 0.6638 GB, free: 13.99 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.675e-05/0.5209, allocations: 96 kB / 0.6639 GB, free: 13.89 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002285/0.5232, allocations: 0.7798 MB / 0.6647 GB, free: 13.11 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001369/0.5234, allocations: 151.9 kB / 0.6648 GB, free: 12.96 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001908/0.5253, allocations: 151.9 kB / 0.665 GB, free: 12.82 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003378/0.5257, allocations: 204 kB / 0.6651 GB, free: 12.62 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 335 * Number of states: 0 () * Number of discrete variables: 50 (prism.arrowLine.twoHeadedArrow,prism.headAtOrigin,rRod2.arrowLine.twoHeadedArrow,rRod2.headAtOrigin,rRod1.arrowLine.twoHeadedArrow,rRod1.headAtOrigin,n2_ia.arrowLine.twoHeadedArrow,n2_ia.headAtOrigin,n1_a.arrowLine.twoHeadedArrow,n1_a.headAtOrigin,jointUSP.prismatic.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],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],jointUSP.sphereColor[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 (436): * Single equations (assignments): 436 * 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.002161/0.5278, allocations: 1.418 MB / 0.6665 GB, free: 11.19 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003123/0.5281, allocations: 205.5 kB / 0.6667 GB, free: 10.98 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002018/0.5302, allocations: 1.136 MB / 0.6678 GB, free: 9.84 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.011e-05/0.5302, allocations: 8 kB / 0.6678 GB, free: 9.832 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.5302, allocations: 0 / 0.6678 GB, free: 9.832 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.45e-05/0.5302, allocations: 3.984 kB / 0.6678 GB, free: 9.828 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007932/0.5382, allocations: 5.17 MB / 0.6729 GB, free: 4.352 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.355e-05/0.5382, allocations: 16 kB / 0.6729 GB, free: 4.336 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006673/0.5389, allocations: 215.6 kB / 0.6731 GB, free: 4.125 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.967e-05/0.5389, allocations: 20 kB / 0.6731 GB, free: 4.105 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.969e-05/0.539, allocations: 44.66 kB / 0.6732 GB, free: 4.062 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.287e-05/0.5391, allocations: 39.86 kB / 0.6732 GB, free: 4.023 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.255e-05/0.5391, allocations: 19.94 kB / 0.6732 GB, free: 4.004 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001859/0.5409, allocations: 1.678 MB / 0.6749 GB, free: 2.094 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004903/0.5414, allocations: 302.2 kB / 0.6752 GB, free: 1.777 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002602/0.5417, allocations: 43.98 kB / 0.6752 GB, free: 1.734 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006794/0.5424, allocations: 35.98 kB / 0.6752 GB, free: 1.699 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001623/0.5426, allocations: 123.9 kB / 0.6754 GB, free: 1.574 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.998e-05/0.5426, allocations: 55.92 kB / 0.6754 GB, free: 1.52 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002082/0.5447, allocations: 1.458 MB / 0.6768 GB, free: 48 kB / 490.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5447, allocations: 0 / 0.6768 GB, free: 48 kB / 490.7 MB Notification: Performance of remove unused functions: time 0.2093/0.7541, allocations: 0.567 MB / 0.6774 GB, free: 130.1 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 71 * 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 (118): * Single equations (assignments): 118 * 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.003294/0.7574, allocations: 2.313 MB / 0.6796 GB, free: 128.8 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.00342/0.7609, allocations: 2.107 MB / 0.6817 GB, free: 128.2 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.581e-05/0.761, allocations: 2.812 kB / 0.6817 GB, free: 128.2 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007551/0.7617, allocations: 0.5136 MB / 0.6822 GB, free: 128.1 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005973/0.7677, allocations: 340 kB / 0.6825 GB, free: 127.9 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03008/0.7978, allocations: 18.52 MB / 0.7006 GB, free: 115.6 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002597/0.8005, allocations: 2.462 MB / 0.703 GB, free: 114.4 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001314/0.8018, allocations: 1.263 MB / 0.7043 GB, free: 113.4 MB / 490.7 MB Notification: Performance of SimCode: time 1.012e-06/0.8018, allocations: 0 / 0.7043 GB, free: 113.4 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.864/5.666, allocations: 45.79 MB / 0.749 GB, free: 82.68 MB / 490.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUSP.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUSP.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUSP.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUSP.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUSP_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_JointUSP_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_JointUSP.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUSP.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUSP_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/JointUSP/JointUSP.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUSP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches