Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",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.001846/0.001846, allocations: 181.6 kB / 8.7 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.692/1.692, allocations: 205.3 MB / 214.4 MB, free: 1.672 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008565/0.0008565, allocations: 83.47 kB / 262.4 MB, free: 1.617 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.429e-05/2.431e-05, allocations: 4.219 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1034, allocations: 47.59 MB / 363.2 MB, free: 6.969 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3893/0.4928, allocations: 91.43 MB / 454.6 MB, free: 4.406 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002704/0.4931, allocations: 88.12 kB / 454.7 MB, free: 4.359 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1512/0.6443, allocations: 57.16 MB / 0.4999 GB, free: 0.5508 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.6444, allocations: 0 / 0.4999 GB, free: 0.5508 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.155e-05/0.6445, allocations: 48 kB / 0.4999 GB, free: 0.5039 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.01128/0.6558, allocations: 2.955 MB / 0.5028 GB, free: 13.49 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.14e-05/0.6558, allocations: 12.03 kB / 0.5028 GB, free: 13.48 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009908/0.6658, allocations: 2.055 MB / 0.5048 GB, free: 11.42 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01014/0.676, allocations: 3.618 MB / 0.5083 GB, free: 7.75 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001548/0.6762, allocations: 83.94 kB / 0.5084 GB, free: 7.668 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001182/0.6774, allocations: 155.9 kB / 0.5086 GB, free: 7.516 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007556/0.6849, allocations: 4.077 MB / 0.5126 GB, free: 3.434 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01151/0.6965, allocations: 6.273 MB / 0.5187 GB, free: 12.43 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001016/0.6967, allocations: 35.69 kB / 0.5187 GB, free: 12.39 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003445/0.697, allocations: 24 kB / 0.5187 GB, free: 12.37 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001088/0.6981, allocations: 0.715 MB / 0.5194 GB, free: 11.65 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.292/0.9901, allocations: 31.41 MB / 0.5501 GB, free: 87.15 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002725/0.9929, allocations: 1.998 MB / 0.5521 GB, free: 86.49 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001364/0.9943, allocations: 0.9859 MB / 0.553 GB, free: 86.46 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001104/0.9954, allocations: 0.9786 MB / 0.554 GB, free: 85.61 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.596e-05/0.9954, allocations: 46.48 kB / 0.554 GB, free: 85.57 MB / 410.7 MB Notification: Performance of pre-optimization done (n=118): time 4.628e-06/0.9954, allocations: 0 / 0.554 GB, free: 85.57 MB / 410.7 MB Notification: Performance of matching and sorting (n=131): time 0.02093/1.016, allocations: 8.311 MB / 0.5621 GB, free: 83.63 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.042e-05/1.017, allocations: 145.5 kB / 0.5623 GB, free: 83.47 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003549/1.02, allocations: 2.148 MB / 0.5644 GB, free: 83.2 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003295/1.02, allocations: 25.7 kB / 0.5644 GB, free: 83.16 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001218/1.022, allocations: 2.12 MB / 0.5665 GB, free: 82.07 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006021/1.022, allocations: 0.5144 MB / 0.567 GB, free: 81.77 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001611/1.022, allocations: 7.438 kB / 0.567 GB, free: 81.77 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002743/1.023, allocations: 0.5499 MB / 0.5675 GB, free: 81.45 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001805/1.025, allocations: 1.539 MB / 0.569 GB, free: 81.44 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003062/1.028, allocations: 4.41 MB / 0.5733 GB, free: 77.69 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003101/1.031, allocations: 2.597 MB / 0.5759 GB, free: 77.02 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.686e-05/1.031, allocations: 29.41 kB / 0.5759 GB, free: 77.02 MB / 410.7 MB Notification: Performance of matching and sorting (n=616) (initialization): time 0.01352/1.044, allocations: 6.473 MB / 0.5822 GB, free: 75.14 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.614e-05/1.044, allocations: 50.31 kB / 0.5823 GB, free: 75.14 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005332/1.05, allocations: 2.475 MB / 0.5847 GB, free: 74.55 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004685/1.054, allocations: 1.474 MB / 0.5861 GB, free: 74.36 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00354/1.058, allocations: 1.06 MB / 0.5871 GB, free: 74.23 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007954/1.066, allocations: 6.894 MB / 0.5939 GB, free: 70.31 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004795/1.071, allocations: 287 kB / 0.5942 GB, free: 70.29 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001307/1.072, allocations: 291.5 kB / 0.5944 GB, free: 70.25 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 471 * Number of states: 0 () * Number of discrete variables: 21 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],spring.color[3],spring.color[2],spring.color[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (568): * Single equations (assignments): 560 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009108/1.073, allocations: 364.1 kB / 0.5948 GB, free: 69.94 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006803/1.08, allocations: 3.143 MB / 0.5978 GB, free: 69.07 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006598/1.081, allocations: 213.9 kB / 0.5981 GB, free: 68.95 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006474/1.087, allocations: 2.744 MB / 0.6007 GB, free: 68.2 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005362/1.093, allocations: 2.448 MB / 0.6031 GB, free: 67.58 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.793e-05/1.093, allocations: 11.33 kB / 0.6031 GB, free: 67.57 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.455e-05/1.093, allocations: 11.36 kB / 0.6031 GB, free: 67.57 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0151/1.108, allocations: 6.764 MB / 0.6097 GB, free: 62.34 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.942e-05/1.108, allocations: 4 kB / 0.6098 GB, free: 62.34 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008916/1.109, allocations: 181.8 kB / 0.6099 GB, free: 62.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00434/1.113, allocations: 1.403 MB / 0.6113 GB, free: 61.3 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002316/1.113, allocations: 18.38 kB / 0.6113 GB, free: 61.29 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008293/1.122, allocations: 7.068 MB / 0.6182 GB, free: 55.05 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007677/1.123, allocations: 1.4 MB / 0.6196 GB, free: 53.57 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00848/1.131, allocations: 4.924 MB / 0.6244 GB, free: 49.45 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001006/1.132, allocations: 289.5 kB / 0.6247 GB, free: 49.16 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007703/1.133, allocations: 15.7 kB / 0.6247 GB, free: 49.14 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00169/1.135, allocations: 110.3 kB / 0.6248 GB, free: 49.09 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003084/1.135, allocations: 87.52 kB / 0.6249 GB, free: 49.04 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00014/1.135, allocations: 43.97 kB / 0.6249 GB, free: 49 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003146/1.138, allocations: 1.406 MB / 0.6263 GB, free: 47.76 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.4e-07/1.138, allocations: 7.938 kB / 0.6263 GB, free: 47.75 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006184/1.145, allocations: 0.6895 MB / 0.627 GB, free: 47.07 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET0.x[3],$STATESET0.x[2],$STATESET0.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]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 83 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009676/1.154, allocations: 5.933 MB / 0.6328 GB, free: 41.07 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007626/1.162, allocations: 4.126 MB / 0.6368 GB, free: 36.92 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.287e-06/1.162, allocations: 4 kB / 0.6368 GB, free: 36.92 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002928/1.165, allocations: 1.696 MB / 0.6385 GB, free: 35.18 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001937/1.167, allocations: 198.5 kB / 0.6386 GB, free: 34.98 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01672/1.184, allocations: 6.314 MB / 0.6448 GB, free: 28.66 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003065/1.187, allocations: 2.36 MB / 0.6471 GB, free: 26.29 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003913/1.191, allocations: 1.501 MB / 0.6486 GB, free: 24.78 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00176/1.192, allocations: 1.112 MB / 0.6497 GB, free: 23.67 MB / 410.7 MB Notification: Performance of SimCode: time 1.854e-06/1.193, allocations: 0 / 0.6497 GB, free: 23.67 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.327/1.52, allocations: 51.92 MB / 0.7004 GB, free: 108.7 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001492/1.52, allocations: 157.3 kB / 0.7005 GB, free: 108.5 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.04/5.56, allocations: 0 / 0.7005 GB, free: 108.5 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat does not exist to compare? outputFormat=mat