Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009746/0.0009752, allocations: 173.7 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.568/1.568, allocations: 221.5 MB / 230.7 MB, free: 7.555 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001088/0.001088, allocations: 104.5 kB / 281.6 MB, free: 5.305 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2108/0.2108, allocations: 44.15 MB / 376.5 MB, free: 3.035 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.556e-05/2.576e-05, allocations: 8.156 kB / 444.7 MB, free: 15.13 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1332/0.1333, allocations: 61.92 MB / 0.4948 GB, free: 1.145 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4767/0.61, allocations: 109.7 MB / 0.6019 GB, free: 2.641 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003415/0.6105, allocations: 75.97 kB / 0.6019 GB, free: 2.566 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7364/1.347, allocations: 115.7 MB / 0.715 GB, free: 106.3 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.475e-06/1.347, allocations: 3.062 kB / 0.715 GB, free: 106.3 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0005728/1.348, allocations: 111.4 kB / 0.7151 GB, free: 106.3 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1982 * Number of variables: 1982 Notification: Performance of Generate backend data structure: time 0.02453/1.372, allocations: 5.849 MB / 0.7208 GB, free: 104 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 7.561e-05/1.372, allocations: 13.02 kB / 0.7208 GB, free: 104 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0305/1.403, allocations: 6.971 MB / 0.7276 GB, free: 103.6 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02042/1.423, allocations: 7.44 MB / 0.7349 GB, free: 102.8 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00034/1.424, allocations: 187.1 kB / 0.735 GB, free: 102.8 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002998/1.427, allocations: 344.4 kB / 0.7354 GB, free: 102.8 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01545/1.442, allocations: 8.009 MB / 0.7432 GB, free: 102.8 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02814/1.47, allocations: 12.17 MB / 0.7551 GB, free: 98.13 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004809/1.471, allocations: 84.47 kB / 0.7552 GB, free: 98.12 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002411/1.473, allocations: 35.81 kB / 0.7552 GB, free: 98.12 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001742/1.475, allocations: 1.288 MB / 0.7565 GB, free: 97.89 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06384/1.539, allocations: 58.75 MB / 0.8138 GB, free: 54.18 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005929/1.545, allocations: 4.794 MB / 0.8185 GB, free: 49.67 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003198/1.548, allocations: 3.176 MB / 0.8216 GB, free: 46.75 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005715/1.549, allocations: 0.6777 MB / 0.8223 GB, free: 46.02 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.368e-05/1.549, allocations: 68.44 kB / 0.8223 GB, free: 45.95 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=245): time 5.51e-06/1.549, allocations: 4 kB / 0.8223 GB, free: 45.95 MB / 0.4948 GB Notification: Performance of matching and sorting (n=315): time 0.05939/1.608, allocations: 29.37 MB / 0.851 GB, free: 20.75 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.734e-05/1.608, allocations: 265.3 kB / 0.8513 GB, free: 20.44 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005858/1.614, allocations: 3.861 MB / 0.855 GB, free: 16.64 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0008614/1.615, allocations: 25.7 kB / 0.8551 GB, free: 16.61 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002266/1.617, allocations: 4.025 MB / 0.859 GB, free: 12.53 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001625/1.619, allocations: 1.141 MB / 0.8601 GB, free: 11.38 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000388/1.619, allocations: 0 / 0.8601 GB, free: 11.38 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.00038/1.62, allocations: 0.6365 MB / 0.8607 GB, free: 10.73 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00384/1.624, allocations: 3.139 MB / 0.8638 GB, free: 7.594 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007285/1.631, allocations: 7.412 MB / 0.871 GB, free: 14.06 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009119/1.64, allocations: 4.778 MB / 0.8757 GB, free: 9.262 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001445/1.64, allocations: 47.19 kB / 0.8757 GB, free: 9.219 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1013) (initialization): time 0.02768/1.668, allocations: 11.51 MB / 0.887 GB, free: 13.65 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001114/1.668, allocations: 76.06 kB / 0.8871 GB, free: 13.57 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002561/1.668, allocations: 148 kB / 0.8872 GB, free: 13.43 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006014/1.674, allocations: 2.156 MB / 0.8893 GB, free: 11.27 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008017/1.682, allocations: 1.766 MB / 0.891 GB, free: 9.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4014/2.084, allocations: 13.2 MB / 0.9039 GB, free: 119.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00831/2.092, allocations: 299.3 kB / 0.9042 GB, free: 119.7 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00222/2.094, allocations: 460.1 kB / 0.9047 GB, free: 119.7 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 687 * Number of states: 0 () * Number of discrete variables: 44 (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.arrow.arrowLine.twoHeadedArrow,freeMotion.arrow.headAtOrigin,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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (937): * Single equations (assignments): 932 * 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 {(6,55.6%) 21,(6,55.6%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001544/2.096, allocations: 0.4899 MB / 0.9051 GB, free: 119.6 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01487/2.111, allocations: 6.836 MB / 0.9118 GB, free: 119.4 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001764/2.113, allocations: 449.8 kB / 0.9122 GB, free: 119.4 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01505/2.128, allocations: 6.752 MB / 0.9188 GB, free: 119.2 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001188/2.128, allocations: 32.97 kB / 0.9189 GB, free: 119.2 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.272e-05/2.128, allocations: 13.41 kB / 0.9189 GB, free: 119.2 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.492e-05/2.128, allocations: 14.06 kB / 0.9189 GB, free: 119.2 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03199/2.16, allocations: 14.67 MB / 0.9332 GB, free: 118 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.268e-05/2.16, allocations: 3.25 kB / 0.9332 GB, free: 118 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002455/2.163, allocations: 0.4933 MB / 0.9337 GB, free: 118 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004366/2.167, allocations: 1.857 MB / 0.9355 GB, free: 117.6 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005889/2.168, allocations: 15.75 kB / 0.9355 GB, free: 117.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01519/2.183, allocations: 11.93 MB / 0.9472 GB, free: 111.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.204e-05/2.183, allocations: 10.53 kB / 0.9472 GB, free: 111.6 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01557/2.199, allocations: 11.74 MB / 0.9587 GB, free: 106.1 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002204/2.201, allocations: 482.4 kB / 0.9591 GB, free: 105.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00156/2.202, allocations: 18.14 kB / 0.9591 GB, free: 105.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003172/2.206, allocations: 166.2 kB / 0.9593 GB, free: 105.7 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006214/2.206, allocations: 207.7 kB / 0.9595 GB, free: 105.7 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002342/2.206, allocations: 83.44 kB / 0.9596 GB, free: 105.7 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.004472/2.211, allocations: 2.608 MB / 0.9621 GB, free: 104.7 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.7e-07/2.211, allocations: 0 / 0.9621 GB, free: 104.7 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.008715/2.22, allocations: 1.277 MB / 0.9634 GB, free: 104.7 MB / 0.5261 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (253): * Single equations (assignments): 248 * 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.01662/2.236, allocations: 13.76 MB / 0.9768 GB, free: 97.3 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01487/2.251, allocations: 8.162 MB / 0.9848 GB, free: 94.59 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.983e-05/2.251, allocations: 2.344 kB / 0.9848 GB, free: 94.59 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.008348/2.26, allocations: 3.782 MB / 0.9885 GB, free: 93.21 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004968/2.265, allocations: 0.5067 MB / 0.989 GB, free: 93.02 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04244/2.307, allocations: 13.62 MB / 1.002 GB, free: 82.93 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006727/2.314, allocations: 4.45 MB / 1.007 GB, free: 79.6 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.007963/2.322, allocations: 2.48 MB / 1.009 GB, free: 78.01 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007822/2.33, allocations: 2.724 MB / 1.012 GB, free: 75.49 MB / 0.5261 GB Notification: Performance of SimCode: time 2.214e-06/2.33, allocations: 0 / 1.012 GB, free: 75.49 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5439/2.874, allocations: 109.2 MB / 1.118 GB, free: 116.7 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001637/2.874, allocations: 129.1 kB / 1.118 GB, free: 116.5 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.198/8.072, allocations: 3.5 kB / 1.118 GB, free: 116.5 MB / 0.5417 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion2_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat does not exist to compare? outputFormat=mat