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.00103/0.00103, allocations: 172.8 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.384/1.384, allocations: 205.2 MB / 219.8 MB, free: 14.26 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.000843/0.000843, allocations: 82.72 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.792e-05/2.804e-05, allocations: 0 / 322.5 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08193/0.08198, allocations: 47.57 MB / 370.1 MB, free: 1.617 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3387/0.4208, allocations: 91.86 MB / 462 MB, free: 1.641 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002596/0.4211, allocations: 89.12 kB / 462.1 MB, free: 1.594 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1518/0.5729, allocations: 58.17 MB / 0.508 GB, free: 8.227 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.573, allocations: 0 / 0.508 GB, free: 8.227 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001024/0.5731, allocations: 44 kB / 0.5081 GB, free: 8.184 MB / 394.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.01051/0.5836, allocations: 2.955 MB / 0.511 GB, free: 5.172 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.792e-05/0.5837, allocations: 8.031 kB / 0.511 GB, free: 5.164 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001281/0.5849, allocations: 0.4987 MB / 0.5115 GB, free: 4.656 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009257/0.5942, allocations: 2.059 MB / 0.5135 GB, free: 2.59 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0098/0.6041, allocations: 3.634 MB / 0.517 GB, free: 14.9 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002337/0.6044, allocations: 189 kB / 0.5172 GB, free: 14.71 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001247/0.6056, allocations: 259.7 kB / 0.5175 GB, free: 14.46 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01361/0.6192, allocations: 6.949 MB / 0.5242 GB, free: 6.762 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001111/0.6194, allocations: 39.67 kB / 0.5243 GB, free: 6.723 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003813/0.6198, allocations: 127.9 kB / 0.5244 GB, free: 6.598 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001032/0.6208, allocations: 0.7228 MB / 0.5251 GB, free: 5.875 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2265/0.8474, allocations: 5.939 MB / 0.5309 GB, free: 100.7 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0328/0.8802, allocations: 32.71 MB / 0.5628 GB, free: 79.9 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006678/0.887, allocations: 2.657 MB / 0.5654 GB, free: 79.23 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001507/0.8885, allocations: 1.014 MB / 0.5664 GB, free: 79.2 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006014/0.8946, allocations: 3.914 MB / 0.5703 GB, free: 77.33 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.909e-05/0.8946, allocations: 41.53 kB / 0.5703 GB, free: 77.29 MB / 410.7 MB Notification: Performance of pre-optimization done (n=112): time 4.128e-06/0.8946, allocations: 0 / 0.5703 GB, free: 77.29 MB / 410.7 MB Notification: Performance of matching and sorting (n=125): time 0.02009/0.9147, allocations: 8.937 MB / 0.579 GB, free: 74.39 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009144/0.9157, allocations: 1.592 MB / 0.5806 GB, free: 72.82 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003206/0.9189, allocations: 2.418 MB / 0.5829 GB, free: 71.93 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002703/0.9192, allocations: 37.2 kB / 0.583 GB, free: 71.89 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008888/0.9201, allocations: 2.083 MB / 0.585 GB, free: 70.3 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000429/0.9205, allocations: 0.5051 MB / 0.5855 GB, free: 69.95 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001609/0.9207, allocations: 91.16 kB / 0.5856 GB, free: 69.88 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001717/0.9209, allocations: 0.4928 MB / 0.5861 GB, free: 69.49 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001767/0.9227, allocations: 1.571 MB / 0.5876 GB, free: 68.98 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002662/0.9253, allocations: 4.332 MB / 0.5918 GB, free: 64.74 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002785/0.9281, allocations: 2.603 MB / 0.5944 GB, free: 63.93 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.741e-05/0.9282, allocations: 26.94 kB / 0.5944 GB, free: 63.93 MB / 410.7 MB Notification: Performance of matching and sorting (n=589) (initialization): time 0.01111/0.9393, allocations: 6.905 MB / 0.6011 GB, free: 61.77 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.587e-05/0.9394, allocations: 46.34 kB / 0.6012 GB, free: 61.77 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00514/0.9446, allocations: 2.523 MB / 0.6037 GB, free: 61.17 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00461/0.9492, allocations: 1.496 MB / 0.6051 GB, free: 60.96 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003026/0.9523, allocations: 1.019 MB / 0.6061 GB, free: 60.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007693/0.96, allocations: 7.218 MB / 0.6132 GB, free: 56.73 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003791/0.9638, allocations: 368.8 kB / 0.6135 GB, free: 56.64 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005027/0.9643, allocations: 285 kB / 0.6138 GB, free: 56.6 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 450 * 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 (541): * Single equations (assignments): 533 * 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.0005612/0.9649, allocations: 458.6 kB / 0.6142 GB, free: 56.23 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003457/0.9652, allocations: 228.9 kB / 0.6144 GB, free: 56.1 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005926/0.9712, allocations: 2.833 MB / 0.6172 GB, free: 54.55 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005001/0.9762, allocations: 2.494 MB / 0.6196 GB, free: 52.71 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.429e-05/0.9762, allocations: 4 kB / 0.6196 GB, free: 52.71 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.821e-05/0.9763, allocations: 7.891 kB / 0.6197 GB, free: 52.71 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0118/0.9881, allocations: 6.857 MB / 0.6263 GB, free: 47.38 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.428e-05/0.9881, allocations: 6.719 kB / 0.6264 GB, free: 47.38 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007763/0.9889, allocations: 180.3 kB / 0.6265 GB, free: 47.23 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004382/0.9933, allocations: 1.431 MB / 0.6279 GB, free: 46.32 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001709/0.9935, allocations: 31.08 kB / 0.628 GB, free: 46.29 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00783/1.001, allocations: 7.324 MB / 0.6351 GB, free: 39.02 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006491/1.002, allocations: 1.454 MB / 0.6365 GB, free: 37.43 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007309/1.009, allocations: 4.922 MB / 0.6413 GB, free: 32.43 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000723/1.01, allocations: 301.9 kB / 0.6416 GB, free: 32.12 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002348/1.01, allocations: 31.98 kB / 0.6416 GB, free: 32.09 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001141/1.011, allocations: 125.6 kB / 0.6418 GB, free: 31.96 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002322/1.012, allocations: 80.39 kB / 0.6418 GB, free: 31.89 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.287e-05/1.012, allocations: 35.98 kB / 0.6419 GB, free: 31.85 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002243/1.014, allocations: 1.669 MB / 0.6435 GB, free: 30.17 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.71e-07/1.014, allocations: 0 / 0.6435 GB, free: 30.17 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003207/1.017, allocations: 0.776 MB / 0.6443 GB, free: 29.4 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.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 (83): * Single equations (assignments): 77 * 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.007359/1.025, allocations: 5.934 MB / 0.6501 GB, free: 23.39 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005994/1.031, allocations: 4.233 MB / 0.6542 GB, free: 19.13 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/1.031, allocations: 8 kB / 0.6542 GB, free: 19.12 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002579/1.033, allocations: 1.695 MB / 0.6559 GB, free: 17.38 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001194/1.034, allocations: 244.6 kB / 0.6561 GB, free: 17.15 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01064/1.045, allocations: 6.431 MB / 0.6624 GB, free: 10.7 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001711/1.047, allocations: 2.354 MB / 0.6647 GB, free: 8.32 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002776/1.05, allocations: 1.416 MB / 0.6661 GB, free: 6.902 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001067/1.051, allocations: 1.12 MB / 0.6671 GB, free: 5.781 MB / 410.7 MB Notification: Performance of SimCode: time 8.41e-07/1.051, allocations: 0 / 0.6671 GB, free: 5.781 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3079/1.359, allocations: 55.03 MB / 0.7209 GB, free: 106.2 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001639/1.359, allocations: 201.7 kB / 0.7211 GB, free: 105.9 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.459/4.818, allocations: 2.406 kB / 0.7211 GB, free: 105.9 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