Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.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.FreeMotionScalarInit5,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit5",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit5",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001069/0.001069, allocations: 196 kB / 16.1 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.194/1.194, allocations: 226.5 MB / 243.4 MB, free: 6.504 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008501/0.0008501, allocations: 104.7 kB / 295.5 MB, free: 6.668 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3001/0.3001, allocations: 44.83 MB / 392.3 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002322/0.0002322, allocations: 8 kB / 465.4 MB, free: 12.56 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2907/0.2909, allocations: 62.96 MB / 0.516 GB, free: 37.18 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5): time 0.02641/0.3174, allocations: 41.13 MB / 0.5561 GB, free: 7.816 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01587/0.3333, allocations: 9.219 MB / 0.5651 GB, free: 1.551 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006656/0.3399, allocations: 197.1 kB / 0.5653 GB, free: 1.516 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004677/0.3446, allocations: 1.754 MB / 0.567 GB, free: 0.8828 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01253/0.3572, allocations: 5.071 MB / 0.572 GB, free: 14.71 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002596/0.3598, allocations: 0.4888 MB / 0.5725 GB, free: 14.39 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.007042/0.3669, allocations: 4.582 MB / 0.5769 GB, free: 10.84 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006064/0.373, allocations: 4.469 MB / 0.5813 GB, free: 6.293 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00183/0.3748, allocations: 1.152 MB / 0.5824 GB, free: 5.137 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002156/0.377, allocations: 1.834 MB / 0.5842 GB, free: 3.297 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003855/0.3774, allocations: 148 kB / 0.5844 GB, free: 3.152 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001888/0.3793, allocations: 1.022 MB / 0.5854 GB, free: 2.129 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00149/0.3808, allocations: 1.695 MB / 0.587 GB, free: 440 kB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001804/0.3826, allocations: 1.951 MB / 0.5889 GB, free: 14.46 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005466/0.3881, allocations: 5.826 MB / 0.5946 GB, free: 8.621 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.3881, allocations: 0 / 0.5946 GB, free: 8.621 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.3881, allocations: 0 / 0.5946 GB, free: 8.621 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001576/0.3883, allocations: 0 / 0.5946 GB, free: 8.621 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: 1739 * Number of variables: 1739 Notification: Performance of Generate backend data structure: time 0.008539/0.3968, allocations: 4.284 MB / 0.5988 GB, free: 4.27 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/0.3969, allocations: 8.031 kB / 0.5988 GB, free: 4.262 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00101/0.3979, allocations: 0.8152 MB / 0.5996 GB, free: 3.438 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01001/0.4079, allocations: 3.251 MB / 0.6028 GB, free: 180 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004405/0.4123, allocations: 2.43 MB / 0.6051 GB, free: 13.7 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001643/0.4125, allocations: 246.3 kB / 0.6054 GB, free: 13.46 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006664/0.4132, allocations: 323.7 kB / 0.6057 GB, free: 13.14 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01616/0.4294, allocations: 11.56 MB / 0.617 GB, free: 1.145 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.241e-05/0.4295, allocations: 27.66 kB / 0.617 GB, free: 1.117 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000399/0.4299, allocations: 147.8 kB / 0.6171 GB, free: 0.9727 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003734/0.4336, allocations: 2.582 MB / 0.6197 GB, free: 14.38 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01746/0.4511, allocations: 10.64 MB / 0.63 GB, free: 3.727 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04805/0.4992, allocations: 36.64 MB / 0.6658 GB, free: 14.25 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007209/0.5064, allocations: 4.277 MB / 0.67 GB, free: 9.75 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002855/0.5094, allocations: 2.107 MB / 0.6721 GB, free: 7.645 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001209/0.5106, allocations: 1.323 MB / 0.6734 GB, free: 6.098 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.761e-05/0.5107, allocations: 56.61 kB / 0.6734 GB, free: 6.035 MB / 490.7 MB Notification: Performance of pre-optimization done (n=235): time 4.959e-06/0.5107, allocations: 7.938 kB / 0.6734 GB, free: 6.027 MB / 490.7 MB Notification: Performance of matching and sorting (n=256): time 0.2394/0.75, allocations: 13.73 MB / 0.6868 GB, free: 128.3 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.389e-05/0.7501, allocations: 79.06 kB / 0.6869 GB, free: 128.2 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00334/0.7535, allocations: 2.902 MB / 0.6897 GB, free: 127.1 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002608/0.7538, allocations: 63.81 kB / 0.6898 GB, free: 127.1 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001541/0.7553, allocations: 3.033 MB / 0.6928 GB, free: 124.7 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007643/0.7561, allocations: 0.9456 MB / 0.6937 GB, free: 124 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002169/0.7563, allocations: 116.9 kB / 0.6938 GB, free: 124 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002513/0.7566, allocations: 0.5543 MB / 0.6943 GB, free: 123.5 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002826/0.7594, allocations: 2.315 MB / 0.6966 GB, free: 122.8 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003873/0.7633, allocations: 5.53 MB / 0.702 GB, free: 117.8 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008216/0.7715, allocations: 8.622 MB / 0.7104 GB, free: 111.2 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.846e-05/0.7716, allocations: 32.28 kB / 0.7104 GB, free: 111.2 MB / 490.7 MB Notification: Performance of matching and sorting (n=775) (initialization): time 0.01532/0.7869, allocations: 8.542 MB / 0.7188 GB, free: 108.1 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.955e-05/0.7871, allocations: 57.97 kB / 0.7188 GB, free: 108.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000137/0.7872, allocations: 112 kB / 0.7189 GB, free: 108.1 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003548/0.7908, allocations: 1.039 MB / 0.72 GB, free: 108 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004079/0.7949, allocations: 1.332 MB / 0.7213 GB, free: 107.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002145/0.797, allocations: 2.483 MB / 0.7237 GB, free: 106.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003387/0.8004, allocations: 308.9 kB / 0.724 GB, free: 106.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004621/0.8009, allocations: 339.4 kB / 0.7243 GB, free: 106.2 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 510 * Number of states: 0 () * Number of discrete variables: 29 (freeMotionScalarInit1.arrow.arrow.arrowLine.twoHeadedArrow,freeMotionScalarInit1.arrow.headAtOrigin,freeMotionScalarInit2.arrowColor[3],freeMotionScalarInit2.arrowColor[2],freeMotionScalarInit2.arrowColor[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],freeMotionScalarInit1.arrowColor[3],freeMotionScalarInit1.arrowColor[2],freeMotionScalarInit1.arrowColor[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 (722): * Single equations (assignments): 713 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003096/0.804, allocations: 2.31 MB / 0.7266 GB, free: 105.1 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000368/0.8044, allocations: 295.2 kB / 0.7268 GB, free: 105 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007425/0.8118, allocations: 4.964 MB / 0.7317 GB, free: 102.8 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.716e-05/0.8119, allocations: 52.31 kB / 0.7317 GB, free: 102.8 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.784e-06/0.8119, allocations: 4 kB / 0.7317 GB, free: 102.8 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.517e-05/0.8119, allocations: 13.27 kB / 0.7318 GB, free: 102.8 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01467/0.8266, allocations: 11.52 MB / 0.743 GB, free: 92.73 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.141e-05/0.8266, allocations: 12.06 kB / 0.743 GB, free: 92.72 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001472/0.8281, allocations: 407.3 kB / 0.7434 GB, free: 92.32 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003006/0.8311, allocations: 0.9035 MB / 0.7443 GB, free: 91.41 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000157/0.8313, allocations: 58.95 kB / 0.7443 GB, free: 91.35 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00176/0.8331, allocations: 2.275 MB / 0.7466 GB, free: 88.95 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.229e-06/0.8331, allocations: 8 kB / 0.7466 GB, free: 88.94 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008698/0.8418, allocations: 7.362 MB / 0.7538 GB, free: 81.41 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005222/0.8423, allocations: 345.2 kB / 0.7541 GB, free: 81.05 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002906/0.8426, allocations: 41.09 kB / 0.7541 GB, free: 81.02 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001107/0.8437, allocations: 139.8 kB / 0.7543 GB, free: 80.88 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000421/0.8442, allocations: 154.6 kB / 0.7544 GB, free: 80.73 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001418/0.8443, allocations: 74.25 kB / 0.7545 GB, free: 80.66 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001979/0.8463, allocations: 1.76 MB / 0.7562 GB, free: 78.89 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.8463, allocations: 1.219 kB / 0.7562 GB, free: 78.89 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003507/0.8498, allocations: 1.01 MB / 0.7572 GB, free: 77.89 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 12 (freeMotionScalarInit1.r_rel_a_1,freeMotionScalarInit1.r_rel_a_2,freeMotionScalarInit1.r_rel_a_3,freeMotionScalarInit1.v_rel_a_1,freeMotionScalarInit1.v_rel_a_2,freeMotionScalarInit1.v_rel_a_3,freeMotionScalarInit2.angle_1,freeMotionScalarInit2.angle_2,freeMotionScalarInit2.angle_3,freeMotionScalarInit2.angle_d_1,freeMotionScalarInit2.angle_d_2,freeMotionScalarInit2.angle_d_3) * 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 (206): * Single equations (assignments): 197 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008892/0.8587, allocations: 8.042 MB / 0.765 GB, free: 69.68 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.00774/0.8665, allocations: 6.088 MB / 0.771 GB, free: 63.56 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.346e-06/0.8665, allocations: 320 / 0.771 GB, free: 63.56 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003374/0.8699, allocations: 2.549 MB / 0.7735 GB, free: 60.95 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004598/0.8745, allocations: 496.9 kB / 0.774 GB, free: 60.48 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04123/0.9157, allocations: 33.84 MB / 0.807 GB, free: 23.77 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002995/0.9188, allocations: 3.591 MB / 0.8105 GB, free: 20.15 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002178/0.921, allocations: 2.054 MB / 0.8125 GB, free: 18.09 MB / 490.7 MB Notification: Performance of SimCode: time 8.91e-07/0.921, allocations: 0 / 0.8125 GB, free: 18.09 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.811/8.732, allocations: 137.9 MB / 0.9472 GB, free: 121.6 MB / 0.5261 GB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit5_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit5.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotionScalarInit5/FreeMotionScalarInit5.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches