Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.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.FreeMotionScalarInit,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit",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.0009818/0.0009821, allocations: 171.2 kB / 16.72 MB, free: 5.051 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.381/1.381, 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.0008506/0.0008506, allocations: 81.42 kB / 271.2 MB, free: 8.242 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.3423/0.3423, allocations: 43.56 MB / 363.1 MB, free: 52.18 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003852/0.0003853, allocations: 20 kB / 432.1 MB, free: 5.723 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09973/0.1001, allocations: 58.84 MB / 490.9 MB, free: 10.8 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit): time 0.2199/0.3201, allocations: 30.8 MB / 0.5095 GB, free: 28.57 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01658/0.3367, allocations: 7.251 MB / 0.5166 GB, free: 23.69 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007508/0.3443, allocations: 138.6 kB / 0.5167 GB, free: 23.66 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005335/0.3497, allocations: 1.521 MB / 0.5182 GB, free: 23.13 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01286/0.3626, allocations: 4.59 MB / 0.5227 GB, free: 21.25 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002499/0.3651, allocations: 448.6 kB / 0.5231 GB, free: 21.09 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.005723/0.3708, allocations: 4.369 MB / 0.5274 GB, free: 19.59 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005374/0.3762, allocations: 3.694 MB / 0.531 GB, free: 18.08 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002059/0.3783, allocations: 1.126 MB / 0.5321 GB, free: 17.71 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002524/0.3809, allocations: 1.829 MB / 0.5339 GB, free: 17.16 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009273/0.3818, allocations: 145.4 kB / 0.534 GB, free: 17.16 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002557/0.3844, allocations: 1.019 MB / 0.535 GB, free: 16.93 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002321/0.3867, allocations: 1.648 MB / 0.5366 GB, free: 16.43 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003415/0.3902, allocations: 1.907 MB / 0.5385 GB, free: 15.08 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00687/0.397, allocations: 5.605 MB / 0.5439 GB, free: 13.12 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.3971, allocations: 0 / 0.5439 GB, free: 13.12 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3971, allocations: 0 / 0.5439 GB, free: 13.12 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003219/0.3974, allocations: 1.156 kB / 0.5439 GB, free: 13.12 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: 1699 * Number of variables: 1699 Notification: Performance of Generate backend data structure: time 0.01101/0.4084, allocations: 4.044 MB / 0.5479 GB, free: 10.26 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/0.4085, allocations: 9.125 kB / 0.5479 GB, free: 10.26 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001704/0.4102, allocations: 0.7873 MB / 0.5487 GB, free: 9.723 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01076/0.421, allocations: 3.246 MB / 0.5518 GB, free: 8.07 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00556/0.4265, allocations: 2.559 MB / 0.5543 GB, free: 6.492 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001752/0.4267, allocations: 226.5 kB / 0.5546 GB, free: 6.383 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007617/0.4275, allocations: 299.4 kB / 0.5548 GB, free: 6.273 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0161/0.4436, allocations: 11.43 MB / 0.566 GB, free: 12.87 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.827e-05/0.4437, allocations: 27.72 kB / 0.566 GB, free: 12.84 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004097/0.4441, allocations: 143.8 kB / 0.5662 GB, free: 12.7 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003915/0.4481, allocations: 2.632 MB / 0.5687 GB, free: 10.06 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01883/0.4669, allocations: 10.66 MB / 0.5791 GB, free: 15.39 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0597/0.5266, allocations: 36.46 MB / 0.6147 GB, free: 10.11 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008156/0.5348, allocations: 4.403 MB / 0.619 GB, free: 5.477 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003093/0.538, allocations: 2.154 MB / 0.6211 GB, free: 3.32 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001276/0.5393, allocations: 1.315 MB / 0.6224 GB, free: 1.781 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.447e-05/0.5393, allocations: 48.56 kB / 0.6225 GB, free: 1.727 MB / 442.7 MB Notification: Performance of pre-optimization done (n=244): time 6.352e-06/0.5394, allocations: 0 / 0.6225 GB, free: 1.727 MB / 442.7 MB Notification: Performance of matching and sorting (n=265): time 0.04231/0.5817, allocations: 13.98 MB / 0.6361 GB, free: 3.688 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.361e-05/0.5818, allocations: 73.41 kB / 0.6362 GB, free: 3.602 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005382/0.5872, allocations: 2.829 MB / 0.639 GB, free: 0.75 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000526/0.5877, allocations: 61.7 kB / 0.639 GB, free: 0.6836 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002264/0.59, allocations: 2.938 MB / 0.6419 GB, free: 13.7 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001277/0.5913, allocations: 0.9712 MB / 0.6428 GB, free: 12.71 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005964/0.5919, allocations: 120 kB / 0.643 GB, free: 12.6 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000577/0.5925, allocations: 0.558 MB / 0.6435 GB, free: 12.03 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003942/0.5965, allocations: 2.334 MB / 0.6458 GB, free: 9.691 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006011/0.6025, allocations: 5.509 MB / 0.6512 GB, free: 2.633 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01044/0.6129, allocations: 8.624 MB / 0.6596 GB, free: 8.461 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.425e-05/0.6131, allocations: 32 kB / 0.6596 GB, free: 8.43 MB / 490.7 MB Notification: Performance of matching and sorting (n=776) (initialization): time 0.0168/0.6299, allocations: 8.553 MB / 0.668 GB, free: 15.86 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001033/0.63, allocations: 56.94 kB / 0.668 GB, free: 15.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00016/0.6302, allocations: 108 kB / 0.6681 GB, free: 15.7 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003645/0.6338, allocations: 1.044 MB / 0.6691 GB, free: 14.64 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004257/0.6381, allocations: 1.333 MB / 0.6704 GB, free: 13.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002721/0.6408, allocations: 2.482 MB / 0.6729 GB, free: 10.69 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003557/0.6444, allocations: 323.7 kB / 0.6732 GB, free: 10.38 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007226/0.6451, allocations: 328 kB / 0.6735 GB, free: 10.05 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 502 * Number of states: 0 () * Number of discrete variables: 24 (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 (723): * Single equations (assignments): 714 * 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.004396/0.6495, allocations: 2.274 MB / 0.6757 GB, free: 7.766 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005681/0.6501, allocations: 284.2 kB / 0.676 GB, free: 7.484 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009635/0.6598, allocations: 5.078 MB / 0.6809 GB, free: 2.336 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.265e-05/0.6598, allocations: 47.98 kB / 0.681 GB, free: 2.289 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.102e-05/0.6599, allocations: 0 / 0.681 GB, free: 2.289 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.059e-05/0.6599, allocations: 7.969 kB / 0.681 GB, free: 2.281 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.221/0.8808, allocations: 11.57 MB / 0.6923 GB, free: 150.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.789e-05/0.8809, allocations: 5.812 kB / 0.6923 GB, free: 150.1 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001779/0.8827, allocations: 433.5 kB / 0.6927 GB, free: 150.1 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003232/0.8859, allocations: 0.8991 MB / 0.6936 GB, free: 150 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002924/0.8862, allocations: 64.94 kB / 0.6936 GB, free: 150 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002184/0.8884, allocations: 2.267 MB / 0.6959 GB, free: 148.6 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.416e-06/0.8885, allocations: 17.27 kB / 0.6959 GB, free: 148.6 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0104/0.8989, allocations: 7.508 MB / 0.7032 GB, free: 145.9 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008889/0.8998, allocations: 333.9 kB / 0.7035 GB, free: 145.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003355/0.9001, allocations: 52.25 kB / 0.7036 GB, free: 145.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001181/0.9013, allocations: 141.8 kB / 0.7037 GB, free: 145.7 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004812/0.9018, allocations: 157.1 kB / 0.7039 GB, free: 145.7 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001667/0.902, allocations: 79.23 kB / 0.7039 GB, free: 145.7 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002521/0.9045, allocations: 1.719 MB / 0.7056 GB, free: 145.1 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.6e-07/0.9045, allocations: 0 / 0.7056 GB, free: 145.1 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004335/0.9089, allocations: 1.002 MB / 0.7066 GB, free: 144.9 MB / 0.4948 GB 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 (216): * Single equations (assignments): 207 * 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.01124/0.9201, allocations: 8.183 MB / 0.7146 GB, free: 141.7 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01072/0.9309, allocations: 6.151 MB / 0.7206 GB, free: 139.6 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.356e-05/0.9309, allocations: 3.219 kB / 0.7206 GB, free: 139.6 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004491/0.9354, allocations: 2.601 MB / 0.7231 GB, free: 138.6 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004674/0.9401, allocations: 422.9 kB / 0.7235 GB, free: 138.4 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04905/0.9892, allocations: 33.42 MB / 0.7562 GB, free: 112.1 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003066/0.9923, allocations: 3.507 MB / 0.7596 GB, free: 109.3 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002274/0.9946, allocations: 2.025 MB / 0.7616 GB, free: 107.4 MB / 0.4948 GB Notification: Performance of SimCode: time 1.252e-06/0.9946, allocations: 0 / 0.7616 GB, free: 107.4 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.337/8.332, allocations: 134.8 MB / 0.8933 GB, free: 164.2 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/FreeMotionScalarInit/FreeMotionScalarInit.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches