Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.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.FreeMotion2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotion2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotion2",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.00157/0.00157, allocations: 182.4 kB / 13.66 MB, free: 1.664 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.138/2.138, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001083/0.001083, allocations: 90.7 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2958/0.2958, allocations: 43.49 MB / 359.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.822e-05/3.834e-05, allocations: 7.984 kB / 425.4 MB, free: 23.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.1248, allocations: 58.85 MB / 484.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5472/0.672, allocations: 109 MB / 0.5793 GB, free: 10.89 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002691/0.6724, allocations: 75.69 kB / 0.5794 GB, free: 10.86 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.514/1.186, allocations: 119.1 MB / 0.6957 GB, free: 11.43 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.004e-06/1.186, allocations: 0 / 0.6957 GB, free: 11.43 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0005168/1.187, allocations: 120 kB / 0.6958 GB, free: 11.31 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2030 * Number of variables: 2030 Notification: Performance of Generate backend data structure: time 0.0275/1.214, allocations: 5.953 MB / 0.7016 GB, free: 5.285 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.937e-05/1.215, allocations: 8.031 kB / 0.7016 GB, free: 5.277 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005291/1.22, allocations: 1.022 MB / 0.7026 GB, free: 4.246 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4571/1.677, allocations: 6.995 MB / 0.7094 GB, free: 102.7 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03827/1.715, allocations: 7.813 MB / 0.7171 GB, free: 102.3 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007585/1.716, allocations: 440.2 kB / 0.7175 GB, free: 102.3 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003698/1.72, allocations: 0.5797 MB / 0.7181 GB, free: 102.2 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04282/1.763, allocations: 13.85 MB / 0.7316 GB, free: 99.02 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005642/1.763, allocations: 85.23 kB / 0.7317 GB, free: 99.01 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00284/1.766, allocations: 274.5 kB / 0.7319 GB, free: 99.01 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002893/1.769, allocations: 1.319 MB / 0.7332 GB, free: 99 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03506/1.804, allocations: 11.53 MB / 0.7445 GB, free: 98.95 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09894/1.903, allocations: 62.17 MB / 0.8052 GB, free: 56.15 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02327/1.927, allocations: 5.71 MB / 0.8108 GB, free: 54.04 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006345/1.933, allocations: 3.285 MB / 0.814 GB, free: 52.63 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009831/1.934, allocations: 0.6913 MB / 0.8147 GB, free: 52.04 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.895e-05/1.934, allocations: 70.62 kB / 0.8147 GB, free: 51.97 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=254): time 6.473e-06/1.934, allocations: 0 / 0.8147 GB, free: 51.97 MB / 0.4948 GB Notification: Performance of matching and sorting (n=320): time 0.1375/2.072, allocations: 29.19 MB / 0.8432 GB, free: 34.26 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001096/2.072, allocations: 265.4 kB / 0.8435 GB, free: 33.94 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.012/2.084, allocations: 4.643 MB / 0.848 GB, free: 29.84 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0009031/2.085, allocations: 73.7 kB / 0.8481 GB, free: 29.76 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.003457/2.088, allocations: 3.881 MB / 0.8519 GB, free: 26.23 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001977/2.09, allocations: 1.195 MB / 0.853 GB, free: 25.17 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001277/2.092, allocations: 152 kB / 0.8532 GB, free: 25.02 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0006895/2.092, allocations: 0.6447 MB / 0.8538 GB, free: 24.47 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008313/2.101, allocations: 3.252 MB / 0.857 GB, free: 21.54 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01123/2.112, allocations: 7.512 MB / 0.8643 GB, free: 12.47 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01137/2.123, allocations: 4.917 MB / 0.8691 GB, free: 8.199 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000159/2.124, allocations: 44 kB / 0.8692 GB, free: 8.156 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.03865/2.162, allocations: 12.4 MB / 0.8813 GB, free: 13.86 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001528/2.162, allocations: 68 kB / 0.8813 GB, free: 13.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003008/2.163, allocations: 151.6 kB / 0.8815 GB, free: 13.65 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009988/2.173, allocations: 2.13 MB / 0.8836 GB, free: 12.05 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01237/2.185, allocations: 1.771 MB / 0.8853 GB, free: 10.52 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4138/2.599, allocations: 14.31 MB / 0.8993 GB, free: 102.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009635/2.609, allocations: 456.3 kB / 0.8997 GB, free: 102.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002176/2.611, allocations: 455.5 kB / 0.9001 GB, free: 102.4 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 676 * Number of states: 0 () * Number of discrete variables: 42 (universal1.cylinderColor[3],universal1.cylinderColor[2],universal1.cylinderColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (931): * Single equations (assignments): 926 * Array equations: 3 * 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: 2 {(3,100.0%) 24,(3,100.0%) 24} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002618/2.614, allocations: 0.6862 MB / 0.9008 GB, free: 102.3 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001594/2.615, allocations: 0.4896 MB / 0.9013 GB, free: 102.3 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02625/2.641, allocations: 7.016 MB / 0.9081 GB, free: 102.1 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001192/2.642, allocations: 35.38 kB / 0.9082 GB, free: 102.1 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.022e-05/2.642, allocations: 12.83 kB / 0.9082 GB, free: 102.1 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001172/2.642, allocations: 15.95 kB / 0.9082 GB, free: 102.1 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0647/2.707, allocations: 16.02 MB / 0.9238 GB, free: 101.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.964e-05/2.707, allocations: 6.594 kB / 0.9239 GB, free: 101.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006373/2.713, allocations: 0.5032 MB / 0.9243 GB, free: 101.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0112/2.724, allocations: 1.871 MB / 0.9262 GB, free: 101.1 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001114/2.726, allocations: 64.58 kB / 0.9262 GB, free: 101.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03706/2.763, allocations: 12.82 MB / 0.9387 GB, free: 98.57 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-05/2.763, allocations: 10.31 kB / 0.9388 GB, free: 98.57 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03939/2.802, allocations: 12.08 MB / 0.9506 GB, free: 93.49 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005894/2.808, allocations: 1.056 MB / 0.9516 GB, free: 93 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001762/2.81, allocations: 61.03 kB / 0.9516 GB, free: 92.96 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005383/2.815, allocations: 215.1 kB / 0.9518 GB, free: 92.93 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001258/2.817, allocations: 215.3 kB / 0.9521 GB, free: 92.89 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003895/2.817, allocations: 89.25 kB / 0.9521 GB, free: 92.87 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01092/2.828, allocations: 3.284 MB / 0.9553 GB, free: 91.74 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.112e-06/2.828, allocations: 0 / 0.9553 GB, free: 91.74 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01679/2.845, allocations: 1.499 MB / 0.9568 GB, free: 91.57 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 12 (freeMotion.r_rel_a[1],freeMotion.v_rel_a[1],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b,prismatic1.s,prismatic1.v,universal1.phi_a,universal1.phi_b,universal1.w_a,universal1.w_b) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (259): * Single equations (assignments): 254 * Array equations: 3 * 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: 2 {(7,46.9%) 17,(7,46.9%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04506/2.89, allocations: 14.07 MB / 0.9705 GB, free: 84.05 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0289/2.919, allocations: 8.177 MB / 0.9785 GB, free: 81.29 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-05/2.919, allocations: 0 / 0.9785 GB, free: 81.29 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01858/2.938, allocations: 3.871 MB / 0.9823 GB, free: 79.89 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008469/2.946, allocations: 0.6304 MB / 0.9829 GB, free: 79.63 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06843/3.015, allocations: 14.86 MB / 0.9974 GB, free: 73.9 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01117/3.026, allocations: 4.539 MB / 1.002 GB, free: 70.52 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007306/3.033, allocations: 2.855 MB / 1.005 GB, free: 67.88 MB / 0.5105 GB Notification: Performance of SimCode: time 1.252e-06/3.033, allocations: 0 / 1.005 GB, free: 67.88 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.745/8.778, allocations: 167.7 MB / 1.168 GB, free: 98.71 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotion2_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotion2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat does not exist to compare? outputFormat=mat