Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 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 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 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_3_2_3_ModelicaTest_MultiBody_Joints_FreeMotion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion,fileNamePrefix="ModelicaTest_3_2_3_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.0008773/0.0008771, allocations: 96.86 kB / 15.7 MB, free: 468 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001035/0.001035, allocations: 174.2 kB / 16.58 MB, free: 6.039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.416/1.416, allocations: 205.4 MB / 222.7 MB, free: 5.633 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3268/0.3268, allocations: 43.54 MB / 314.6 MB, free: 8.977 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004928/0.0004929, allocations: 14.97 kB / 384 MB, free: 8.156 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1088, allocations: 58.85 MB / 442.9 MB, free: 13.2 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion): time 0.2072/0.3161, allocations: 26.72 MB / 469.6 MB, free: 35.31 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01409/0.3302, allocations: 6.507 MB / 476.1 MB, free: 31.8 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004617/0.3349, allocations: 117.8 kB / 476.2 MB, free: 31.79 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003319/0.3382, allocations: 1.281 MB / 477.5 MB, free: 31.34 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008467/0.3467, allocations: 4.053 MB / 481.6 MB, free: 29.7 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001304/0.348, allocations: 421 kB / 482 MB, free: 29.55 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003932/0.352, allocations: 4.363 MB / 486.3 MB, free: 28.14 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00242/0.3544, allocations: 2.215 MB / 488.5 MB, free: 27.23 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001281/0.3557, allocations: 1.067 MB / 489.6 MB, free: 26.88 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001942/0.3577, allocations: 1.75 MB / 491.4 MB, free: 26.38 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003062/0.358, allocations: 131.6 kB / 491.5 MB, free: 26.38 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00177/0.3597, allocations: 0.9015 MB / 492.4 MB, free: 26.19 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001523/0.3613, allocations: 1.57 MB / 494 MB, free: 25.73 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006333/0.3619, allocations: 0.7719 MB / 494.7 MB, free: 25.16 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005428/0.3674, allocations: 4.919 MB / 499.6 MB, free: 24.16 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.112e-06/0.3674, allocations: 5.188 kB / 499.7 MB, free: 24.16 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3674, allocations: 0 / 499.7 MB, free: 24.16 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001394/0.3675, allocations: 0 / 499.7 MB, free: 24.16 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: 1560 * Number of variables: 1560 Notification: Performance of Generate backend data structure: time 0.00636/0.3739, allocations: 3.636 MB / 0.4915 GB, free: 21.84 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.879e-05/0.374, allocations: 14.27 kB / 0.4915 GB, free: 21.83 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008063/0.3748, allocations: 0.7224 MB / 0.4922 GB, free: 21.34 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009822/0.3846, allocations: 3.28 MB / 0.4954 GB, free: 19.67 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005184/0.3898, allocations: 2.837 MB / 0.4982 GB, free: 17.98 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001901/0.39, allocations: 187.5 kB / 0.4984 GB, free: 17.89 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001215/0.3912, allocations: 349.1 kB / 0.4987 GB, free: 17.75 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0166/0.4078, allocations: 10.78 MB / 0.5092 GB, free: 11.75 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001075/0.408, allocations: 27.34 kB / 0.5092 GB, free: 11.73 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000555/0.4086, allocations: 116.4 kB / 0.5094 GB, free: 11.65 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00312/0.4117, allocations: 2.561 MB / 0.5119 GB, free: 9.086 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01553/0.4272, allocations: 10.26 MB / 0.5219 GB, free: 14.81 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04968/0.4769, allocations: 35.85 MB / 0.5569 GB, free: 10.12 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008276/0.4853, allocations: 4.425 MB / 0.5612 GB, free: 5.477 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003361/0.4887, allocations: 2.189 MB / 0.5633 GB, free: 3.285 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001404/0.4901, allocations: 1.319 MB / 0.5646 GB, free: 1.742 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.34e-05/0.4902, allocations: 60.5 kB / 0.5647 GB, free: 1.676 MB / 430.1 MB Notification: Performance of pre-optimization done (n=245): time 5.149e-06/0.4902, allocations: 0 / 0.5647 GB, free: 1.676 MB / 430.1 MB Notification: Performance of matching and sorting (n=261): time 0.04263/0.5328, allocations: 17.05 MB / 0.5813 GB, free: 476 kB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001401/0.5343, allocations: 1.531 MB / 0.5828 GB, free: 14.77 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005319/0.5396, allocations: 2.78 MB / 0.5856 GB, free: 11.98 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006211/0.5403, allocations: 57.78 kB / 0.5856 GB, free: 11.92 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002179/0.5425, allocations: 2.744 MB / 0.5883 GB, free: 9.133 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00157/0.5441, allocations: 0.9635 MB / 0.5892 GB, free: 8.156 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006204/0.5447, allocations: 112 kB / 0.5893 GB, free: 8.047 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0005036/0.5453, allocations: 0.5459 MB / 0.5899 GB, free: 7.492 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004678/0.5499, allocations: 2.439 MB / 0.5923 GB, free: 5.047 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007212/0.5572, allocations: 5.478 MB / 0.5976 GB, free: 14.08 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006085/0.5633, allocations: 3.646 MB / 0.6012 GB, free: 10.44 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001118/0.5635, allocations: 28 kB / 0.6012 GB, free: 10.41 MB / 478.1 MB Notification: Performance of matching and sorting (n=754) (initialization): time 0.02115/0.5846, allocations: 9.482 MB / 0.6105 GB, free: 0.9023 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.506e-05/0.5847, allocations: 52.03 kB / 0.6105 GB, free: 0.8516 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0117/0.5964, allocations: 4.57 MB / 0.615 GB, free: 12.27 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00888/0.6054, allocations: 2.031 MB / 0.6169 GB, free: 10.22 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00482/0.6102, allocations: 1.298 MB / 0.6182 GB, free: 8.918 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006754/0.617, allocations: 4.951 MB / 0.6231 GB, free: 3.707 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004338/0.6213, allocations: 395.6 kB / 0.6234 GB, free: 3.32 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009359/0.6223, allocations: 328 kB / 0.6237 GB, free: 3 MB / 494.1 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.004742/0.6271, allocations: 2.109 MB / 0.6258 GB, free: 0.875 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005142/0.6276, allocations: 284.2 kB / 0.6261 GB, free: 0.5938 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.244/0.8716, allocations: 5.431 MB / 0.6314 GB, free: 139 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007831/0.8795, allocations: 4.684 MB / 0.6359 GB, free: 138.9 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.256e-05/0.8795, allocations: 3.094 kB / 0.636 GB, free: 138.9 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.429e-05/0.8795, allocations: 10.59 kB / 0.636 GB, free: 138.9 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02146/0.901, allocations: 14.73 MB / 0.6503 GB, free: 134.4 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.09e-05/0.9011, allocations: 11.47 kB / 0.6504 GB, free: 134.4 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001753/0.9028, allocations: 424.3 kB / 0.6508 GB, free: 134.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003944/0.9068, allocations: 1.244 MB / 0.652 GB, free: 134.3 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002754/0.9071, allocations: 66.73 kB / 0.652 GB, free: 134.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004218/0.9113, allocations: 4.429 MB / 0.6564 GB, free: 131.2 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008/0.9121, allocations: 1.477 MB / 0.6578 GB, free: 129.8 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01388/0.926, allocations: 8.148 MB / 0.6658 GB, free: 126.9 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00096/0.927, allocations: 344.2 kB / 0.6661 GB, free: 126.8 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004972/0.9275, allocations: 50.27 kB / 0.6661 GB, free: 126.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00147/0.929, allocations: 203.2 kB / 0.6663 GB, free: 126.7 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003841/0.9294, allocations: 169.5 kB / 0.6665 GB, free: 126.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002002/0.9296, allocations: 79.53 kB / 0.6666 GB, free: 126.7 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002822/0.9324, allocations: 1.7 MB / 0.6682 GB, free: 126.1 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.9324, allocations: 0 / 0.6682 GB, free: 126.1 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005576/0.938, allocations: 1.056 MB / 0.6693 GB, free: 126 MB / 494.1 MB 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.01078/0.9488, allocations: 8.694 MB / 0.6778 GB, free: 122.5 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008836/0.9577, allocations: 6.473 MB / 0.6841 GB, free: 118.4 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.827e-06/0.9577, allocations: 0 / 0.6841 GB, free: 118.4 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003993/0.9617, allocations: 2.888 MB / 0.6869 GB, free: 115.7 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002315/0.9641, allocations: 399.1 kB / 0.6873 GB, free: 115.4 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05722/1.021, allocations: 33.48 MB / 0.72 GB, free: 79.21 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003847/1.025, allocations: 3.309 MB / 0.7232 GB, free: 75.88 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004297/1.03, allocations: 2.111 MB / 0.7253 GB, free: 73.76 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002141/1.032, allocations: 1.807 MB / 0.727 GB, free: 71.96 MB / 494.1 MB Notification: Performance of SimCode: time 1.142e-06/1.032, allocations: 0 / 0.727 GB, free: 71.96 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1039/1.136, allocations: 71.78 MB / 0.7971 GB, free: 180 kB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001699/1.136, allocations: 212.8 kB / 0.7973 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.516/4.652, allocations: 4 kB / 0.7973 GB, free: 15.93 MB / 0.4981 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_FreeMotion_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_FreeMotion.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat does not exist to compare? outputFormat=mat