Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.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.SphericalSpherical,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical",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.0008643/0.0008643, allocations: 175.9 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.286/1.286, allocations: 205.4 MB / 222.9 MB, free: 9.016 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.0007308/0.0007307, allocations: 99.84 kB / 271.2 MB, free: 8.238 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.3283/0.3283, allocations: 43.56 MB / 363.1 MB, free: 51.91 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003996/0.0003997, allocations: 12 kB / 432.1 MB, free: 5.496 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1142, allocations: 58.84 MB / 490.9 MB, free: 10.56 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.222/0.3362, allocations: 42.63 MB / 0.521 GB, free: 20 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01984/0.3561, allocations: 9.589 MB / 0.5304 GB, free: 13.49 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009357/0.3655, allocations: 205.9 kB / 0.5306 GB, free: 13.45 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006091/0.3716, allocations: 2.177 MB / 0.5327 GB, free: 12.68 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0157/0.3874, allocations: 6.647 MB / 0.5392 GB, free: 9.898 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003567/0.391, allocations: 0.832 MB / 0.54 GB, free: 9.59 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.04391/0.4349, allocations: 35.15 MB / 0.5744 GB, free: 4.719 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006927/0.4419, allocations: 4.522 MB / 0.5788 GB, free: 176 kB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003104/0.445, allocations: 1.448 MB / 0.5802 GB, free: 14.72 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003409/0.4484, allocations: 2.411 MB / 0.5825 GB, free: 12.3 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006528/0.4491, allocations: 176 kB / 0.5827 GB, free: 12.13 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002545/0.4517, allocations: 1.268 MB / 0.584 GB, free: 10.86 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002011/0.4537, allocations: 1.952 MB / 0.5859 GB, free: 8.902 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002372/0.4561, allocations: 2.142 MB / 0.5879 GB, free: 6.742 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0068/0.4629, allocations: 6.161 MB / 0.594 GB, free: 0.5664 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.035e-06/0.4629, allocations: 0 / 0.594 GB, free: 0.5664 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.4629, allocations: 0 / 0.594 GB, free: 0.5664 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002033/0.4632, allocations: 0 / 0.594 GB, free: 0.5664 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: 1538 * Number of variables: 1538 Notification: Performance of Generate backend data structure: time 0.01123/0.4744, allocations: 4.779 MB / 0.5986 GB, free: 11.71 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.966e-05/0.4745, allocations: 12.03 kB / 0.5986 GB, free: 11.7 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002044/0.4765, allocations: 0.8006 MB / 0.5994 GB, free: 10.89 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03566/0.5122, allocations: 6.052 MB / 0.6053 GB, free: 4.824 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009221/0.5214, allocations: 4.305 MB / 0.6095 GB, free: 472 kB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002539/0.5218, allocations: 242.5 kB / 0.6098 GB, free: 228 kB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001149/0.5229, allocations: 347.6 kB / 0.6101 GB, free: 15.88 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01909/0.542, allocations: 10.78 MB / 0.6206 GB, free: 4.363 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001528/0.5422, allocations: 47.5 kB / 0.6207 GB, free: 4.316 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000403/0.5426, allocations: 171.8 kB / 0.6208 GB, free: 4.148 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003037/0.5457, allocations: 1.998 MB / 0.6228 GB, free: 2.145 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01945/0.5651, allocations: 9.225 MB / 0.6318 GB, free: 8.898 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2669/0.8322, allocations: 41.05 MB / 0.6719 GB, free: 129.5 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01124/0.8434, allocations: 4.232 MB / 0.676 GB, free: 128.8 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0028/0.8463, allocations: 1.877 MB / 0.6779 GB, free: 128.8 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01071/0.857, allocations: 7.504 MB / 0.6852 GB, free: 126.3 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.517e-05/0.8571, allocations: 55.2 kB / 0.6852 GB, free: 126.2 MB / 490.7 MB Notification: Performance of pre-optimization done (n=180): time 5.23e-06/0.8571, allocations: 0 / 0.6852 GB, free: 126.2 MB / 490.7 MB Notification: Performance of matching and sorting (n=236): time 0.1547/1.012, allocations: 41.25 MB / 0.7255 GB, free: 115.8 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.474e-05/1.012, allocations: 208.7 kB / 0.7257 GB, free: 115.6 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005011/1.017, allocations: 4.339 MB / 0.7299 GB, free: 113.3 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004934/1.018, allocations: 57.2 kB / 0.73 GB, free: 113.2 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001409/1.019, allocations: 3.223 MB / 0.7332 GB, free: 110.4 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008643/1.02, allocations: 0.8757 MB / 0.734 GB, free: 109.7 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003325/1.02, allocations: 126.3 kB / 0.7341 GB, free: 109.6 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002271/1.02, allocations: 0.5672 MB / 0.7347 GB, free: 109.1 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003767/1.024, allocations: 3.468 MB / 0.7381 GB, free: 107.3 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005061/1.029, allocations: 7.086 MB / 0.745 GB, free: 98.62 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009552/1.039, allocations: 11.34 MB / 0.7561 GB, free: 85.59 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.484e-05/1.039, allocations: 36 kB / 0.7561 GB, free: 85.55 MB / 490.7 MB Notification: Performance of matching and sorting (n=818) (initialization): time 0.03219/1.071, allocations: 15.66 MB / 0.7714 GB, free: 69.88 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.966e-05/1.071, allocations: 63.06 kB / 0.7715 GB, free: 69.82 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001041/1.071, allocations: 134.4 kB / 0.7716 GB, free: 69.69 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02116/1.092, allocations: 6.096 MB / 0.7775 GB, free: 63.58 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00433/1.097, allocations: 1.431 MB / 0.7789 GB, free: 62.15 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02715/1.124, allocations: 25.68 MB / 0.804 GB, free: 36.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005394/1.129, allocations: 397.1 kB / 0.8044 GB, free: 35.81 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001018/1.13, allocations: 376 kB / 0.8047 GB, free: 35.45 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 576 * Number of states: 0 () * Number of discrete variables: 42 (b3.color[3],b3.color[2],b3.color[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.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 (741): * Single equations (assignments): 736 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 51} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003379/1.134, allocations: 2.217 MB / 0.8069 GB, free: 33.22 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008202/1.135, allocations: 398.8 kB / 0.8073 GB, free: 32.83 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02604/1.161, allocations: 11.07 MB / 0.8181 GB, free: 21.73 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.341e-05/1.161, allocations: 24 kB / 0.8181 GB, free: 21.7 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.725e-05/1.161, allocations: 13.03 kB / 0.8181 GB, free: 21.69 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.222e-05/1.161, allocations: 15.89 kB / 0.8182 GB, free: 21.68 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03953/1.2, allocations: 20.6 MB / 0.8383 GB, free: 0.6211 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.698e-05/1.201, allocations: 8.625 kB / 0.8383 GB, free: 0.6133 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002068/1.203, allocations: 388 kB / 0.8386 GB, free: 240 kB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02075/1.223, allocations: 5.179 MB / 0.8437 GB, free: 11.05 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004734/1.224, allocations: 41.33 kB / 0.8437 GB, free: 11.01 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2841/1.508, allocations: 20.77 MB / 0.864 GB, free: 153.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.498e-06/1.508, allocations: 9.312 kB / 0.864 GB, free: 153.8 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03185/1.54, allocations: 14.3 MB / 0.878 GB, free: 151.6 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003135/1.543, allocations: 0.9771 MB / 0.879 GB, free: 151.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001236/1.544, allocations: 45.47 kB / 0.879 GB, free: 151.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002847/1.547, allocations: 179.1 kB / 0.8792 GB, free: 151.2 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009096/1.548, allocations: 160.5 kB / 0.8793 GB, free: 151.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002135/1.548, allocations: 65.06 kB / 0.8794 GB, free: 151.2 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0044/1.553, allocations: 2.735 MB / 0.8821 GB, free: 150.3 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.91e-07/1.553, allocations: 0 / 0.8821 GB, free: 150.3 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00656/1.559, allocations: 1.328 MB / 0.8834 GB, free: 150.1 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.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 (167): * Single equations (assignments): 162 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 45} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.032/1.591, allocations: 14.93 MB / 0.8979 GB, free: 144.7 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01493/1.606, allocations: 8.052 MB / 0.9058 GB, free: 141.6 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.587e-05/1.606, allocations: 1 kB / 0.9058 GB, free: 141.6 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.006022/1.612, allocations: 3.165 MB / 0.9089 GB, free: 140.2 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006653/1.619, allocations: 0.5154 MB / 0.9094 GB, free: 139.9 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08818/1.707, allocations: 50.07 MB / 0.9583 GB, free: 99.46 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003335/1.711, allocations: 3.525 MB / 0.9617 GB, free: 95.91 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002629/1.713, allocations: 2.105 MB / 0.9638 GB, free: 93.81 MB / 0.5105 GB Notification: Performance of SimCode: time 1.373e-06/1.713, allocations: 4 kB / 0.9638 GB, free: 93.81 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.071/9.785, allocations: 125.6 MB / 1.086 GB, free: 145.4 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/FourbarVariants/SphericalSpherical/SphericalSpherical.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches