Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.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.FreeMotionScalarInit2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2",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.002613/0.002619, allocations: 183.1 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.195/2.195, allocations: 205.4 MB / 222.5 MB, free: 9.105 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.001246/0.001245, allocations: 93.53 kB / 270.9 MB, free: 8.359 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.5479/0.5479, allocations: 43.55 MB / 362.7 MB, free: 52.15 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007604/0.0007607, allocations: 16 kB / 431.5 MB, free: 6.062 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1897/0.1905, allocations: 58.84 MB / 490.3 MB, free: 11.14 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2): time 0.5169/0.7075, allocations: 29.17 MB / 0.5073 GB, free: 29.77 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.03257/0.7401, allocations: 7.527 MB / 0.5147 GB, free: 24.72 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01127/0.7515, allocations: 140.7 kB / 0.5148 GB, free: 24.7 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008019/0.7596, allocations: 1.478 MB / 0.5162 GB, free: 24.23 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02679/0.7864, allocations: 4.433 MB / 0.5206 GB, free: 22.2 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004034/0.7905, allocations: 401.5 kB / 0.5209 GB, free: 22.05 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.008038/0.7986, allocations: 2.145 MB / 0.523 GB, free: 21.11 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009697/0.8084, allocations: 3.339 MB / 0.5263 GB, free: 19.81 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003305/0.8118, allocations: 0.9424 MB / 0.5272 GB, free: 19.49 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004189/0.8161, allocations: 1.299 MB / 0.5285 GB, free: 19.07 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001354/0.8175, allocations: 149.7 kB / 0.5286 GB, free: 19.07 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004509/0.822, allocations: 0.8543 MB / 0.5295 GB, free: 18.89 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003929/0.826, allocations: 1.545 MB / 0.531 GB, free: 18.4 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002176/0.8283, allocations: 0.8502 MB / 0.5318 GB, free: 17.77 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01402/0.8424, allocations: 5.654 MB / 0.5373 GB, free: 16.63 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.8425, allocations: 0 / 0.5373 GB, free: 16.63 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.646e-05/0.8425, allocations: 3.219 kB / 0.5373 GB, free: 16.63 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003222/0.8429, allocations: 0 / 0.5373 GB, free: 16.63 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: 1720 * Number of variables: 1720 Notification: Performance of Generate backend data structure: time 0.02227/0.8651, allocations: 4.171 MB / 0.5414 GB, free: 14.2 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.596e-05/0.8652, allocations: 12.62 kB / 0.5414 GB, free: 14.2 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004327/0.8696, allocations: 0.7992 MB / 0.5422 GB, free: 13.65 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03744/0.9071, allocations: 3.806 MB / 0.5459 GB, free: 11.76 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01145/0.9186, allocations: 2.337 MB / 0.5482 GB, free: 10.33 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005701/0.9193, allocations: 229 kB / 0.5484 GB, free: 10.22 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002942/0.9223, allocations: 296.9 kB / 0.5487 GB, free: 10.11 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04671/0.969, allocations: 11.97 MB / 0.5604 GB, free: 2.16 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002516/0.9693, allocations: 27.81 kB / 0.5604 GB, free: 2.133 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002361/0.9717, allocations: 143.8 kB / 0.5605 GB, free: 1.992 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.009834/0.9816, allocations: 2.703 MB / 0.5632 GB, free: 15.29 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05047/1.032, allocations: 11.16 MB / 0.5741 GB, free: 4.105 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1156/1.148, allocations: 37.22 MB / 0.6104 GB, free: 14.06 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01582/1.164, allocations: 4.695 MB / 0.615 GB, free: 9.141 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002047/1.166, allocations: 1.315 MB / 0.6163 GB, free: 7.609 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.395e-05/1.166, allocations: 56.5 kB / 0.6164 GB, free: 7.547 MB / 442.7 MB Notification: Performance of pre-optimization done (n=244): time 7.495e-06/1.166, allocations: 4 kB / 0.6164 GB, free: 7.543 MB / 442.7 MB Notification: Performance of matching and sorting (n=256): time 0.07237/1.238, allocations: 14.1 MB / 0.6301 GB, free: 9.25 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.307e-05/1.238, allocations: 73.41 kB / 0.6302 GB, free: 9.168 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007277/1.246, allocations: 2.938 MB / 0.6331 GB, free: 6.207 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000617/1.246, allocations: 57.69 kB / 0.6331 GB, free: 6.145 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003459/1.25, allocations: 2.959 MB / 0.636 GB, free: 3.145 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0019/1.252, allocations: 0.9404 MB / 0.6369 GB, free: 2.191 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007499/1.253, allocations: 116 kB / 0.637 GB, free: 2.078 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0007377/1.253, allocations: 0.5626 MB / 0.6376 GB, free: 1.504 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007046/1.261, allocations: 2.28 MB / 0.6398 GB, free: 15.22 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0104/1.271, allocations: 5.427 MB / 0.6451 GB, free: 8.242 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009728/1.281, allocations: 3.528 MB / 0.6486 GB, free: 4.719 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001196/1.281, allocations: 28 kB / 0.6486 GB, free: 4.691 MB / 474.7 MB Notification: Performance of matching and sorting (n=767) (initialization): time 0.02843/1.309, allocations: 8.347 MB / 0.6567 GB, free: 12.32 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000112/1.31, allocations: 52 kB / 0.6568 GB, free: 12.27 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002093/1.31, allocations: 111.9 kB / 0.6569 GB, free: 12.16 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006801/1.317, allocations: 1.037 MB / 0.6579 GB, free: 11.11 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008897/1.326, allocations: 1.318 MB / 0.6592 GB, free: 9.793 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005179/1.331, allocations: 2.513 MB / 0.6617 GB, free: 7.137 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005837/1.337, allocations: 323.7 kB / 0.662 GB, free: 6.82 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001471/1.338, allocations: 328 kB / 0.6623 GB, free: 6.5 MB / 490.7 MB 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 (714): * Single equations (assignments): 705 * 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 {(3,100.0%),(2,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.007395/1.346, allocations: 2.278 MB / 0.6645 GB, free: 4.207 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008238/1.346, allocations: 284.2 kB / 0.6648 GB, free: 3.926 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01847/1.365, allocations: 4.901 MB / 0.6696 GB, free: 14.96 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001299/1.365, allocations: 47.98 kB / 0.6696 GB, free: 14.91 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.657e-05/1.365, allocations: 8 kB / 0.6696 GB, free: 14.9 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.238e-05/1.365, allocations: 7.969 kB / 0.6696 GB, free: 14.89 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03843/1.404, allocations: 11.47 MB / 0.6808 GB, free: 3.227 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.472e-05/1.404, allocations: 8 kB / 0.6808 GB, free: 3.219 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00391/1.408, allocations: 419.3 kB / 0.6812 GB, free: 2.809 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005515/1.413, allocations: 0.6114 MB / 0.6818 GB, free: 2.188 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006476/1.414, allocations: 59.97 kB / 0.6819 GB, free: 2.129 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3488/1.763, allocations: 2.083 MB / 0.6839 GB, free: 150.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.651e-05/1.763, allocations: 16.31 kB / 0.6839 GB, free: 150.1 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02217/1.785, allocations: 7.734 MB / 0.6915 GB, free: 148.4 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009589/1.786, allocations: 335.2 kB / 0.6918 GB, free: 148.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001291/1.787, allocations: 52.47 kB / 0.6918 GB, free: 148.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003045/1.79, allocations: 129.4 kB / 0.692 GB, free: 148.3 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008539/1.791, allocations: 157.5 kB / 0.6921 GB, free: 148.3 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002646/1.792, allocations: 74.58 kB / 0.6922 GB, free: 148.3 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.004445/1.796, allocations: 1.81 MB / 0.694 GB, free: 148.1 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.122e-06/1.796, allocations: 0 / 0.694 GB, free: 148.1 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.007127/1.803, allocations: 1.012 MB / 0.6949 GB, free: 148 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 39 * 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.w_rel_b_1,freeMotionScalarInit.w_rel_b_2,freeMotionScalarInit.w_rel_b_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 (207): * Single equations (assignments): 198 * 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.0207/1.824, allocations: 10.69 MB / 0.7054 GB, free: 141.7 MB / 0.4948 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Mechanics/MultiBody/Joints.mo:1916:5-1918:161:writable] Warning: Variable $DER.freeMotionScalarInit.angle_2 has attribute stateSelect=StateSelect.always, but can't be selected as a state. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Mechanics/MultiBody/Joints.mo:1913:5-1915:161:writable] Warning: Variable $DER.freeMotionScalarInit.angle_1 has attribute stateSelect=StateSelect.always, but can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.01665/1.841, allocations: 5.973 MB / 0.7112 GB, free: 139.6 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.569e-05/1.841, allocations: 0 / 0.7112 GB, free: 139.6 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.008124/1.849, allocations: 2.379 MB / 0.7135 GB, free: 138.7 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003839/1.853, allocations: 401.3 kB / 0.7139 GB, free: 138.5 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1009/1.954, allocations: 108.9 MB / 0.8202 GB, free: 42.8 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00805/1.962, allocations: 3.619 MB / 0.8238 GB, free: 40.52 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005091/1.967, allocations: 1.979 MB / 0.8257 GB, free: 38.7 MB / 0.4948 GB Notification: Performance of SimCode: time 2.705e-06/1.967, allocations: 0 / 0.8257 GB, free: 38.7 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.786/6.753, allocations: 140 MB / 0.9625 GB, free: 117.2 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2_res.mat does not exist to compare? outputFormat=mat