Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.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.FreeMotionScalarInit3,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3",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.00112/0.00112, allocations: 175.3 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.391/1.391, allocations: 205.4 MB / 222.9 MB, free: 8.938 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.0006659/0.000666, allocations: 94.39 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.3049/0.3049, allocations: 43.55 MB / 363.1 MB, free: 52.09 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003392/0.0003392, allocations: 12 kB / 432.1 MB, free: 5.73 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1022, allocations: 58.85 MB / 490.9 MB, free: 10.79 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3): time 0.2271/0.3294, allocations: 38.38 MB / 0.5169 GB, free: 23.18 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01781/0.3472, allocations: 8.68 MB / 0.5254 GB, free: 17.31 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00717/0.3544, allocations: 175.7 kB / 0.5255 GB, free: 17.28 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004856/0.3593, allocations: 1.921 MB / 0.5274 GB, free: 16.6 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01365/0.373, allocations: 5.661 MB / 0.5329 GB, free: 14.27 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002674/0.3756, allocations: 0.5315 MB / 0.5335 GB, free: 14.06 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.005727/0.3814, allocations: 4.849 MB / 0.5382 GB, free: 12.38 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007105/0.3885, allocations: 4.634 MB / 0.5427 GB, free: 10.5 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002713/0.3913, allocations: 1.265 MB / 0.544 GB, free: 10.07 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003891/0.3952, allocations: 2.03 MB / 0.5459 GB, free: 9.453 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001144/0.3963, allocations: 165.4 kB / 0.5461 GB, free: 9.453 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003319/0.3997, allocations: 1.079 MB / 0.5472 GB, free: 9.195 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003143/0.4028, allocations: 1.845 MB / 0.549 GB, free: 8.641 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004733/0.4076, allocations: 2.138 MB / 0.551 GB, free: 7.145 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006974/0.4146, allocations: 6.344 MB / 0.5572 GB, free: 3.281 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.4146, allocations: 0 / 0.5572 GB, free: 3.281 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.4146, allocations: 0 / 0.5572 GB, free: 3.281 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001741/0.4148, allocations: 0.75 kB / 0.5572 GB, free: 3.281 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: 1888 * Number of variables: 1888 Notification: Performance of Generate backend data structure: time 0.008774/0.4236, allocations: 4.459 MB / 0.5616 GB, free: 160 kB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/0.4236, allocations: 10.66 kB / 0.5616 GB, free: 160 kB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001282/0.4249, allocations: 0.8825 MB / 0.5625 GB, free: 15.55 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01067/0.4356, allocations: 3.299 MB / 0.5657 GB, free: 13.67 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006731/0.4423, allocations: 2.773 MB / 0.5684 GB, free: 10.84 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000238/0.4426, allocations: 271.2 kB / 0.5687 GB, free: 10.58 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001364/0.444, allocations: 367.6 kB / 0.569 GB, free: 10.22 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02418/0.4682, allocations: 12.63 MB / 0.5813 GB, free: 13.12 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001152/0.4683, allocations: 39.64 kB / 0.5814 GB, free: 13.08 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004977/0.4688, allocations: 163.8 kB / 0.5815 GB, free: 12.92 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004349/0.4732, allocations: 2.762 MB / 0.5842 GB, free: 10.15 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02237/0.4956, allocations: 11.56 MB / 0.5955 GB, free: 14.57 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06075/0.5564, allocations: 40.48 MB / 0.6351 GB, free: 5.188 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01056/0.567, allocations: 5.083 MB / 0.64 GB, free: 15.87 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003587/0.5706, allocations: 2.401 MB / 0.6424 GB, free: 13.46 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01123/0.5818, allocations: 6.839 MB / 0.649 GB, free: 6.25 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.744e-05/0.5819, allocations: 48.56 kB / 0.6491 GB, free: 6.191 MB / 474.7 MB Notification: Performance of pre-optimization done (n=235): time 6.292e-06/0.5819, allocations: 4 kB / 0.6491 GB, free: 6.188 MB / 474.7 MB Notification: Performance of matching and sorting (n=244): time 0.03696/0.6189, allocations: 16.5 MB / 0.6652 GB, free: 5.527 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.305e-05/0.619, allocations: 77.41 kB / 0.6653 GB, free: 5.438 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006138/0.6251, allocations: 3.196 MB / 0.6684 GB, free: 2.23 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001848/0.6253, allocations: 57.7 kB / 0.6685 GB, free: 2.168 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.193/0.8183, allocations: 3.302 MB / 0.6717 GB, free: 138.8 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001216/0.8196, allocations: 0.9131 MB / 0.6726 GB, free: 138.3 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004249/0.82, allocations: 120.9 kB / 0.6727 GB, free: 138.3 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003897/0.8204, allocations: 0.5693 MB / 0.6732 GB, free: 138 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003823/0.8242, allocations: 2.401 MB / 0.6756 GB, free: 137.9 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00564/0.8299, allocations: 5.801 MB / 0.6813 GB, free: 133.6 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009511/0.8394, allocations: 8.93 MB / 0.69 GB, free: 126.8 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001555/0.8396, allocations: 37.19 kB / 0.69 GB, free: 126.8 MB / 490.7 MB Notification: Performance of matching and sorting (n=813) (initialization): time 0.01615/0.8558, allocations: 8.969 MB / 0.6988 GB, free: 123.6 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.064e-05/0.8559, allocations: 56.59 kB / 0.6988 GB, free: 123.6 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000153/0.856, allocations: 118.8 kB / 0.6989 GB, free: 123.6 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003146/0.8592, allocations: 1.129 MB / 0.7 GB, free: 123.4 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004537/0.8637, allocations: 1.387 MB / 0.7014 GB, free: 123.3 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005068/0.8688, allocations: 4.589 MB / 0.7059 GB, free: 120.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004945/0.8738, allocations: 330.6 kB / 0.7062 GB, free: 120.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00163/0.8755, allocations: 355.7 kB / 0.7065 GB, free: 120.6 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 540 * Number of states: 0 () * Number of discrete variables: 30 (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 (752): * Single equations (assignments): 744 * 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.006367/0.8818, allocations: 2.436 MB / 0.7089 GB, free: 119.5 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006134/0.8825, allocations: 310.3 kB / 0.7092 GB, free: 119.3 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007829/0.8903, allocations: 4.483 MB / 0.7136 GB, free: 117.7 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.602e-05/0.8904, allocations: 48.59 kB / 0.7136 GB, free: 117.7 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.666e-06/0.8904, allocations: 1.406 kB / 0.7136 GB, free: 117.7 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.825e-05/0.8904, allocations: 10.41 kB / 0.7136 GB, free: 117.7 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01773/0.9082, allocations: 10.62 MB / 0.724 GB, free: 114 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-05/0.9082, allocations: 4.625 kB / 0.724 GB, free: 114 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001628/0.9099, allocations: 395.5 kB / 0.7244 GB, free: 114 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00198/0.9119, allocations: 0.6749 MB / 0.7251 GB, free: 113.9 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001877/0.9121, allocations: 53.69 kB / 0.7251 GB, free: 113.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00233/0.9144, allocations: 2.427 MB / 0.7275 GB, free: 112.3 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.442e-06/0.9144, allocations: 14.88 kB / 0.7275 GB, free: 112.3 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009112/0.9235, allocations: 6.863 MB / 0.7342 GB, free: 107.4 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009268/0.9245, allocations: 360 kB / 0.7345 GB, free: 107 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007016/0.9252, allocations: 42.53 kB / 0.7346 GB, free: 107 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001611/0.9268, allocations: 141.3 kB / 0.7347 GB, free: 106.9 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004566/0.9273, allocations: 141.2 kB / 0.7348 GB, free: 106.8 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001716/0.9275, allocations: 68.42 kB / 0.7349 GB, free: 106.8 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002919/0.9304, allocations: 1.935 MB / 0.7368 GB, free: 105.2 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.9305, allocations: 4 kB / 0.7368 GB, free: 105.2 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.004955/0.9354, allocations: 1.072 MB / 0.7379 GB, free: 104.1 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 (197): * Single equations (assignments): 188 * 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.009415/0.9448, allocations: 7.539 MB / 0.7452 GB, free: 97.33 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.008076/0.953, allocations: 5.88 MB / 0.751 GB, free: 92.18 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.306e-06/0.953, allocations: 4 kB / 0.751 GB, free: 92.18 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003585/0.9566, allocations: 2.435 MB / 0.7533 GB, free: 90.02 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004745/0.9614, allocations: 447.9 kB / 0.7538 GB, free: 89.65 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05784/1.019, allocations: 35.36 MB / 0.7883 GB, free: 52.3 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005635/1.025, allocations: 3.76 MB / 0.792 GB, free: 48.51 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003586/1.029, allocations: 2.202 MB / 0.7941 GB, free: 46.31 MB / 490.7 MB Notification: Performance of SimCode: time 8.11e-07/1.029, allocations: 0 / 0.7941 GB, free: 46.31 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.467/8.496, allocations: 135.2 MB / 0.9262 GB, free: 111.4 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/FreeMotionScalarInit3/FreeMotionScalarInit3.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches