Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.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.FreeMotionScalarInit,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001417/0.001417, allocations: 200.2 kB / 16.1 MB, free: 5.578 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.261/1.261, allocations: 226.5 MB / 243.4 MB, free: 6.461 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008085/0.0008086, allocations: 97.86 kB / 295.5 MB, free: 6.641 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3057/0.3057, allocations: 44.83 MB / 392.3 MB, free: 35.65 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002616/0.0002616, allocations: 8 kB / 465.4 MB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2812/0.2815, allocations: 62.96 MB / 0.516 GB, free: 37.25 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit): time 0.02043/0.302, allocations: 30.45 MB / 0.5457 GB, free: 15.52 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0135/0.3155, allocations: 7.177 MB / 0.5527 GB, free: 10.66 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005455/0.321, allocations: 140.3 kB / 0.5528 GB, free: 10.64 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00431/0.3253, allocations: 1.523 MB / 0.5543 GB, free: 10.09 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01105/0.3364, allocations: 4.522 MB / 0.5587 GB, free: 8.262 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002019/0.3384, allocations: 458.7 kB / 0.5592 GB, free: 8.094 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.006113/0.3446, allocations: 4.297 MB / 0.5634 GB, free: 6.398 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004843/0.3494, allocations: 3.655 MB / 0.5669 GB, free: 4.23 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002084/0.3515, allocations: 1.091 MB / 0.568 GB, free: 3.684 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002452/0.354, allocations: 1.754 MB / 0.5697 GB, free: 2.184 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000628/0.3546, allocations: 140 kB / 0.5699 GB, free: 2.047 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00202/0.3567, allocations: 1.002 MB / 0.5708 GB, free: 1.043 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00147/0.3582, allocations: 1.589 MB / 0.5724 GB, free: 15.45 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002234/0.3604, allocations: 1.842 MB / 0.5742 GB, free: 13.59 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005119/0.3655, allocations: 5.382 MB / 0.5794 GB, free: 8.195 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.3655, allocations: 4 kB / 0.5794 GB, free: 8.191 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.3656, allocations: 0 / 0.5794 GB, free: 8.191 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001965/0.3658, allocations: 3.938 kB / 0.5795 GB, free: 8.188 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1651 * Number of variables: 1651 Notification: Performance of Generate backend data structure: time 0.008515/0.3743, allocations: 4.037 MB / 0.5834 GB, free: 4.082 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/0.3743, allocations: 8.031 kB / 0.5834 GB, free: 4.074 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00104/0.3754, allocations: 0.77 MB / 0.5842 GB, free: 3.293 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009765/0.3852, allocations: 3.216 MB / 0.5873 GB, free: 68 kB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0038/0.389, allocations: 2.275 MB / 0.5895 GB, free: 13.75 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001379/0.3891, allocations: 217.8 kB / 0.5897 GB, free: 13.53 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005097/0.3896, allocations: 295.7 kB / 0.59 GB, free: 13.24 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01452/0.4042, allocations: 11.12 MB / 0.6009 GB, free: 1.688 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.528e-05/0.4043, allocations: 27.72 kB / 0.6009 GB, free: 1.66 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003643/0.4046, allocations: 131.8 kB / 0.601 GB, free: 1.531 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003878/0.4085, allocations: 2.566 MB / 0.6035 GB, free: 14.96 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01591/0.4245, allocations: 10.35 MB / 0.6136 GB, free: 4.59 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04518/0.4697, allocations: 35.52 MB / 0.6483 GB, free: 240 kB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006702/0.4764, allocations: 4.281 MB / 0.6525 GB, free: 11.72 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002511/0.479, allocations: 2.111 MB / 0.6545 GB, free: 9.609 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001041/0.48, allocations: 1.315 MB / 0.6558 GB, free: 8.07 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.438e-05/0.4801, allocations: 52.56 kB / 0.6559 GB, free: 8.012 MB / 474.7 MB Notification: Performance of pre-optimization done (n=235): time 5.881e-06/0.4801, allocations: 0 / 0.6559 GB, free: 8.012 MB / 474.7 MB Notification: Performance of matching and sorting (n=256): time 0.03568/0.5158, allocations: 13.71 MB / 0.6693 GB, free: 10.25 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.893e-05/0.5158, allocations: 73.41 kB / 0.6693 GB, free: 10.16 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003867/0.5197, allocations: 2.751 MB / 0.672 GB, free: 7.395 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000163/0.5199, allocations: 61.62 kB / 0.6721 GB, free: 7.328 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001765/0.5217, allocations: 2.868 MB / 0.6749 GB, free: 4.418 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008407/0.5225, allocations: 0.9443 MB / 0.6758 GB, free: 3.461 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003063/0.5228, allocations: 115.9 kB / 0.6759 GB, free: 3.348 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003981/0.5232, allocations: 0.5498 MB / 0.6765 GB, free: 2.789 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003191/0.5264, allocations: 2.279 MB / 0.6787 GB, free: 0.5039 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2133/0.7398, allocations: 5.365 MB / 0.6839 GB, free: 124.7 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007535/0.7474, allocations: 8.414 MB / 0.6921 GB, free: 118.3 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.246e-05/0.7475, allocations: 30.53 kB / 0.6922 GB, free: 118.3 MB / 490.7 MB Notification: Performance of matching and sorting (n=754) (initialization): time 0.01415/0.7617, allocations: 8.35 MB / 0.7003 GB, free: 115.5 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.662e-05/0.7618, allocations: 52.75 kB / 0.7004 GB, free: 115.5 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001382/0.7619, allocations: 109.8 kB / 0.7005 GB, free: 115.5 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003514/0.7654, allocations: 1.033 MB / 0.7015 GB, free: 115.4 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004046/0.7695, allocations: 1.294 MB / 0.7027 GB, free: 115.2 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002627/0.7721, allocations: 2.466 MB / 0.7052 GB, free: 113.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003743/0.7759, allocations: 312.8 kB / 0.7055 GB, free: 113.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007135/0.7766, allocations: 326.1 kB / 0.7058 GB, free: 113.5 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 489 * Number of states: 0 () * Number of discrete variables: 26 (freeMotionScalarInit.arrow.arrow.arrowLine.twoHeadedArrow,freeMotionScalarInit.arrow.headAtOrigin,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 (701): * Single equations (assignments): 692 * 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.003739/0.7804, allocations: 2.203 MB / 0.7079 GB, free: 112.6 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004188/0.7808, allocations: 278.3 kB / 0.7082 GB, free: 112.6 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009347/0.7902, allocations: 4.954 MB / 0.713 GB, free: 110.9 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.17e-05/0.7903, allocations: 51.95 kB / 0.7131 GB, free: 110.9 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.631e-05/0.7903, allocations: 2.469 kB / 0.7131 GB, free: 110.9 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.205e-05/0.7904, allocations: 10.92 kB / 0.7131 GB, free: 110.9 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01831/0.8087, allocations: 11.3 MB / 0.7241 GB, free: 107.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.309e-05/0.8087, allocations: 15.88 kB / 0.7241 GB, free: 107.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001494/0.8102, allocations: 409.9 kB / 0.7245 GB, free: 107 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003061/0.8133, allocations: 0.8983 MB / 0.7254 GB, free: 106.9 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000167/0.8135, allocations: 58.77 kB / 0.7255 GB, free: 106.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001917/0.8154, allocations: 2.281 MB / 0.7277 GB, free: 105.4 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.22e-06/0.8154, allocations: 10.72 kB / 0.7277 GB, free: 105.4 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009035/0.8245, allocations: 7.353 MB / 0.7349 GB, free: 99.2 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006121/0.8251, allocations: 320 kB / 0.7352 GB, free: 98.88 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003098/0.8254, allocations: 48.78 kB / 0.7352 GB, free: 98.84 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001111/0.8265, allocations: 135.8 kB / 0.7354 GB, free: 98.75 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004243/0.827, allocations: 154.6 kB / 0.7355 GB, free: 98.65 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001427/0.8271, allocations: 76.25 kB / 0.7356 GB, free: 98.59 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001844/0.829, allocations: 1.67 MB / 0.7372 GB, free: 97.21 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.829, allocations: 0 / 0.7372 GB, free: 97.21 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003463/0.8324, allocations: 0.9703 MB / 0.7382 GB, free: 96.25 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * 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,freeMotionScalarInit.angle_d_1,freeMotionScalarInit.angle_d_2,freeMotionScalarInit.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.009149/0.8416, allocations: 8.021 MB / 0.746 GB, free: 88.39 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.007899/0.8495, allocations: 6.012 MB / 0.7519 GB, free: 82.34 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.217e-06/0.8496, allocations: 5.938 kB / 0.7519 GB, free: 82.34 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003535/0.8531, allocations: 2.55 MB / 0.7544 GB, free: 79.74 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004441/0.8576, allocations: 423.4 kB / 0.7548 GB, free: 79.34 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04324/0.9008, allocations: 32.42 MB / 0.7864 GB, free: 44.18 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004011/0.9049, allocations: 3.427 MB / 0.7898 GB, free: 40.72 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002309/0.9073, allocations: 1.972 MB / 0.7917 GB, free: 38.75 MB / 490.7 MB Notification: Performance of SimCode: time 9.32e-07/0.9073, allocations: 4 kB / 0.7917 GB, free: 38.74 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.198/8.105, allocations: 130.9 MB / 0.9195 GB, free: 151.2 MB / 0.5261 GB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotionScalarInit/FreeMotionScalarInit.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches