Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001521/0.001521, allocations: 197.1 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.663/1.663, allocations: 225.4 MB / 240.1 MB, free: 15.12 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001142/0.001142, allocations: 88.95 kB / 292.1 MB, free: 5.918 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.094e-05/5.108e-05, allocations: 8 kB / 350.6 MB, free: 2.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1244/0.1244, allocations: 51.47 MB / 402.1 MB, free: 14.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.415/0.5395, allocations: 94.09 MB / 496.2 MB, free: 11.57 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000301/0.5399, allocations: 87.53 kB / 496.3 MB, free: 11.53 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1727/0.7126, allocations: 59.61 MB / 0.5429 GB, free: 1.078 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.7127, allocations: 0 / 0.5429 GB, free: 1.078 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001671/0.7129, allocations: 44 kB / 0.5429 GB, free: 1.035 MB / 410.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.01429/0.7272, allocations: 3.055 MB / 0.5459 GB, free: 13.93 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.761e-05/0.7273, allocations: 8.031 kB / 0.5459 GB, free: 13.92 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002687/0.73, allocations: 0.5104 MB / 0.5464 GB, free: 13.4 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01078/0.7408, allocations: 2.11 MB / 0.5485 GB, free: 11.29 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009805/0.7506, allocations: 2.971 MB / 0.5514 GB, free: 8.266 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000284/0.751, allocations: 189 kB / 0.5515 GB, free: 8.078 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001586/0.7526, allocations: 255.8 kB / 0.5518 GB, free: 7.828 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01749/0.7701, allocations: 6.956 MB / 0.5586 GB, free: 124 kB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002338/0.7704, allocations: 39.59 kB / 0.5586 GB, free: 84 kB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001444/0.7719, allocations: 127.9 kB / 0.5587 GB, free: 15.96 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001514/0.7734, allocations: 0.7228 MB / 0.5595 GB, free: 15.24 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01342/0.7868, allocations: 5.942 MB / 0.5653 GB, free: 9.293 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3665/1.153, allocations: 32.69 MB / 0.5972 GB, free: 69.55 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006451/1.16, allocations: 2.652 MB / 0.5998 GB, free: 68.89 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001588/1.162, allocations: 1.011 MB / 0.6008 GB, free: 68.86 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005739/1.167, allocations: 3.892 MB / 0.6046 GB, free: 67.02 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.387e-05/1.167, allocations: 46.81 kB / 0.6046 GB, free: 66.98 MB / 442.7 MB Notification: Performance of pre-optimization done (n=112): time 5.45e-06/1.167, allocations: 0 / 0.6046 GB, free: 66.98 MB / 442.7 MB Notification: Performance of matching and sorting (n=125): time 0.02218/1.19, allocations: 8.875 MB / 0.6133 GB, free: 65.02 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001046/1.191, allocations: 1.586 MB / 0.6148 GB, free: 63.49 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003813/1.195, allocations: 2.412 MB / 0.6172 GB, free: 63.2 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003379/1.195, allocations: 40.77 kB / 0.6172 GB, free: 63.17 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001255/1.196, allocations: 2.082 MB / 0.6192 GB, free: 62.03 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000633/1.197, allocations: 0.5051 MB / 0.6197 GB, free: 61.75 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000188/1.197, allocations: 88.44 kB / 0.6198 GB, free: 61.75 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002285/1.197, allocations: 0.494 MB / 0.6203 GB, free: 61.44 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002153/1.199, allocations: 1.566 MB / 0.6218 GB, free: 61.42 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004025/1.203, allocations: 4.335 MB / 0.6261 GB, free: 57.82 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004756/1.208, allocations: 2.603 MB / 0.6286 GB, free: 57.75 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001275/1.208, allocations: 28.81 kB / 0.6286 GB, free: 57.75 MB / 442.7 MB Notification: Performance of matching and sorting (n=589) (initialization): time 0.01654/1.225, allocations: 6.911 MB / 0.6354 GB, free: 57.1 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001421/1.225, allocations: 48.41 kB / 0.6354 GB, free: 57.1 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.007018/1.232, allocations: 2.516 MB / 0.6379 GB, free: 56.55 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006008/1.238, allocations: 1.498 MB / 0.6393 GB, free: 56.35 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004148/1.242, allocations: 1.018 MB / 0.6403 GB, free: 56.22 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01036/1.253, allocations: 7.228 MB / 0.6474 GB, free: 52.11 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004971/1.258, allocations: 365.4 kB / 0.6477 GB, free: 52.02 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009496/1.259, allocations: 283.2 kB / 0.648 GB, free: 51.99 MB / 442.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.0008664/1.26, allocations: 448.7 kB / 0.6484 GB, free: 51.62 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006153/1.26, allocations: 237.6 kB / 0.6487 GB, free: 51.49 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006236/1.266, allocations: 2.82 MB / 0.6514 GB, free: 50.68 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005244/1.272, allocations: 2.492 MB / 0.6539 GB, free: 50.04 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.202e-05/1.272, allocations: 11.53 kB / 0.6539 GB, free: 50.04 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.512e-05/1.272, allocations: 10.75 kB / 0.6539 GB, free: 50.04 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01323/1.285, allocations: 6.855 MB / 0.6606 GB, free: 47.69 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-05/1.285, allocations: 0 / 0.6606 GB, free: 47.69 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009154/1.286, allocations: 176.3 kB / 0.6607 GB, free: 47.68 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004533/1.291, allocations: 1.431 MB / 0.6621 GB, free: 47.46 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002874/1.291, allocations: 34.28 kB / 0.6622 GB, free: 47.45 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00887/1.3, allocations: 7.329 MB / 0.6693 GB, free: 43.39 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008901/1.301, allocations: 1.455 MB / 0.6708 GB, free: 41.95 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00834/1.309, allocations: 4.927 MB / 0.6756 GB, free: 40.05 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009723/1.31, allocations: 306.2 kB / 0.6759 GB, free: 39.8 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002885/1.311, allocations: 23.19 kB / 0.6759 GB, free: 39.79 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001271/1.312, allocations: 130.6 kB / 0.676 GB, free: 39.78 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003049/1.312, allocations: 81.11 kB / 0.6761 GB, free: 39.77 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001061/1.312, allocations: 37.12 kB / 0.6761 GB, free: 39.76 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002544/1.315, allocations: 1.654 MB / 0.6777 GB, free: 39.15 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.393e-06/1.315, allocations: 112 / 0.6777 GB, free: 39.15 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004774/1.32, allocations: 0.7786 MB / 0.6785 GB, free: 39.06 MB / 442.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.008769/1.328, allocations: 5.941 MB / 0.6843 GB, free: 36.24 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.008047/1.336, allocations: 4.242 MB / 0.6884 GB, free: 34.61 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.054e-06/1.337, allocations: 0 / 0.6884 GB, free: 34.61 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003056/1.34, allocations: 1.707 MB / 0.6901 GB, free: 33.11 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00189/1.342, allocations: 256.4 kB / 0.6903 GB, free: 32.89 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0164/1.358, allocations: 6.394 MB / 0.6966 GB, free: 27.34 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002029/1.36, allocations: 2.355 MB / 0.6989 GB, free: 25.48 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003402/1.363, allocations: 1.416 MB / 0.7003 GB, free: 24.61 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001552/1.365, allocations: 1.112 MB / 0.7014 GB, free: 23.59 MB / 442.7 MB Notification: Performance of SimCode: time 9.32e-07/1.365, allocations: 4 kB / 0.7014 GB, free: 23.58 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3834/1.748, allocations: 54.96 MB / 0.755 GB, free: 98.35 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001792/1.749, allocations: 200.7 kB / 0.7552 GB, free: 98.12 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.057/5.806, allocations: 0 / 0.7552 GB, free: 98.12 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat does not exist to compare? outputFormat=mat