Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.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.FreeMotion,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotion",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.002304/0.002303, allocations: 187 kB / 16.4 MB, free: 5.621 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.27/2.27, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001177/0.001177, allocations: 106.8 kB / 270.9 MB, free: 13.37 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.2987/0.2987, allocations: 43.56 MB / 362.7 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004951/0.0004954, allocations: 19.98 kB / 431.5 MB, free: 20.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1308/0.1314, allocations: 58.85 MB / 490.3 MB, free: 9.25 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion): time 0.04206/0.1735, allocations: 25.31 MB / 0.5035 GB, free: 15.86 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.02104/0.1946, allocations: 6.72 MB / 0.5101 GB, free: 9.125 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005892/0.2006, allocations: 115.8 kB / 0.5102 GB, free: 9.012 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005211/0.2058, allocations: 1.291 MB / 0.5115 GB, free: 7.715 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01708/0.223, allocations: 3.955 MB / 0.5153 GB, free: 3.75 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002784/0.2258, allocations: 399.4 kB / 0.5157 GB, free: 3.359 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.005986/0.2319, allocations: 2.207 MB / 0.5179 GB, free: 1.152 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3523/0.5842, allocations: 2.193 MB / 0.52 GB, free: 11.73 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00297/0.5873, allocations: 0.8958 MB / 0.5209 GB, free: 11.73 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00359/0.5909, allocations: 1.243 MB / 0.5221 GB, free: 11.73 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001349/0.5923, allocations: 133.6 kB / 0.5222 GB, free: 11.73 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003761/0.5961, allocations: 0.8776 MB / 0.5231 GB, free: 11.73 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003411/0.5996, allocations: 1.461 MB / 0.5245 GB, free: 11.73 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002347/0.602, allocations: 0.7696 MB / 0.5253 GB, free: 11.7 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01062/0.6127, allocations: 4.918 MB / 0.5301 GB, free: 11.35 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.6127, allocations: 0 / 0.5301 GB, free: 11.35 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.797e-06/0.6128, allocations: 1.375 kB / 0.5301 GB, free: 11.35 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0003438/0.6131, allocations: 0 / 0.5301 GB, free: 11.35 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: 1560 * Number of variables: 1560 Notification: Performance of Generate backend data structure: time 0.01501/0.6281, allocations: 3.692 MB / 0.5337 GB, free: 9.562 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.236e-05/0.6282, allocations: 9.406 kB / 0.5337 GB, free: 9.562 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00347/0.6317, allocations: 0.7221 MB / 0.5344 GB, free: 9.488 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02599/0.6577, allocations: 3.868 MB / 0.5382 GB, free: 8.098 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008338/0.6661, allocations: 2.426 MB / 0.5405 GB, free: 7.336 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003657/0.6666, allocations: 189.5 kB / 0.5407 GB, free: 7.328 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003174/0.6697, allocations: 343.6 kB / 0.541 GB, free: 7.293 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03279/0.7026, allocations: 10.83 MB / 0.5516 GB, free: 4.461 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002063/0.7029, allocations: 34.08 kB / 0.5517 GB, free: 4.453 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002163/0.7051, allocations: 116 kB / 0.5518 GB, free: 4.453 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00725/0.7123, allocations: 2.555 MB / 0.5543 GB, free: 3.031 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03426/0.7467, allocations: 10.34 MB / 0.5644 GB, free: 11.72 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09358/0.8403, allocations: 35.99 MB / 0.5995 GB, free: 9.141 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01492/0.8553, allocations: 4.434 MB / 0.6038 GB, free: 4.496 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002154/0.8575, allocations: 1.318 MB / 0.6051 GB, free: 2.969 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.889e-05/0.8576, allocations: 56.56 kB / 0.6052 GB, free: 2.906 MB / 410.7 MB Notification: Performance of pre-optimization done (n=245): time 9.518e-06/0.8577, allocations: 4 kB / 0.6052 GB, free: 2.902 MB / 410.7 MB Notification: Performance of matching and sorting (n=261): time 0.08141/0.9391, allocations: 17.63 MB / 0.6224 GB, free: 1.059 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002055/0.9412, allocations: 1.542 MB / 0.6239 GB, free: 15.36 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007242/0.9485, allocations: 3.006 MB / 0.6268 GB, free: 12.34 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000883/0.9494, allocations: 64.94 kB / 0.6269 GB, free: 12.28 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003289/0.9527, allocations: 2.732 MB / 0.6296 GB, free: 9.559 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002113/0.9549, allocations: 0.9567 MB / 0.6305 GB, free: 8.609 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007822/0.9557, allocations: 108 kB / 0.6306 GB, free: 8.504 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0006072/0.9563, allocations: 0.5586 MB / 0.6311 GB, free: 7.934 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007755/0.9641, allocations: 2.459 MB / 0.6335 GB, free: 5.469 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01135/0.9755, allocations: 5.486 MB / 0.6389 GB, free: 14.55 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01029/0.9859, allocations: 3.674 MB / 0.6425 GB, free: 10.97 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001103/0.986, allocations: 28 kB / 0.6425 GB, free: 10.94 MB / 458.7 MB Notification: Performance of matching and sorting (n=754) (initialization): time 0.04347/1.03, allocations: 9.75 MB / 0.652 GB, free: 1.172 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001176/1.03, allocations: 55.95 kB / 0.6521 GB, free: 1.117 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02756/1.057, allocations: 4.906 MB / 0.6569 GB, free: 12.2 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02283/1.08, allocations: 2.386 MB / 0.6592 GB, free: 9.793 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009072/1.089, allocations: 1.295 MB / 0.6605 GB, free: 8.496 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01649/1.106, allocations: 6.165 MB / 0.6665 GB, free: 2.07 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007339/1.113, allocations: 401.2 kB / 0.6669 GB, free: 1.68 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001715/1.115, allocations: 328 kB / 0.6672 GB, free: 1.359 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 481 * 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],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.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 (692): * Single equations (assignments): 680 * Array equations: 8 * 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.007868/1.123, allocations: 2.115 MB / 0.6693 GB, free: 15.24 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008772/1.124, allocations: 284.2 kB / 0.6695 GB, free: 14.96 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02174/1.146, allocations: 5.431 MB / 0.6748 GB, free: 9.453 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01946/1.165, allocations: 4.679 MB / 0.6794 GB, free: 4.723 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.346e-05/1.165, allocations: 7.938 kB / 0.6794 GB, free: 4.715 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-05/1.165, allocations: 7.969 kB / 0.6794 GB, free: 4.707 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05372/1.219, allocations: 14.74 MB / 0.6938 GB, free: 5.773 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.861e-05/1.219, allocations: 12.06 kB / 0.6938 GB, free: 5.762 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004172/1.223, allocations: 427.3 kB / 0.6942 GB, free: 5.344 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009003/1.232, allocations: 1.24 MB / 0.6954 GB, free: 4.09 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008865/1.233, allocations: 67.95 kB / 0.6955 GB, free: 4.023 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008988/1.242, allocations: 4.523 MB / 0.6999 GB, free: 15.23 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001745/1.244, allocations: 1.47 MB / 0.7014 GB, free: 13.62 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02832/1.272, allocations: 8.969 MB / 0.7101 GB, free: 4.23 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001269/1.274, allocations: 347 kB / 0.7105 GB, free: 3.871 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001421/1.275, allocations: 59.98 kB / 0.7105 GB, free: 3.812 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003843/1.279, allocations: 203.2 kB / 0.7107 GB, free: 3.617 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001145/1.28, allocations: 169.9 kB / 0.7109 GB, free: 3.453 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003582/1.281, allocations: 75.98 kB / 0.7109 GB, free: 3.379 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.005624/1.286, allocations: 1.877 MB / 0.7128 GB, free: 1.496 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7.92e-07/1.286, allocations: 0.6562 kB / 0.7128 GB, free: 1.496 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009013/1.295, allocations: 1.101 MB / 0.7138 GB, free: 408 kB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],freeMotion.r_rel_a[1],freeMotion.r_rel_a[2],freeMotion.r_rel_a[3],freeMotion.v_rel_a[1],freeMotion.v_rel_a[2],freeMotion.v_rel_a[3],freeMotion.w_rel_b[1],freeMotion.w_rel_b[2],freeMotion.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 (202): * Single equations (assignments): 192 * Array equations: 6 * 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 Backend phase and start with SimCode phase: time 0.3844/1.68, allocations: 12.01 MB / 0.7256 GB, free: 177.7 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01974/1.7, allocations: 6.512 MB / 0.7319 GB, free: 175.5 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.576e-05/1.7, allocations: 0 / 0.7319 GB, free: 175.5 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.009246/1.709, allocations: 2.901 MB / 0.7348 GB, free: 174.3 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003421/1.712, allocations: 350.3 kB / 0.7351 GB, free: 174.2 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1199/1.832, allocations: 107.2 MB / 0.8398 GB, free: 74.14 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.011/1.843, allocations: 3.406 MB / 0.8431 GB, free: 71.06 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007463/1.851, allocations: 1.854 MB / 0.8449 GB, free: 69.21 MB / 0.5105 GB Notification: Performance of SimCode: time 2.715e-06/1.851, allocations: 4 kB / 0.8449 GB, free: 69.2 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.969/6.82, allocations: 150.7 MB / 0.9921 GB, free: 120.7 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotion_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotion.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat does not exist to compare? outputFormat=mat