Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.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.FreeMotionScalarInit3,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009628/0.0009627, allocations: 199.8 kB / 16.1 MB, free: 5.699 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.238/1.238, allocations: 226.5 MB / 243.4 MB, free: 6.383 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008123/0.0008123, allocations: 100.4 kB / 295.5 MB, free: 6.656 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2905/0.2905, allocations: 44.82 MB / 392.3 MB, free: 35.64 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002542/0.0002542, allocations: 11.98 kB / 465.4 MB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3026/0.3029, allocations: 62.96 MB / 0.516 GB, free: 37.1 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3): time 0.02639/0.3294, allocations: 38.02 MB / 0.5531 GB, free: 9.961 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01561/0.345, allocations: 8.643 MB / 0.5615 GB, free: 4.086 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006827/0.3519, allocations: 174.1 kB / 0.5617 GB, free: 4.059 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005312/0.3572, allocations: 1.913 MB / 0.5636 GB, free: 3.379 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.015/0.3722, allocations: 5.606 MB / 0.569 GB, free: 1.062 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002734/0.375, allocations: 0.5286 MB / 0.5696 GB, free: 0.7188 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.006839/0.3818, allocations: 4.783 MB / 0.5742 GB, free: 13.62 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006645/0.3885, allocations: 4.592 MB / 0.5787 GB, free: 8.969 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00229/0.3908, allocations: 1.226 MB / 0.5799 GB, free: 7.738 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002708/0.3936, allocations: 1.955 MB / 0.5818 GB, free: 5.777 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007691/0.3944, allocations: 160 kB / 0.582 GB, free: 5.621 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002559/0.3969, allocations: 1.065 MB / 0.583 GB, free: 4.555 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002085/0.399, allocations: 1.776 MB / 0.5847 GB, free: 2.773 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002893/0.402, allocations: 2.083 MB / 0.5868 GB, free: 0.6719 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006401/0.4084, allocations: 6.11 MB / 0.5927 GB, free: 10.55 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.4084, allocations: 3.938 kB / 0.5928 GB, free: 10.54 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.4084, allocations: 3.938 kB / 0.5928 GB, free: 10.54 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002374/0.4087, allocations: 0 / 0.5928 GB, free: 10.54 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: 1840 * Number of variables: 1840 Notification: Performance of Generate backend data structure: time 0.009897/0.4186, allocations: 4.465 MB / 0.5971 GB, free: 6.004 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.858e-05/0.4186, allocations: 11.97 kB / 0.5971 GB, free: 5.992 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001474/0.4201, allocations: 0.8685 MB / 0.598 GB, free: 5.109 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01031/0.4304, allocations: 3.278 MB / 0.6012 GB, free: 1.82 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004846/0.4353, allocations: 2.477 MB / 0.6036 GB, free: 15.29 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000219/0.4355, allocations: 262.8 kB / 0.6038 GB, free: 15.04 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008722/0.4364, allocations: 355.7 kB / 0.6042 GB, free: 14.69 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01795/0.4544, allocations: 12.33 MB / 0.6162 GB, free: 1.895 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.556e-05/0.4545, allocations: 27.72 kB / 0.6163 GB, free: 1.867 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000434/0.455, allocations: 159.8 kB / 0.6164 GB, free: 1.711 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003777/0.4587, allocations: 2.696 MB / 0.619 GB, free: 15.01 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0194/0.4782, allocations: 11.25 MB / 0.63 GB, free: 3.746 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05267/0.5309, allocations: 39.54 MB / 0.6686 GB, free: 11.3 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009259/0.5402, allocations: 4.951 MB / 0.6735 GB, free: 6.109 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003052/0.5433, allocations: 2.355 MB / 0.6758 GB, free: 3.746 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.214/0.7573, allocations: 6.736 MB / 0.6824 GB, free: 128.5 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.461e-05/0.7574, allocations: 50.41 kB / 0.6824 GB, free: 128.5 MB / 490.7 MB Notification: Performance of pre-optimization done (n=226): time 5.921e-06/0.7574, allocations: 0 / 0.6824 GB, free: 128.5 MB / 490.7 MB Notification: Performance of matching and sorting (n=235): time 0.03444/0.7918, allocations: 16.14 MB / 0.6982 GB, free: 123.3 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.952e-05/0.7919, allocations: 74.73 kB / 0.6982 GB, free: 123.2 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004793/0.7967, allocations: 3.126 MB / 0.7013 GB, free: 122.1 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003475/0.7971, allocations: 60.69 kB / 0.7013 GB, free: 122 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002/0.7991, allocations: 3.225 MB / 0.7045 GB, free: 119.5 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001175/0.8003, allocations: 0.8797 MB / 0.7053 GB, free: 118.9 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005085/0.8008, allocations: 119.2 kB / 0.7055 GB, free: 118.8 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0005788/0.8014, allocations: 0.5595 MB / 0.706 GB, free: 118.4 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004207/0.8056, allocations: 2.341 MB / 0.7083 GB, free: 117.7 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005826/0.8115, allocations: 5.659 MB / 0.7138 GB, free: 112.5 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008955/0.8205, allocations: 8.714 MB / 0.7223 GB, free: 105.7 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001559/0.8207, allocations: 31.88 kB / 0.7224 GB, free: 105.7 MB / 490.7 MB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01582/0.8365, allocations: 8.766 MB / 0.7309 GB, free: 101.9 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001465/0.8367, allocations: 57 kB / 0.731 GB, free: 101.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002157/0.8369, allocations: 118.1 kB / 0.7311 GB, free: 101.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003229/0.8401, allocations: 1.125 MB / 0.7322 GB, free: 101 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004001/0.8442, allocations: 1.35 MB / 0.7335 GB, free: 99.82 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004873/0.8491, allocations: 4.585 MB / 0.738 GB, free: 95.69 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004303/0.8534, allocations: 321.7 kB / 0.7383 GB, free: 95.42 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000954/0.8544, allocations: 360.5 kB / 0.7386 GB, free: 95.08 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 527 * Number of states: 0 () * Number of discrete variables: 32 (freeMotionScalarInit.arrow.arrow.arrowLine.twoHeadedArrow,freeMotionScalarInit.arrow.headAtOrigin,spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[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],freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.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 (730): * Single equations (assignments): 722 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 1 {4 5} Notification: Performance of prepare postOptimizeDAE: time 0.004362/0.8588, allocations: 2.361 MB / 0.7409 GB, free: 93.03 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006872/0.8595, allocations: 292.2 kB / 0.7412 GB, free: 92.74 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00674/0.8662, allocations: 4.385 MB / 0.7455 GB, free: 89.08 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.496e-05/0.8663, allocations: 44.78 kB / 0.7455 GB, free: 89.04 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.209e-05/0.8663, allocations: 0 / 0.7455 GB, free: 89.04 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.318e-05/0.8664, allocations: 15.25 kB / 0.7456 GB, free: 89.04 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01685/0.8832, allocations: 10.36 MB / 0.7557 GB, free: 78.77 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.686e-05/0.8833, allocations: 12.12 kB / 0.7557 GB, free: 78.76 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001573/0.8848, allocations: 375.4 kB / 0.756 GB, free: 78.39 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001913/0.8868, allocations: 0.6812 MB / 0.7567 GB, free: 77.7 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002922/0.8871, allocations: 44.53 kB / 0.7567 GB, free: 77.66 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00216/0.8893, allocations: 2.42 MB / 0.7591 GB, free: 75.11 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/0.8893, allocations: 11.94 kB / 0.7591 GB, free: 75.09 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008377/0.8977, allocations: 6.697 MB / 0.7657 GB, free: 68.3 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007877/0.8985, allocations: 341.2 kB / 0.766 GB, free: 67.95 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006644/0.8992, allocations: 48.55 kB / 0.766 GB, free: 67.9 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001513/0.9007, allocations: 133.9 kB / 0.7662 GB, free: 67.77 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000388/0.9011, allocations: 133.7 kB / 0.7663 GB, free: 67.64 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001554/0.9013, allocations: 70.05 kB / 0.7664 GB, free: 67.57 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002508/0.9038, allocations: 1.888 MB / 0.7682 GB, free: 65.69 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.61e-07/0.9038, allocations: 0 / 0.7682 GB, free: 65.69 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0043/0.9081, allocations: 1.053 MB / 0.7692 GB, free: 64.64 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 12 (freeMotionScalarInit.r_rel_a_1,freeMotionScalarInit.r_rel_a_2,freeMotionScalarInit.r_rel_a_3,freeMotionScalarInit.v_rel_a_1,freeMotionScalarInit.v_rel_a_2,freeMotionScalarInit.v_rel_a_3,freeMotionScalarInit.angle_1,freeMotionScalarInit.angle_2,freeMotionScalarInit.angle_3,body.w_a[1],body.w_a[2],body.w_a[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 (187): * Single equations (assignments): 178 * 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.008165/0.9163, allocations: 7.368 MB / 0.7764 GB, free: 57.18 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.007584/0.9239, allocations: 5.73 MB / 0.782 GB, free: 51.46 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.956e-06/0.924, allocations: 0 / 0.782 GB, free: 51.46 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003409/0.9274, allocations: 2.385 MB / 0.7843 GB, free: 49.02 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004856/0.9323, allocations: 465.8 kB / 0.7848 GB, free: 48.58 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04958/0.9819, allocations: 34.36 MB / 0.8183 GB, free: 11.34 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004766/0.9867, allocations: 3.675 MB / 0.8219 GB, free: 7.637 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002801/0.9895, allocations: 2.124 MB / 0.824 GB, free: 5.512 MB / 490.7 MB Notification: Performance of SimCode: time 8.52e-07/0.9895, allocations: 0 / 0.824 GB, free: 5.512 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.44/8.429, allocations: 131.6 MB / 0.9525 GB, free: 114.8 MB / 0.5261 GB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotionScalarInit3/FreeMotionScalarInit3.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches