Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Frames.AngularVelocity.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.Frames.AngularVelocity,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Frames_AngularVelocity",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Frames.AngularVelocity,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Frames_AngularVelocity",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.002096/0.002096, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.094/2.094, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001086/0.001086, allocations: 96.83 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2985/0.2985, allocations: 43.49 MB / 353.6 MB, free: 2.277 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.431e-05/2.449e-05, allocations: 0 / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5686/0.5687, allocations: 58.85 MB / 477.2 MB, free: 5.172 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2713/0.84, allocations: 106.8 MB / 0.5702 GB, free: 8.41 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003574/0.8404, allocations: 79.47 kB / 0.5703 GB, free: 8.336 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.78/1.62, allocations: 82.5 MB / 0.6509 GB, free: 105.9 MB / 475.1 MB Notification: Performance of FrontEnd: time 2.094e-06/1.62, allocations: 0 / 0.6509 GB, free: 105.9 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0002889/1.621, allocations: 83.58 kB / 0.651 GB, free: 105.9 MB / 475.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1590 * Number of variables: 1590 Notification: Performance of Generate backend data structure: time 0.02583/1.647, allocations: 4.346 MB / 0.6552 GB, free: 104.2 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.219e-05/1.647, allocations: 12.69 kB / 0.6552 GB, free: 104.2 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01925/1.666, allocations: 2.278 MB / 0.6575 GB, free: 103.9 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02144/1.687, allocations: 4.812 MB / 0.6621 GB, free: 103.3 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003969/1.688, allocations: 146 kB / 0.6623 GB, free: 103.3 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002711/1.691, allocations: 263.3 kB / 0.6625 GB, free: 103.3 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01745/1.708, allocations: 6.279 MB / 0.6687 GB, free: 103.3 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02585/1.734, allocations: 9.666 MB / 0.6781 GB, free: 100.2 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002915/1.734, allocations: 60.69 kB / 0.6782 GB, free: 100.2 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001994/1.736, allocations: 29.44 kB / 0.6782 GB, free: 100.2 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002453/1.739, allocations: 1.047 MB / 0.6792 GB, free: 100.1 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0708/1.81, allocations: 48.64 MB / 0.7267 GB, free: 62.94 MB / 475.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005064/1.815, allocations: 2.707 MB / 0.7294 GB, free: 61.43 MB / 475.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003303/1.818, allocations: 1.639 MB / 0.731 GB, free: 60.75 MB / 475.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001881/1.82, allocations: 1.308 MB / 0.7322 GB, free: 59.57 MB / 475.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.897e-05/1.82, allocations: 49.97 kB / 0.7323 GB, free: 59.52 MB / 475.1 MB Notification: Performance of pre-optimization done (n=164): time 5.701e-06/1.82, allocations: 0 / 0.7323 GB, free: 59.52 MB / 475.1 MB Notification: Performance of matching and sorting (n=171): time 0.0351/1.855, allocations: 10.62 MB / 0.7427 GB, free: 54.12 MB / 475.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.585e-05/1.856, allocations: 145.8 kB / 0.7428 GB, free: 53.95 MB / 475.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006361/1.862, allocations: 3.028 MB / 0.7458 GB, free: 51.29 MB / 475.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004803/1.862, allocations: 25.7 kB / 0.7458 GB, free: 51.25 MB / 475.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002552/1.865, allocations: 3.226 MB / 0.7489 GB, free: 48.3 MB / 475.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00115/1.866, allocations: 0.671 MB / 0.7496 GB, free: 47.7 MB / 475.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007362/1.867, allocations: 0 / 0.7496 GB, free: 47.7 MB / 475.1 MB Notification: Performance of setup shared object (initialization): time 0.0004289/1.867, allocations: 0.5733 MB / 0.7501 GB, free: 47.2 MB / 475.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004864/1.872, allocations: 2.071 MB / 0.7522 GB, free: 45.34 MB / 475.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007362/1.88, allocations: 5.956 MB / 0.758 GB, free: 37.75 MB / 475.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007636/1.887, allocations: 3.463 MB / 0.7614 GB, free: 34.8 MB / 475.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001382/1.888, allocations: 40 kB / 0.7614 GB, free: 34.76 MB / 475.1 MB Notification: Performance of matching and sorting (n=826) (initialization): time 0.0322/1.92, allocations: 8.516 MB / 0.7697 GB, free: 27.68 MB / 475.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001159/1.92, allocations: 71.95 kB / 0.7698 GB, free: 27.61 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01758/1.938, allocations: 3.5 MB / 0.7732 GB, free: 24.96 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01691/1.955, allocations: 1.933 MB / 0.7751 GB, free: 23.6 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008698/1.963, allocations: 1.466 MB / 0.7765 GB, free: 22.13 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01156/1.975, allocations: 5.585 MB / 0.782 GB, free: 16.31 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007406/1.982, allocations: 307.1 kB / 0.7823 GB, free: 16.01 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00145/1.984, allocations: 396 kB / 0.7826 GB, free: 15.62 MB / 475.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 637 * Number of states: 0 () * Number of discrete variables: 39 (FrameTorque1.color[3],FrameTorque1.color[2],FrameTorque1.color[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.color[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 (788): * Single equations (assignments): 779 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * 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.001193/1.985, allocations: 462.6 kB / 0.7831 GB, free: 15.17 MB / 475.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00976/1.995, allocations: 3.413 MB / 0.7864 GB, free: 11.73 MB / 475.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001108/1.996, allocations: 311.9 kB / 0.7867 GB, free: 11.43 MB / 475.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009937/2.006, allocations: 3.177 MB / 0.7898 GB, free: 8.223 MB / 475.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008165/2.014, allocations: 2.624 MB / 0.7924 GB, free: 5.578 MB / 475.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.237e-05/2.014, allocations: 4 kB / 0.7924 GB, free: 5.574 MB / 475.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.148e-05/2.014, allocations: 9.844 kB / 0.7924 GB, free: 5.566 MB / 475.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02857/2.043, allocations: 8.851 MB / 0.801 GB, free: 12.64 MB / 491.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.312e-05/2.043, allocations: 4.031 kB / 0.801 GB, free: 12.64 MB / 491.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002944/2.046, allocations: 287.6 kB / 0.8013 GB, free: 12.36 MB / 491.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005631/2.052, allocations: 1.01 MB / 0.8023 GB, free: 11.34 MB / 491.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004603/2.052, allocations: 19.97 kB / 0.8023 GB, free: 11.32 MB / 491.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01027/2.062, allocations: 4.914 MB / 0.8071 GB, free: 6.18 MB / 491.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001596/2.064, allocations: 1.419 MB / 0.8085 GB, free: 4.641 MB / 491.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01626/2.08, allocations: 5.776 MB / 0.8142 GB, free: 14.76 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001412/2.082, allocations: 376.8 kB / 0.8145 GB, free: 14.37 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001163/2.083, allocations: 15.98 kB / 0.8145 GB, free: 14.35 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003518/2.087, allocations: 119.8 kB / 0.8146 GB, free: 14.23 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007841/2.087, allocations: 109.1 kB / 0.8147 GB, free: 14.13 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002454/2.088, allocations: 51.88 kB / 0.8148 GB, free: 14.08 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.005753/2.093, allocations: 2.005 MB / 0.8167 GB, free: 12.09 MB / 0.4952 GB Notification: Performance of sort global known variables: time 1.143e-06/2.094, allocations: 0 / 0.8167 GB, free: 12.09 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.008317/2.102, allocations: 0.996 MB / 0.8177 GB, free: 11.09 MB / 0.4952 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 12 ($STATESET8429490568.x[3],$STATESET8429490568.x[2],$STATESET8429490568.x[1],body.v_0[1],body.v_0[2],body.v_0[3],body.body.frame_a.r_0[1],body.body.frame_a.r_0[2],body.body.frame_a.r_0[3],body.body.w_a[1],body.body.w_a[2],body.body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (135): * Single equations (assignments): 128 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * 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%),(4,100.0%)} * Non-linear Jacobian: 1 {4} * 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.01727/2.119, allocations: 6.92 MB / 0.8245 GB, free: 4.074 MB / 0.4952 GB Notification: Performance of simCode: created initialization part: time 0.36/2.479, allocations: 5.563 MB / 0.8299 GB, free: 123.7 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 9.578e-06/2.479, allocations: 5.219 kB / 0.8299 GB, free: 123.7 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.008064/2.487, allocations: 2.247 MB / 0.8321 GB, free: 123.3 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003444/2.491, allocations: 336.2 kB / 0.8324 GB, free: 123.3 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03795/2.529, allocations: 9.918 MB / 0.8421 GB, free: 121.5 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009096/2.538, allocations: 3.397 MB / 0.8454 GB, free: 120.7 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005118/2.543, allocations: 1.937 MB / 0.8473 GB, free: 120.7 MB / 0.4952 GB Notification: Performance of SimCode: time 1.192e-06/2.543, allocations: 3.625 kB / 0.8473 GB, free: 120.7 MB / 0.4952 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.768/7.311, allocations: 151.9 MB / 0.9956 GB, free: 12.85 MB / 0.4952 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Frames.AngularVelocity.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Frames.AngularVelocity.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Frames.AngularVelocity.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Frames.AngularVelocity.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Frames.AngularVelocity_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Frames_AngularVelocity_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Frames_AngularVelocity.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Frames.AngularVelocity.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Frames.AngularVelocity_res.mat does not exist to compare? outputFormat=mat