Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointSSR.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.JointSSR,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_JointSSR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointSSR,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_JointSSR",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.000854/0.000854, allocations: 175 kB / 16.72 MB, free: 5.082 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.253/1.253, allocations: 205.4 MB / 222.9 MB, free: 9.027 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.0008477/0.0008477, allocations: 97.72 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.3297/0.3297, allocations: 43.56 MB / 363.1 MB, free: 51.93 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003375/0.0003376, allocations: 12 kB / 432.1 MB, free: 5.5 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1035, allocations: 58.85 MB / 490.9 MB, free: 10.56 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointSSR): time 0.1905/0.294, allocations: 31.47 MB / 0.5102 GB, free: 27.91 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01532/0.3094, allocations: 7.067 MB / 0.5171 GB, free: 23.09 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005134/0.3146, allocations: 139.5 kB / 0.5172 GB, free: 23.07 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003666/0.3183, allocations: 1.46 MB / 0.5186 GB, free: 22.54 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009366/0.3276, allocations: 4.068 MB / 0.5226 GB, free: 20.79 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002294/0.33, allocations: 0.6137 MB / 0.5232 GB, free: 20.54 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.002385/0.3324, allocations: 2.251 MB / 0.5254 GB, free: 19.7 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004684/0.3371, allocations: 4.609 MB / 0.5299 GB, free: 17.76 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009051/0.338, allocations: 0.6999 MB / 0.5306 GB, free: 17.5 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001009/0.339, allocations: 1.082 MB / 0.5316 GB, free: 17.13 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001949/0.3392, allocations: 97.47 kB / 0.5317 GB, free: 17.13 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001274/0.3405, allocations: 0.8588 MB / 0.5326 GB, free: 16.91 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006589/0.3412, allocations: 0.9897 MB / 0.5335 GB, free: 16.61 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007335/0.3419, allocations: 1.134 MB / 0.5346 GB, free: 15.82 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003645/0.3456, allocations: 3.852 MB / 0.5384 GB, free: 15.07 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.3456, allocations: 0.75 kB / 0.5384 GB, free: 15.07 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.3456, allocations: 4 kB / 0.5384 GB, free: 15.07 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001311/0.3457, allocations: 3 kB / 0.5384 GB, free: 15.07 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: 908 * Number of variables: 908 Notification: Performance of Generate backend data structure: time 0.005458/0.3512, allocations: 2.549 MB / 0.5409 GB, free: 13.59 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.774e-05/0.3513, allocations: 13.56 kB / 0.5409 GB, free: 13.59 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008076/0.3521, allocations: 462.4 kB / 0.5413 GB, free: 13.35 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001154/0.3532, allocations: 362.4 kB / 0.5417 GB, free: 13.18 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001971/0.3552, allocations: 1.321 MB / 0.543 GB, free: 12.38 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001055/0.3553, allocations: 181.3 kB / 0.5432 GB, free: 12.29 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003685/0.3557, allocations: 230 kB / 0.5434 GB, free: 12.21 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01289/0.3686, allocations: 6.908 MB / 0.5501 GB, free: 8.652 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.87e-05/0.3687, allocations: 10.03 kB / 0.5501 GB, free: 8.648 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002187/0.3689, allocations: 102 kB / 0.5502 GB, free: 8.574 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00141/0.3704, allocations: 0.9923 MB / 0.5512 GB, free: 8.191 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01183/0.3822, allocations: 5.669 MB / 0.5567 GB, free: 5.477 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0252/0.4074, allocations: 20.29 MB / 0.5765 GB, free: 1.559 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006835/0.4143, allocations: 1.833 MB / 0.5783 GB, free: 15.7 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001015/0.4154, allocations: 0.6828 MB / 0.579 GB, free: 15.02 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006319/0.4217, allocations: 4.885 MB / 0.5838 GB, free: 9.73 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.968e-05/0.4218, allocations: 43.12 kB / 0.5838 GB, free: 9.68 MB / 410.7 MB Notification: Performance of pre-optimization done (n=70): time 8.475e-06/0.4218, allocations: 0 / 0.5838 GB, free: 9.68 MB / 410.7 MB Notification: Performance of matching and sorting (n=110): time 0.04012/0.4619, allocations: 9.344 MB / 0.5929 GB, free: 324 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.663e-05/0.4621, allocations: 93.98 kB / 0.593 GB, free: 208 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003026/0.4651, allocations: 1.954 MB / 0.5949 GB, free: 14.25 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001407/0.4652, allocations: 41.7 kB / 0.595 GB, free: 14.2 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001258/0.4665, allocations: 1.679 MB / 0.5966 GB, free: 12.5 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005006/0.467, allocations: 422.4 kB / 0.597 GB, free: 12.08 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002041/0.4672, allocations: 60 kB / 0.5971 GB, free: 12.02 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003041/0.4676, allocations: 420 kB / 0.5975 GB, free: 11.61 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001849/0.4694, allocations: 1.029 MB / 0.5985 GB, free: 10.57 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002849/0.4723, allocations: 2.648 MB / 0.6011 GB, free: 7.121 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004812/0.4771, allocations: 3.975 MB / 0.6049 GB, free: 2.352 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.985e-05/0.4772, allocations: 16 kB / 0.605 GB, free: 2.336 MB / 426.7 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.006173/0.4833, allocations: 3.656 MB / 0.6085 GB, free: 14.67 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.436e-05/0.4834, allocations: 32 kB / 0.6086 GB, free: 14.64 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001079/0.4835, allocations: 56 kB / 0.6086 GB, free: 14.59 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.718e-05/0.4836, allocations: 76.75 kB / 0.6087 GB, free: 14.51 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002438/0.4861, allocations: 0.7174 MB / 0.6094 GB, free: 13.79 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001055/0.4862, allocations: 111.6 kB / 0.6095 GB, free: 13.68 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001969/0.4882, allocations: 163.7 kB / 0.6097 GB, free: 13.52 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000259/0.4885, allocations: 160 kB / 0.6098 GB, free: 13.37 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 259 * Number of states: 0 () * Number of discrete variables: 34 (jointSSR.revolute.positiveBranch,prism.color[3],prism.color[2],prism.color[1],rRod2.color[3],rRod2.color[2],rRod2.color[1],jointSSR.rod1Color[3],jointSSR.rod1Color[2],jointSSR.rod1Color[1],jointSSR.rod1.massColor[3],jointSSR.rod1.massColor[2],jointSSR.rod1.massColor[1],jointSSR.sphereColor[3],jointSSR.sphereColor[2],jointSSR.sphereColor[1],jointSSR.revoluteColor[3],jointSSR.revoluteColor[2],jointSSR.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 (373): * Single equations (assignments): 373 * 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.002095/0.4906, allocations: 1.207 MB / 0.611 GB, free: 12.15 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003663/0.4909, allocations: 177.7 kB / 0.6112 GB, free: 11.97 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00321/0.4941, allocations: 1.723 MB / 0.6128 GB, free: 10.23 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.549e-05/0.4942, allocations: 15.94 kB / 0.6129 GB, free: 10.22 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.4942, allocations: 0 / 0.6129 GB, free: 10.22 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.397e-05/0.4942, allocations: 7.969 kB / 0.6129 GB, free: 10.21 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01138/0.5056, allocations: 5.87 MB / 0.6186 GB, free: 4.078 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-05/0.5056, allocations: 12 kB / 0.6186 GB, free: 4.066 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000862/0.5065, allocations: 215.8 kB / 0.6188 GB, free: 3.855 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.468e-05/0.5066, allocations: 19.94 kB / 0.6188 GB, free: 3.836 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.362e-05/0.5067, allocations: 36 kB / 0.6189 GB, free: 3.801 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-05/0.5067, allocations: 23.92 kB / 0.6189 GB, free: 3.777 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.314e-05/0.5067, allocations: 15.94 kB / 0.6189 GB, free: 3.762 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002271/0.509, allocations: 1.689 MB / 0.6205 GB, free: 1.895 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005609/0.5096, allocations: 270.7 kB / 0.6208 GB, free: 1.609 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003419/0.5099, allocations: 35.92 kB / 0.6208 GB, free: 1.574 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008685/0.5108, allocations: 39.98 kB / 0.6209 GB, free: 1.535 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001918/0.511, allocations: 108.2 kB / 0.621 GB, free: 1.43 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.496e-05/0.5111, allocations: 47.98 kB / 0.621 GB, free: 1.383 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002501/0.5136, allocations: 1.273 MB / 0.6223 GB, free: 88 kB / 442.7 MB Notification: Performance of sort global known variables: time 8.42e-07/0.5136, allocations: 0 / 0.6223 GB, free: 88 kB / 442.7 MB Notification: Performance of remove unused functions: time 0.003193/0.5168, allocations: 0.5275 MB / 0.6228 GB, free: 15.55 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 53 * 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 (111): * Single equations (assignments): 111 * 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.003193/0.52, allocations: 2.333 MB / 0.6251 GB, free: 13.04 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003757/0.5238, allocations: 2.24 MB / 0.6273 GB, free: 10.82 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.314e-06/0.5238, allocations: 3.938 kB / 0.6273 GB, free: 10.81 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008467/0.5247, allocations: 0.5952 MB / 0.6278 GB, free: 10.21 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004439/0.5291, allocations: 252 kB / 0.6281 GB, free: 9.965 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03333/0.5625, allocations: 16.92 MB / 0.6446 GB, free: 7.281 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002876/0.5654, allocations: 2.184 MB / 0.6467 GB, free: 5.066 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001773/0.5672, allocations: 1.081 MB / 0.6478 GB, free: 3.984 MB / 474.7 MB Notification: Performance of SimCode: time 1.152e-06/0.5672, allocations: 0 / 0.6478 GB, free: 3.984 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.136/5.703, allocations: 40.75 MB / 0.6876 GB, free: 151.5 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointSSR.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointSSR.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointSSR.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointSSR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointSSR_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_JointSSR_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_JointSSR.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointSSR.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointSSR_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/JointSSR/JointSSR.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointSSR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches