Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2.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.Forces.Spring2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Spring2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Spring2",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.0009253/0.0009256, allocations: 173 kB / 8.742 MB, free: 344 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.522/1.522, allocations: 221.5 MB / 230.7 MB, free: 7.566 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.0009199/0.0009199, allocations: 96.97 kB / 281.6 MB, free: 5.332 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.2142/0.2142, allocations: 44.15 MB / 376.5 MB, free: 3.051 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.098e-05/2.124e-05, allocations: 4.219 kB / 444.7 MB, free: 15.13 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1361/0.1361, allocations: 61.92 MB / 0.4948 GB, free: 1.152 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4363/0.5725, allocations: 104 MB / 0.5963 GB, free: 8.344 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003129/0.5729, allocations: 79.95 kB / 0.5964 GB, free: 8.266 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2544/0.8272, allocations: 97.63 MB / 0.6917 GB, free: 5.938 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.542e-06/0.8273, allocations: 0 / 0.6917 GB, free: 5.938 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.000216/0.8275, allocations: 96 kB / 0.6918 GB, free: 5.844 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: 1730 * Number of variables: 1730 Notification: Performance of Generate backend data structure: time 0.02649/0.854, allocations: 5.918 MB / 0.6976 GB, free: 15.86 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.027e-05/0.8541, allocations: 11.98 kB / 0.6976 GB, free: 15.85 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01526/0.8693, allocations: 2.93 MB / 0.7005 GB, free: 12.91 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01822/0.8876, allocations: 6.817 MB / 0.7071 GB, free: 6.023 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003336/0.888, allocations: 156 kB / 0.7073 GB, free: 5.871 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002341/0.8903, allocations: 299.8 kB / 0.7076 GB, free: 5.578 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.3093/1.2, allocations: 7.318 MB / 0.7147 GB, free: 121.7 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02712/1.227, allocations: 10.92 MB / 0.7254 GB, free: 118.5 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003141/1.227, allocations: 76.23 kB / 0.7254 GB, free: 118.5 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001105/1.228, allocations: 37 kB / 0.7255 GB, free: 118.5 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002184/1.23, allocations: 1.239 MB / 0.7267 GB, free: 118.4 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06167/1.292, allocations: 57.01 MB / 0.7824 GB, free: 82.76 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004466/1.297, allocations: 3.598 MB / 0.7859 GB, free: 80.89 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002679/1.299, allocations: 2.294 MB / 0.7881 GB, free: 79.95 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001326/1.301, allocations: 1.644 MB / 0.7897 GB, free: 78.48 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.05e-05/1.301, allocations: 66.31 kB / 0.7898 GB, free: 78.43 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=226): time 7.935e-06/1.301, allocations: 0 / 0.7898 GB, free: 78.43 MB / 0.5105 GB Notification: Performance of matching and sorting (n=259): time 0.03961/1.34, allocations: 20.5 MB / 0.8098 GB, free: 70.69 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.947e-05/1.34, allocations: 259.9 kB / 0.8101 GB, free: 70.4 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004346/1.345, allocations: 3.456 MB / 0.8134 GB, free: 69.12 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006177/1.345, allocations: 25.7 kB / 0.8135 GB, free: 69.09 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001632/1.347, allocations: 3.562 MB / 0.8169 GB, free: 66.45 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001057/1.348, allocations: 0.9985 MB / 0.8179 GB, free: 65.71 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003259/1.349, allocations: 3.812 kB / 0.8179 GB, free: 65.71 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0003063/1.349, allocations: 0.6363 MB / 0.8185 GB, free: 65.26 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003633/1.352, allocations: 2.963 MB / 0.8214 GB, free: 64.26 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006133/1.359, allocations: 7.338 MB / 0.8286 GB, free: 57.34 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005939/1.365, allocations: 4.568 MB / 0.8331 GB, free: 55.68 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.237e-05/1.365, allocations: 44.81 kB / 0.8331 GB, free: 55.68 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1009) (initialization): time 0.02371/1.388, allocations: 12.07 MB / 0.8449 GB, free: 48.13 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002146/1.389, allocations: 72 kB / 0.8449 GB, free: 48.06 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01394/1.403, allocations: 6.257 MB / 0.8511 GB, free: 43.29 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01043/1.413, allocations: 3.26 MB / 0.8542 GB, free: 41.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005915/1.419, allocations: 1.78 MB / 0.856 GB, free: 39.57 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01396/1.433, allocations: 15.05 MB / 0.8707 GB, free: 25.64 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007486/1.441, allocations: 0.632 MB / 0.8713 GB, free: 25.22 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001622/1.442, allocations: 470.1 kB / 0.8717 GB, free: 24.78 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 708 * Number of states: 0 () * Number of discrete variables: 45 (fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[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 (930): * Single equations (assignments): 910 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 5 {(4,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 3 {4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,100.0%) 13,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001319/1.444, allocations: 0.4975 MB / 0.8722 GB, free: 24.28 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01318/1.457, allocations: 6.951 MB / 0.879 GB, free: 18.76 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001308/1.458, allocations: 387 kB / 0.8794 GB, free: 18.38 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01421/1.472, allocations: 6.795 MB / 0.886 GB, free: 11.53 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01194/1.484, allocations: 6.153 MB / 0.892 GB, free: 5.332 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.23e-05/1.484, allocations: 12 kB / 0.892 GB, free: 5.32 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.642e-05/1.484, allocations: 11.95 kB / 0.8921 GB, free: 5.309 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03019/1.515, allocations: 14.76 MB / 0.9065 GB, free: 6.445 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.129e-05/1.515, allocations: 4 kB / 0.9065 GB, free: 6.441 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002276/1.517, allocations: 443.3 kB / 0.9069 GB, free: 6.008 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01652/1.534, allocations: 3.269 MB / 0.9101 GB, free: 2.703 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007907/1.534, allocations: 51.92 kB / 0.9101 GB, free: 2.652 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3657/1.9, allocations: 15.99 MB / 0.9258 GB, free: 118.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002594/1.903, allocations: 4.243 MB / 0.9299 GB, free: 114.2 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02209/1.925, allocations: 10.78 MB / 0.9404 GB, free: 112.9 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001746/1.927, allocations: 448.7 kB / 0.9409 GB, free: 112.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001152/1.928, allocations: 36.91 kB / 0.9409 GB, free: 112.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003265/1.931, allocations: 300.7 kB / 0.9412 GB, free: 112.8 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007494/1.932, allocations: 190.7 kB / 0.9414 GB, free: 112.8 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002517/1.932, allocations: 80.8 kB / 0.9414 GB, free: 112.8 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.004399/1.937, allocations: 2.292 MB / 0.9437 GB, free: 112.6 MB / 0.5261 GB Notification: Performance of sort global known variables: time 4.8e-07/1.937, allocations: 0 / 0.9437 GB, free: 112.6 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007204/1.944, allocations: 1.397 MB / 0.945 GB, free: 112.6 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 36 ($STATESET7.x[3],$STATESET7.x[2],$STATESET7.x[1],$STATESET6.x[3],$STATESET6.x[2],$STATESET6.x[1],$STATESET5.x[3],$STATESET5.x[2],$STATESET5.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],body2.frame_a.r_0[1],body2.frame_a.r_0[2],body2.frame_a.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.w_a[1],body2.w_a[2],body2.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (195): * Single equations (assignments): 181 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 5 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 3 {4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,100.0%) 8,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01761/1.961, allocations: 12.37 MB / 0.9571 GB, free: 110 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01746/1.979, allocations: 8.816 MB / 0.9657 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.729e-05/1.979, allocations: 0 / 0.9657 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.009315/1.988, allocations: 4.522 MB / 0.9701 GB, free: 106.9 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003776/1.992, allocations: 413.3 kB / 0.9705 GB, free: 106.7 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0304/2.023, allocations: 12.83 MB / 0.9831 GB, free: 102 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005294/2.028, allocations: 3.774 MB / 0.9868 GB, free: 100.7 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.006898/2.035, allocations: 2.319 MB / 0.989 GB, free: 100.5 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004364/2.039, allocations: 2.239 MB / 0.9912 GB, free: 98.7 MB / 0.5261 GB Notification: Performance of SimCode: time 1.272e-06/2.039, allocations: 0 / 0.9912 GB, free: 98.7 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1662/2.205, allocations: 99.26 MB / 1.088 GB, free: 18.71 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001614/2.206, allocations: 134.7 kB / 1.088 GB, free: 18.52 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.197/7.403, allocations: 0 / 1.088 GB, free: 18.52 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Spring2_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Spring2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2_res.mat does not exist to compare? outputFormat=mat