Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009468/0.0009468, allocations: 98.47 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001025/0.001025, allocations: 189.3 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.361/1.361, allocations: 223.2 MB / 241.9 MB, free: 236 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2237/0.2237, allocations: 44.23 MB / 337.2 MB, free: 2.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003197/0.0003197, allocations: 12 kB / 409.7 MB, free: 27.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1106, allocations: 61.92 MB / 471.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion): time 0.02543/0.136, allocations: 26.4 MB / 498 MB, free: 3.145 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01609/0.1522, allocations: 6.451 MB / 0.4927 GB, free: 12.67 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006406/0.1586, allocations: 119.8 kB / 0.4928 GB, free: 12.55 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004713/0.1634, allocations: 1.275 MB / 0.494 GB, free: 11.27 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01212/0.1755, allocations: 4.001 MB / 0.4979 GB, free: 7.258 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001961/0.1775, allocations: 419.3 kB / 0.4983 GB, free: 6.848 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006315/0.1838, allocations: 4.249 MB / 0.5025 GB, free: 2.594 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004136/0.188, allocations: 2.162 MB / 0.5046 GB, free: 384 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2796/0.4676, allocations: 1.023 MB / 0.5056 GB, free: 13.08 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003754/0.4714, allocations: 1.674 MB / 0.5072 GB, free: 13.08 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008496/0.4723, allocations: 126 kB / 0.5074 GB, free: 13.08 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002875/0.4752, allocations: 0.9033 MB / 0.5082 GB, free: 13.08 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002191/0.4774, allocations: 1.524 MB / 0.5097 GB, free: 13.08 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009569/0.4783, allocations: 0.7484 MB / 0.5105 GB, free: 13.05 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006461/0.4848, allocations: 4.735 MB / 0.5151 GB, free: 12.74 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.646e-06/0.4848, allocations: 2.094 kB / 0.5151 GB, free: 12.74 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.4848, allocations: 1.641 kB / 0.5151 GB, free: 12.74 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001958/0.485, allocations: 0.75 kB / 0.5151 GB, free: 12.74 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1512 * Number of variables: 1512 Notification: Performance of Generate backend data structure: time 0.009672/0.4947, allocations: 3.533 MB / 0.5185 GB, free: 11.01 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.03e-05/0.4948, allocations: 16.73 kB / 0.5186 GB, free: 11.01 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001929/0.4967, allocations: 0.6955 MB / 0.5192 GB, free: 10.94 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01133/0.5081, allocations: 3.261 MB / 0.5224 GB, free: 10.67 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006637/0.5147, allocations: 2.662 MB / 0.525 GB, free: 9.816 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002037/0.515, allocations: 180.4 kB / 0.5252 GB, free: 9.809 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001583/0.5165, allocations: 333.8 kB / 0.5255 GB, free: 9.777 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01967/0.5362, allocations: 10.47 MB / 0.5357 GB, free: 7.051 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000254/0.5366, allocations: 32.83 kB / 0.5358 GB, free: 7.047 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00121/0.5378, allocations: 114.5 kB / 0.5359 GB, free: 7.047 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004017/0.5418, allocations: 2.498 MB / 0.5383 GB, free: 6.488 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0195/0.5613, allocations: 9.97 MB / 0.548 GB, free: 168 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05729/0.6187, allocations: 34.99 MB / 0.5822 GB, free: 14.66 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008564/0.6273, allocations: 4.308 MB / 0.5864 GB, free: 10.14 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003472/0.6308, allocations: 2.15 MB / 0.5885 GB, free: 7.992 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001302/0.6321, allocations: 1.315 MB / 0.5898 GB, free: 6.461 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.94e-05/0.6322, allocations: 52.56 kB / 0.5899 GB, free: 6.402 MB / 430.1 MB Notification: Performance of pre-optimization done (n=236): time 5.19e-06/0.6322, allocations: 0 / 0.5899 GB, free: 6.402 MB / 430.1 MB Notification: Performance of matching and sorting (n=252): time 0.04149/0.6737, allocations: 16.73 MB / 0.6062 GB, free: 5.617 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001364/0.6751, allocations: 1.535 MB / 0.6077 GB, free: 3.934 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004616/0.6797, allocations: 2.705 MB / 0.6103 GB, free: 1.215 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007452/0.6805, allocations: 57.7 kB / 0.6104 GB, free: 1.152 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002245/0.6828, allocations: 2.661 MB / 0.613 GB, free: 14.5 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001697/0.6845, allocations: 0.9243 MB / 0.6139 GB, free: 13.59 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003025/0.6848, allocations: 111.8 kB / 0.614 GB, free: 13.48 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0004639/0.6852, allocations: 0.5455 MB / 0.6145 GB, free: 12.93 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00397/0.6892, allocations: 2.377 MB / 0.6169 GB, free: 10.54 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00615/0.6954, allocations: 5.336 MB / 0.6221 GB, free: 3.809 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005647/0.7011, allocations: 3.561 MB / 0.6255 GB, free: 348 kB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.84e-05/0.7011, allocations: 32 kB / 0.6256 GB, free: 316 kB / 462.1 MB Notification: Performance of matching and sorting (n=732) (initialization): time 0.02127/0.7224, allocations: 9.284 MB / 0.6346 GB, free: 7.52 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.648e-05/0.7225, allocations: 48 kB / 0.6347 GB, free: 7.473 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01145/0.734, allocations: 4.477 MB / 0.6391 GB, free: 2.977 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008862/0.7429, allocations: 2.023 MB / 0.641 GB, free: 0.9375 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004375/0.7473, allocations: 1.252 MB / 0.6423 GB, free: 15.68 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006621/0.7539, allocations: 4.949 MB / 0.6471 GB, free: 10.47 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004265/0.7582, allocations: 391.6 kB / 0.6475 GB, free: 10.09 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008334/0.7591, allocations: 320 kB / 0.6478 GB, free: 9.773 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 468 * Number of states: 0 () * Number of discrete variables: 26 (freeMotion.arrow.arrowLine.twoHeadedArrow,freeMotion.arrow.headAtOrigin,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 (670): * Single equations (assignments): 658 * 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.004158/0.7632, allocations: 2.068 MB / 0.6498 GB, free: 7.699 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004991/0.7637, allocations: 280.3 kB / 0.6501 GB, free: 7.422 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009795/0.7735, allocations: 5.31 MB / 0.6552 GB, free: 2.078 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008073/0.7816, allocations: 4.582 MB / 0.6597 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.909e-06/0.7817, allocations: 0 / 0.6597 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.972e-05/0.7817, allocations: 7.969 kB / 0.6597 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02338/0.8051, allocations: 14.42 MB / 0.6738 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-05/0.8051, allocations: 8 kB / 0.6738 GB, free: 14.83 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001543/0.8067, allocations: 405 kB / 0.6742 GB, free: 14.44 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003894/0.8106, allocations: 1.248 MB / 0.6754 GB, free: 13.18 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000198/0.8108, allocations: 62.55 kB / 0.6755 GB, free: 13.12 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004761/0.8156, allocations: 4.451 MB / 0.6798 GB, free: 8.406 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001082/0.8167, allocations: 1.463 MB / 0.6813 GB, free: 6.797 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01317/0.8299, allocations: 7.977 MB / 0.689 GB, free: 14.66 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001129/0.831, allocations: 333.5 kB / 0.6894 GB, free: 14.31 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004073/0.8314, allocations: 47.98 kB / 0.6894 GB, free: 14.26 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001371/0.8328, allocations: 195.7 kB / 0.6896 GB, free: 14.07 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003418/0.8332, allocations: 168.4 kB / 0.6898 GB, free: 13.91 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001752/0.8333, allocations: 72.73 kB / 0.6898 GB, free: 13.84 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002702/0.8361, allocations: 1.648 MB / 0.6914 GB, free: 12.18 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.31e-07/0.8361, allocations: 0 / 0.6914 GB, free: 12.18 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005033/0.8411, allocations: 1.039 MB / 0.6924 GB, free: 11.14 MB / 0.5294 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 (192): * Single equations (assignments): 182 * 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.01341/0.8545, allocations: 8.523 MB / 0.7008 GB, free: 2.457 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.2537/1.108, allocations: 6.333 MB / 0.707 GB, free: 195.9 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.207e-05/1.108, allocations: 4.531 kB / 0.707 GB, free: 195.9 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005088/1.113, allocations: 2.829 MB / 0.7097 GB, free: 195.4 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002568/1.116, allocations: 381.2 kB / 0.7101 GB, free: 195.4 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05501/1.171, allocations: 32.53 MB / 0.7419 GB, free: 172.4 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003227/1.174, allocations: 3.24 MB / 0.745 GB, free: 169.2 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004345/1.179, allocations: 2.06 MB / 0.747 GB, free: 167.1 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002384/1.181, allocations: 1.737 MB / 0.7487 GB, free: 165.4 MB / 0.5294 GB Notification: Performance of SimCode: time 6.91e-07/1.181, allocations: 0 / 0.7487 GB, free: 165.4 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.133/1.314, allocations: 69.99 MB / 0.8171 GB, free: 95.78 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001506/1.314, allocations: 213.3 kB / 0.8173 GB, free: 95.54 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.409/4.724, allocations: 4 kB / 0.8173 GB, free: 95.54 MB / 0.5294 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat does not exist to compare? outputFormat=mat