Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.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.FourbarVariants.JointUSP,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_FourbarVariants_JointUSP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSP,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_FourbarVariants_JointUSP",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.0009871/0.0009873, allocations: 174.7 kB / 16.72 MB, free: 5.078 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.399/1.399, 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.0007331/0.0007331, allocations: 96.36 kB / 271.2 MB, free: 8.254 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.3414/0.3414, allocations: 43.57 MB / 363.1 MB, free: 52.14 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003738/0.0003738, allocations: 8 kB / 432.1 MB, free: 5.734 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.123/0.1233, allocations: 58.85 MB / 490.9 MB, free: 10.8 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.2926/0.416, allocations: 62.12 MB / 0.5401 GB, free: 6.172 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.03405/0.4501, allocations: 13.56 MB / 0.5533 GB, free: 12.9 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01501/0.4652, allocations: 298.3 kB / 0.5536 GB, free: 12.85 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01105/0.4763, allocations: 3.206 MB / 0.5567 GB, free: 11.71 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03026/0.5066, allocations: 9.602 MB / 0.5661 GB, free: 7.672 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006493/0.5131, allocations: 1.237 MB / 0.5673 GB, free: 7.207 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.06542/0.5785, allocations: 52.04 MB / 0.6181 GB, free: 7.973 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01222/0.5908, allocations: 9.203 MB / 0.6271 GB, free: 14.67 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004354/0.5952, allocations: 2.149 MB / 0.6292 GB, free: 12.52 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005072/0.6003, allocations: 3.377 MB / 0.6325 GB, free: 9.129 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001103/0.6014, allocations: 240 kB / 0.6327 GB, free: 8.895 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003238/0.6047, allocations: 1.459 MB / 0.6342 GB, free: 7.434 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002971/0.6077, allocations: 2.864 MB / 0.637 GB, free: 4.562 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003966/0.6116, allocations: 3.086 MB / 0.64 GB, free: 1.453 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01028/0.6219, allocations: 9.578 MB / 0.6493 GB, free: 7.852 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.622, allocations: 4 kB / 0.6493 GB, free: 7.848 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.622, allocations: 0 / 0.6493 GB, free: 7.848 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003495/0.6223, allocations: 0 / 0.6493 GB, free: 7.848 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2166 * Number of variables: 2166 Notification: Performance of Generate backend data structure: time 0.01572/0.6381, allocations: 6.786 MB / 0.656 GB, free: 0.9805 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.613e-05/0.6381, allocations: 12.03 kB / 0.656 GB, free: 0.9688 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003103/0.6413, allocations: 1.156 MB / 0.6571 GB, free: 15.8 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05223/0.6935, allocations: 8.475 MB / 0.6654 GB, free: 7.301 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01437/0.7079, allocations: 6.561 MB / 0.6718 GB, free: 0.6602 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004229/0.7084, allocations: 382.2 kB / 0.6722 GB, free: 292 kB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.227/0.9354, allocations: 0.511 MB / 0.6727 GB, free: 139.1 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0289/0.9643, allocations: 15.42 MB / 0.6877 GB, free: 134.4 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001769/0.9645, allocations: 66.55 kB / 0.6878 GB, free: 134.4 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005821/0.9651, allocations: 234.9 kB / 0.688 GB, free: 134.3 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003242/0.9684, allocations: 2.548 MB / 0.6905 GB, free: 133.8 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02258/0.991, allocations: 12.86 MB / 0.703 GB, free: 129.8 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07027/1.061, allocations: 57.23 MB / 0.7589 GB, free: 86.27 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01463/1.076, allocations: 6.337 MB / 0.7651 GB, free: 79.78 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003542/1.08, allocations: 3.312 MB / 0.7684 GB, free: 76.46 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01394/1.093, allocations: 11.29 MB / 0.7794 GB, free: 64.82 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.115e-05/1.094, allocations: 72.47 kB / 0.7794 GB, free: 64.74 MB / 490.7 MB Notification: Performance of pre-optimization done (n=245): time 5.49e-06/1.094, allocations: 0 / 0.7794 GB, free: 64.74 MB / 490.7 MB Notification: Performance of matching and sorting (n=338): time 0.1264/1.22, allocations: 40.17 MB / 0.8187 GB, free: 24.5 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.719e-05/1.22, allocations: 243.9 kB / 0.8189 GB, free: 24.21 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006483/1.227, allocations: 5.755 MB / 0.8245 GB, free: 18.48 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007221/1.227, allocations: 78.55 kB / 0.8246 GB, free: 18.4 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002024/1.229, allocations: 4.456 MB / 0.829 GB, free: 13.95 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001242/1.231, allocations: 1.236 MB / 0.8302 GB, free: 12.72 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003796/1.231, allocations: 164 kB / 0.8303 GB, free: 12.56 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002807/1.231, allocations: 0.6453 MB / 0.8309 GB, free: 11.91 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004435/1.236, allocations: 3.737 MB / 0.8346 GB, free: 8.16 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006616/1.242, allocations: 8.273 MB / 0.8427 GB, free: 13.65 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01633/1.259, allocations: 12.95 MB / 0.8553 GB, free: 14.46 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001513/1.259, allocations: 44 kB / 0.8554 GB, free: 14.42 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1067) (initialization): time 0.2466/1.506, allocations: 15.39 MB / 0.8704 GB, free: 146.4 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001299/1.506, allocations: 77.31 kB / 0.8705 GB, free: 146.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002096/1.506, allocations: 161.5 kB / 0.8706 GB, free: 146.4 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01447/1.52, allocations: 4.099 MB / 0.8746 GB, free: 146.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005974/1.526, allocations: 1.798 MB / 0.8764 GB, free: 146.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02466/1.551, allocations: 19.58 MB / 0.8955 GB, free: 140.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005955/1.557, allocations: 0.494 MB / 0.896 GB, free: 140.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008712/1.558, allocations: 462.2 kB / 0.8964 GB, free: 140.1 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 717 * Number of states: 0 () * Number of discrete variables: 46 (jointUSP.prismatic.positiveBranch,body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[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],ground_rod.color[3],ground_rod.color[2],ground_rod.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (966): * Single equations (assignments): 962 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 77} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004343/1.562, allocations: 3.132 MB / 0.8995 GB, free: 138.9 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009318/1.563, allocations: 0.5262 MB / 0.9 GB, free: 138.9 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01854/1.582, allocations: 9.596 MB / 0.9094 GB, free: 135.6 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.539e-05/1.582, allocations: 37.81 kB / 0.9094 GB, free: 135.6 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.558e-05/1.582, allocations: 14.06 kB / 0.9094 GB, free: 135.6 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.889e-05/1.582, allocations: 16.28 kB / 0.9094 GB, free: 135.6 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03516/1.617, allocations: 19.73 MB / 0.9287 GB, free: 128.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.626e-05/1.617, allocations: 3.875 kB / 0.9287 GB, free: 128.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002039/1.619, allocations: 495.4 kB / 0.9292 GB, free: 128.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01113/1.631, allocations: 3.662 MB / 0.9328 GB, free: 127.8 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004039/1.631, allocations: 61.72 kB / 0.9328 GB, free: 127.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0204/1.651, allocations: 17.14 MB / 0.9496 GB, free: 115.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.212e-06/1.651, allocations: 11.94 kB / 0.9496 GB, free: 115.3 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02103/1.672, allocations: 14.19 MB / 0.9634 GB, free: 101.3 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002583/1.675, allocations: 1.146 MB / 0.9645 GB, free: 100.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006979/1.676, allocations: 60 kB / 0.9646 GB, free: 100.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002456/1.678, allocations: 233 kB / 0.9648 GB, free: 99.87 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008942/1.679, allocations: 222 kB / 0.965 GB, free: 99.65 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002304/1.679, allocations: 91.94 kB / 0.9651 GB, free: 99.56 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.004469/1.684, allocations: 3.648 MB / 0.9687 GB, free: 95.95 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.31e-07/1.684, allocations: 0 / 0.9687 GB, free: 95.95 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005953/1.69, allocations: 1.704 MB / 0.9703 GB, free: 94.25 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * Number of states: 2 (revolute.phi,revolute.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 (256): * Single equations (assignments): 252 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 64} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02148/1.711, allocations: 14.92 MB / 0.9849 GB, free: 79.18 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01163/1.723, allocations: 9.187 MB / 0.9939 GB, free: 70.05 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.107e-05/1.723, allocations: 4 kB / 0.9939 GB, free: 70.04 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004196/1.727, allocations: 3.627 MB / 0.9974 GB, free: 66.4 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009115/1.736, allocations: 0.7258 MB / 0.9981 GB, free: 65.7 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1005/1.837, allocations: 63.72 MB / 1.06 GB, free: 12.8 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007283/1.844, allocations: 4.842 MB / 1.065 GB, free: 7.926 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.193/2.037, allocations: 3.136 MB / 1.068 GB, free: 160.7 MB / 0.5261 GB Notification: Performance of SimCode: time 1.032e-06/2.037, allocations: 1.656 kB / 1.068 GB, free: 160.7 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.9/11.94, allocations: 146.7 MB / 1.211 GB, free: 58.61 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_FourbarVariants_JointUSP_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_FourbarVariants_JointUSP.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/FourbarVariants/JointUSP/JointUSP.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches