Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.0116/0.0116, allocations: 107 kB / 15.06 MB, free: 5.555 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.00127/0.001269, allocations: 179.4 kB / 15.95 MB, free: 5.52 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 2.111/2.111, allocations: 194.6 MB / 211.3 MB, free: 11.06 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo): time 0.3221/0.3221, allocations: 40.04 MB / 296.5 MB, free: 6.297 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004657/0.0004657, allocations: 8 kB / 361.1 MB, free: 15.98 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.1174, allocations: 54.86 MB / 416 MB, free: 9.023 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4): time 0.3384/0.4559, allocations: 34.86 MB / 450.9 MB, free: 12.43 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.03213/0.4881, allocations: 8.699 MB / 459.6 MB, free: 6.535 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008806/0.4969, allocations: 168.2 kB / 459.7 MB, free: 6.508 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007299/0.5043, allocations: 1.797 MB / 461.5 MB, free: 5.941 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02085/0.5252, allocations: 5.138 MB / 466.7 MB, free: 2.438 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00353/0.5288, allocations: 0.49 MB / 467.2 MB, free: 2.113 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.006281/0.5351, allocations: 2.338 MB / 469.5 MB, free: 0.6875 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009332/0.5445, allocations: 4.305 MB / 473.8 MB, free: 12.41 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002662/0.5472, allocations: 1.043 MB / 474.8 MB, free: 11.36 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00332/0.5505, allocations: 1.425 MB / 476.3 MB, free: 9.93 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009959/0.5516, allocations: 164 kB / 476.4 MB, free: 9.77 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003245/0.5549, allocations: 0.8895 MB / 477.3 MB, free: 8.879 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003055/0.558, allocations: 1.691 MB / 479 MB, free: 7.184 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001771/0.5598, allocations: 0.9362 MB / 479.9 MB, free: 6.238 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01039/0.5702, allocations: 6.317 MB / 486.3 MB, free: 15.91 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.5703, allocations: 0 / 486.3 MB, free: 15.91 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.616e-06/0.5703, allocations: 0 / 486.3 MB, free: 15.91 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.000245/0.5705, allocations: 4 kB / 486.3 MB, free: 15.9 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1878 * Number of variables: 1878 Notification: Performance of Generate backend data structure: time 0.01529/0.5859, allocations: 4.528 MB / 490.8 MB, free: 11.3 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.533e-05/0.5859, allocations: 12.03 kB / 490.8 MB, free: 11.29 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002776/0.5887, allocations: 0.8848 MB / 491.7 MB, free: 10.39 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02391/0.6127, allocations: 3.858 MB / 495.5 MB, free: 6.523 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007842/0.6206, allocations: 2.523 MB / 498.1 MB, free: 3.953 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003534/0.621, allocations: 278.7 kB / 498.3 MB, free: 3.68 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00194/0.6229, allocations: 355.7 kB / 498.7 MB, free: 3.332 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03329/0.6563, allocations: 12.64 MB / 0.4993 GB, free: 6.219 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001735/0.6565, allocations: 27.72 kB / 0.4994 GB, free: 6.191 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00093/0.6574, allocations: 163.8 kB / 0.4995 GB, free: 6.031 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007739/0.6652, allocations: 2.747 MB / 0.5022 GB, free: 3.277 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03669/0.7019, allocations: 11.6 MB / 0.5135 GB, free: 7.664 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0926/0.7946, allocations: 40.22 MB / 0.5528 GB, free: 14.52 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01737/0.812, allocations: 4.89 MB / 0.5576 GB, free: 9.391 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01763/0.8297, allocations: 6.558 MB / 0.564 GB, free: 2.527 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.916e-05/0.8298, allocations: 56.5 kB / 0.564 GB, free: 2.461 MB / 442.7 MB Notification: Performance of pre-optimization done (n=231): time 6.503e-06/0.8298, allocations: 0 / 0.564 GB, free: 2.461 MB / 442.7 MB Notification: Performance of matching and sorting (n=252): time 0.09186/0.9217, allocations: 19.59 MB / 0.5832 GB, free: 14.64 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.004e-05/0.9218, allocations: 73.41 kB / 0.5832 GB, free: 14.55 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007438/0.9293, allocations: 3.28 MB / 0.5865 GB, free: 11.26 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006037/0.93, allocations: 57.69 kB / 0.5865 GB, free: 11.2 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00353/0.9335, allocations: 3.294 MB / 0.5897 GB, free: 7.855 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001698/0.9352, allocations: 0.9367 MB / 0.5906 GB, free: 6.906 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006459/0.9359, allocations: 120 kB / 0.5908 GB, free: 6.789 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000518/0.9364, allocations: 0.5744 MB / 0.5913 GB, free: 6.207 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006618/0.9431, allocations: 2.456 MB / 0.5937 GB, free: 3.746 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3128/1.256, allocations: 5.823 MB / 0.5994 GB, free: 148.9 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01015/1.266, allocations: 3.784 MB / 0.6031 GB, free: 148.3 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002196/1.266, allocations: 34.75 kB / 0.6031 GB, free: 148.3 MB / 474.7 MB Notification: Performance of matching and sorting (n=818) (initialization): time 0.03752/1.304, allocations: 10.1 MB / 0.613 GB, free: 145.1 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001481/1.304, allocations: 55.88 kB / 0.613 GB, free: 145.1 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002601/1.304, allocations: 117.5 kB / 0.6132 GB, free: 145.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01795/1.322, allocations: 2.417 MB / 0.6155 GB, free: 144.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008764/1.331, allocations: 1.359 MB / 0.6168 GB, free: 144.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03/1.361, allocations: 11.18 MB / 0.6278 GB, free: 139.7 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006279/1.368, allocations: 328.4 kB / 0.6281 GB, free: 139.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001282/1.369, allocations: 356.7 kB / 0.6284 GB, free: 139.6 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 537 * Number of states: 0 () * Number of discrete variables: 27 (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.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 (734): * Single equations (assignments): 726 * 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: 0 * Non-linear torn systems: 2 {3 5,3 27} Notification: Performance of prepare postOptimizeDAE: time 0.00605/1.375, allocations: 2.428 MB / 0.6308 GB, free: 138.5 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006545/1.376, allocations: 306.9 kB / 0.6311 GB, free: 138.5 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01224/1.388, allocations: 4.65 MB / 0.6356 GB, free: 136.8 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001085/1.388, allocations: 45.48 kB / 0.6357 GB, free: 136.8 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.301e-05/1.388, allocations: 0 / 0.6357 GB, free: 136.8 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.571e-05/1.388, allocations: 11.58 kB / 0.6357 GB, free: 136.8 MB / 474.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04212/1.43, allocations: 11 MB / 0.6464 GB, free: 126.4 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-05/1.43, allocations: 4 kB / 0.6464 GB, free: 126.4 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006033/1.436, allocations: 416 kB / 0.6468 GB, free: 126 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005555/1.442, allocations: 0.6964 MB / 0.6475 GB, free: 125.3 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006497/1.443, allocations: 58.19 kB / 0.6475 GB, free: 125.3 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00586/1.449, allocations: 2.448 MB / 0.6499 GB, free: 122.7 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.023e-05/1.449, allocations: 4 kB / 0.6499 GB, free: 122.7 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02539/1.474, allocations: 7.478 MB / 0.6572 GB, free: 115.1 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001382/1.476, allocations: 357.1 kB / 0.6576 GB, free: 114.7 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001591/1.477, allocations: 44 kB / 0.6576 GB, free: 114.7 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005761/1.483, allocations: 140.8 kB / 0.6578 GB, free: 114.5 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007992/1.484, allocations: 143.4 kB / 0.6579 GB, free: 114.4 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002611/1.484, allocations: 70.28 kB / 0.658 GB, free: 114.3 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004573/1.489, allocations: 2.006 MB / 0.6599 GB, free: 112.3 MB / 474.7 MB Notification: Performance of sort global known variables: time 7.52e-07/1.489, allocations: 0 / 0.6599 GB, free: 112.3 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007252/1.496, allocations: 1.151 MB / 0.6611 GB, free: 111.2 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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.derdd[1].u,freeMotionScalarInit.derdd[2].u,freeMotionScalarInit.derdd[3].u) * 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.01728/1.513, allocations: 9.09 MB / 0.6699 GB, free: 101.9 MB / 474.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Joints.mo:1952:5-1954:161:writable] Warning: Variable freeMotionScalarInit.angle_1 has attribute stateSelect=StateSelect.always, but can't be selected as a state. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Joints.mo:1958:5-1960:161:writable] Warning: Variable freeMotionScalarInit.angle_3 has attribute stateSelect=StateSelect.always, but can't be selected as a state. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Joints.mo:1955:5-1957:161:writable] Warning: Variable freeMotionScalarInit.angle_2 has attribute stateSelect=StateSelect.always, but can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.01778/1.531, allocations: 6.146 MB / 0.6759 GB, free: 95.78 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.434e-05/1.531, allocations: 4 kB / 0.6759 GB, free: 95.78 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009962/1.541, allocations: 2.527 MB / 0.6784 GB, free: 93.2 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004011/1.545, allocations: 423.7 kB / 0.6788 GB, free: 92.8 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4318/1.977, allocations: 116.9 MB / 0.7929 GB, free: 163.3 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008567/1.986, allocations: 3.866 MB / 0.7967 GB, free: 161.9 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.009669/1.996, allocations: 2.071 MB / 0.7987 GB, free: 161.8 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005114/2.001, allocations: 2.132 MB / 0.8008 GB, free: 160.1 MB / 490.7 MB Notification: Performance of SimCode: time 1.132e-06/2.001, allocations: 1.062 kB / 0.8008 GB, free: 160.1 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1815/2.182, allocations: 82.04 MB / 0.8809 GB, free: 87.83 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002623/2.183, allocations: 224.8 kB / 0.8812 GB, free: 87.59 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.093/7.276, allocations: 4 kB / 0.8812 GB, free: 87.58 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4_res.mat does not exist to compare? outputFormat=mat