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.002224/0.002231, allocations: 189.5 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.291/2.291, allocations: 205.4 MB / 222.5 MB, free: 13.83 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.001256/0.001255, allocations: 90.84 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.2994/0.2994, allocations: 43.56 MB / 362.7 MB, free: 11.3 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004738/0.000474, allocations: 12 kB / 431.5 MB, free: 20.16 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1291/0.1296, allocations: 58.86 MB / 490.3 MB, free: 9.23 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.4445/0.5741, allocations: 63.87 MB / 0.5412 GB, free: 9.555 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.04375/0.618, allocations: 14.99 MB / 0.5558 GB, free: 2.84 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01692/0.6349, allocations: 329.2 kB / 0.5562 GB, free: 2.785 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01507/0.6501, allocations: 3.198 MB / 0.5593 GB, free: 0.9297 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04415/0.6943, allocations: 9.147 MB / 0.5682 GB, free: 10.79 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007022/0.7014, allocations: 0.9174 MB / 0.5691 GB, free: 10.17 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.07508/0.7765, allocations: 27.35 MB / 0.5958 GB, free: 308 kB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01475/0.7913, allocations: 6.305 MB / 0.602 GB, free: 9.938 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004552/0.796, allocations: 1.51 MB / 0.6034 GB, free: 8.422 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005299/0.8013, allocations: 2.079 MB / 0.6055 GB, free: 6.336 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001583/0.803, allocations: 212 kB / 0.6057 GB, free: 6.129 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004123/0.8071, allocations: 0.9637 MB / 0.6066 GB, free: 5.164 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004743/0.8119, allocations: 2.295 MB / 0.6089 GB, free: 2.863 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003234/0.8153, allocations: 1.201 MB / 0.61 GB, free: 1.652 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01469/0.83, allocations: 8.175 MB / 0.618 GB, free: 9.457 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.8301, allocations: 0 / 0.618 GB, free: 9.457 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.076e-06/0.8301, allocations: 0 / 0.618 GB, free: 9.457 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003521/0.8304, allocations: 0 / 0.618 GB, free: 9.457 MB / 426.7 MB 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.02762/0.8581, allocations: 6.35 MB / 0.6242 GB, free: 3.027 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.669e-05/0.8582, allocations: 8.031 kB / 0.6242 GB, free: 3.02 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003776/0.8619, allocations: 0.9591 MB / 0.6252 GB, free: 2.051 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4196/1.282, allocations: 14.76 MB / 0.6396 GB, free: 3.258 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02594/1.308, allocations: 4.972 MB / 0.6444 GB, free: 14.2 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007785/1.308, allocations: 337.1 kB / 0.6448 GB, free: 13.87 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003451/1.312, allocations: 459.5 kB / 0.6452 GB, free: 13.42 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0589/1.371, allocations: 13.6 MB / 0.6585 GB, free: 14.94 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005364/1.372, allocations: 63.44 kB / 0.6585 GB, free: 14.88 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003269/1.375, allocations: 211.8 kB / 0.6587 GB, free: 14.67 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01352/1.388, allocations: 2.66 MB / 0.6613 GB, free: 12.01 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05928/1.448, allocations: 11.73 MB / 0.6728 GB, free: 264 kB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5058/1.954, allocations: 53.87 MB / 0.7254 GB, free: 153.5 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02548/1.979, allocations: 5.828 MB / 0.7311 GB, free: 152.8 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001141/1.98, allocations: 0.6835 MB / 0.7318 GB, free: 152.3 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.906e-05/1.98, allocations: 64.77 kB / 0.7318 GB, free: 152.2 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=254): time 7.514e-06/1.981, allocations: 2.094 kB / 0.7318 GB, free: 152.2 MB / 0.5105 GB Notification: Performance of matching and sorting (n=324): time 0.194/2.175, allocations: 36.76 MB / 0.7677 GB, free: 136.1 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001132/2.175, allocations: 265.4 kB / 0.768 GB, free: 135.8 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01135/2.186, allocations: 5.686 MB / 0.7735 GB, free: 130.1 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.000942/2.187, allocations: 74.88 kB / 0.7736 GB, free: 130 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.00316/2.19, allocations: 3.867 MB / 0.7774 GB, free: 126.2 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001965/2.192, allocations: 1.196 MB / 0.7786 GB, free: 125 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001047/2.193, allocations: 152.5 kB / 0.7787 GB, free: 124.8 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0005082/2.194, allocations: 0.6372 MB / 0.7793 GB, free: 124.2 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008545/2.202, allocations: 3.446 MB / 0.7827 GB, free: 120.7 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01193/2.214, allocations: 7.662 MB / 0.7902 GB, free: 111.2 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0116/2.226, allocations: 5.063 MB / 0.7951 GB, free: 106.4 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001334/2.226, allocations: 40 kB / 0.7952 GB, free: 106.3 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.03582/2.262, allocations: 12.71 MB / 0.8076 GB, free: 93.66 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001094/2.262, allocations: 68 kB / 0.8076 GB, free: 93.59 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002019/2.262, allocations: 144 kB / 0.8078 GB, free: 93.45 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009789/2.272, allocations: 2.267 MB / 0.81 GB, free: 91.18 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01108/2.283, allocations: 1.77 MB / 0.8117 GB, free: 89.41 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.031/2.314, allocations: 15.76 MB / 0.8271 GB, free: 73.38 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009056/2.324, allocations: 471.6 kB / 0.8275 GB, free: 72.93 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001777/2.325, allocations: 452.5 kB / 0.828 GB, free: 72.48 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 672 * 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 () * Number of clocked 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.00745/2.333, allocations: 2.828 MB / 0.8307 GB, free: 69.64 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001437/2.334, allocations: 0.4898 MB / 0.8312 GB, free: 69.15 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02313/2.358, allocations: 7.421 MB / 0.8385 GB, free: 61.66 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.145e-05/2.358, allocations: 36 kB / 0.8385 GB, free: 61.62 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.484e-05/2.358, allocations: 8.688 kB / 0.8385 GB, free: 61.62 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.517e-05/2.358, allocations: 15.95 kB / 0.8385 GB, free: 61.6 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0482/2.406, allocations: 16.68 MB / 0.8548 GB, free: 44.86 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.649e-05/2.406, allocations: 8 kB / 0.8548 GB, free: 44.85 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005028/2.411, allocations: 0.5187 MB / 0.8553 GB, free: 44.33 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008962/2.42, allocations: 1.995 MB / 0.8573 GB, free: 42.33 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008407/2.421, allocations: 67.98 kB / 0.8573 GB, free: 42.26 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02968/2.451, allocations: 14.24 MB / 0.8713 GB, free: 27.76 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.157e-06/2.451, allocations: 12 kB / 0.8713 GB, free: 27.75 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02943/2.48, allocations: 12.69 MB / 0.8837 GB, free: 14.74 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004044/2.484, allocations: 1.104 MB / 0.8847 GB, free: 13.61 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001694/2.486, allocations: 61.33 kB / 0.8848 GB, free: 13.55 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005062/2.491, allocations: 227.7 kB / 0.885 GB, free: 13.33 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001318/2.493, allocations: 205.6 kB / 0.8852 GB, free: 13.13 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004047/2.493, allocations: 89.55 kB / 0.8853 GB, free: 13.04 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.007999/2.501, allocations: 3.649 MB / 0.8889 GB, free: 9.414 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.21e-07/2.501, allocations: 0 / 0.8889 GB, free: 9.414 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009447/2.51, allocations: 1.546 MB / 0.8904 GB, free: 7.871 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (263): * Single equations (assignments): 258 * 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.03473/2.545, allocations: 14.7 MB / 0.9047 GB, free: 8.879 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.02405/2.569, allocations: 8.548 MB / 0.9131 GB, free: 332 kB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.368e-05/2.569, allocations: 4 kB / 0.9131 GB, free: 328 kB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.01532/2.585, allocations: 4.098 MB / 0.9171 GB, free: 12.2 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005994/2.591, allocations: 0.631 MB / 0.9177 GB, free: 11.57 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5266/3.117, allocations: 158.8 MB / 1.073 GB, free: 72.55 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009569/3.127, allocations: 4.538 MB / 1.077 GB, free: 70.97 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007156/3.134, allocations: 2.88 MB / 1.08 GB, free: 68.67 MB / 0.5417 GB Notification: Performance of SimCode: time 2.034e-06/3.134, allocations: 0 / 1.08 GB, free: 68.67 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.489/8.623, allocations: 169.3 MB / 1.245 GB, free: 113.3 MB / 0.5417 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