Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001034/0.001034, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.434/1.434, allocations: 221.5 MB / 230.3 MB, free: 7.52 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.0008235/0.0008238, allocations: 91.39 kB / 281.2 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.781e-05/1.779e-05, allocations: 4 kB / 337.1 MB, free: 9.914 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.121, allocations: 50.42 MB / 387.6 MB, free: 7.449 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3734/0.4945, allocations: 92.76 MB / 480.3 MB, free: 1.902 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000272/0.4949, allocations: 83.95 kB / 480.4 MB, free: 1.82 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1561/0.651, allocations: 57.91 MB / 0.5257 GB, free: 7.473 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.651, allocations: 0 / 0.5257 GB, free: 7.473 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001424/0.6511, allocations: 48 kB / 0.5257 GB, free: 7.426 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.01119/0.6624, allocations: 2.944 MB / 0.5286 GB, free: 4.426 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.898e-05/0.6624, allocations: 8.031 kB / 0.5286 GB, free: 4.418 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01/0.6724, allocations: 2.059 MB / 0.5306 GB, free: 2.352 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01033/0.6828, allocations: 3.486 MB / 0.534 GB, free: 14.82 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001601/0.683, allocations: 80 kB / 0.5341 GB, free: 14.74 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001284/0.6843, allocations: 151.9 kB / 0.5343 GB, free: 14.59 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007698/0.692, allocations: 4.081 MB / 0.5382 GB, free: 10.5 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0115/0.7035, allocations: 6.269 MB / 0.5444 GB, free: 3.504 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001139/0.7037, allocations: 43.53 kB / 0.5444 GB, free: 3.461 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003454/0.704, allocations: 20 kB / 0.5444 GB, free: 3.441 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001076/0.7051, allocations: 0.719 MB / 0.5451 GB, free: 2.719 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.296/1.001, allocations: 31.37 MB / 0.5758 GB, free: 87.62 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002486/1.004, allocations: 2 MB / 0.5777 GB, free: 86.96 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001312/1.005, allocations: 0.9789 MB / 0.5787 GB, free: 86.93 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00104/1.006, allocations: 0.9808 MB / 0.5796 GB, free: 86.07 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.491e-05/1.006, allocations: 46.84 kB / 0.5797 GB, free: 86.04 MB / 426.7 MB Notification: Performance of pre-optimization done (n=118): time 5.46e-06/1.006, allocations: 2.406 kB / 0.5797 GB, free: 86.04 MB / 426.7 MB Notification: Performance of matching and sorting (n=131): time 0.01779/1.024, allocations: 8.267 MB / 0.5877 GB, free: 84.09 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.1e-05/1.024, allocations: 139.1 kB / 0.5879 GB, free: 83.93 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00283/1.027, allocations: 2.134 MB / 0.59 GB, free: 83.66 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001863/1.027, allocations: 29.3 kB / 0.59 GB, free: 83.62 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009634/1.028, allocations: 2.117 MB / 0.5921 GB, free: 82.34 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004638/1.029, allocations: 0.517 MB / 0.5926 GB, free: 81.97 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000154/1.029, allocations: 0 / 0.5926 GB, free: 81.97 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000247/1.029, allocations: 0.5504 MB / 0.5931 GB, free: 81.55 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001671/1.031, allocations: 1.535 MB / 0.5946 GB, free: 81.03 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002831/1.033, allocations: 4.419 MB / 0.5989 GB, free: 76.61 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002856/1.036, allocations: 2.593 MB / 0.6014 GB, free: 75.82 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.636e-05/1.036, allocations: 30.78 kB / 0.6015 GB, free: 75.82 MB / 426.7 MB Notification: Performance of matching and sorting (n=616) (initialization): time 0.0126/1.049, allocations: 6.47 MB / 0.6078 GB, free: 73.82 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.408e-05/1.049, allocations: 52.81 kB / 0.6078 GB, free: 73.82 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005596/1.055, allocations: 2.469 MB / 0.6103 GB, free: 73.24 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00482/1.06, allocations: 1.483 MB / 0.6117 GB, free: 73.04 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003633/1.063, allocations: 1.068 MB / 0.6127 GB, free: 72.91 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008364/1.072, allocations: 6.9 MB / 0.6195 GB, free: 68.98 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005058/1.077, allocations: 283.6 kB / 0.6198 GB, free: 68.96 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001451/1.078, allocations: 296.2 kB / 0.62 GB, free: 68.92 MB / 426.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.001666/1.08, allocations: 364.8 kB / 0.6204 GB, free: 68.61 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.007365/1.087, allocations: 3.132 MB / 0.6234 GB, free: 67.75 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007792/1.088, allocations: 224 kB / 0.6237 GB, free: 67.62 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006786/1.095, allocations: 2.751 MB / 0.6263 GB, free: 66.86 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005324/1.1, allocations: 2.442 MB / 0.6287 GB, free: 66.25 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.854e-05/1.1, allocations: 3.969 kB / 0.6287 GB, free: 66.25 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.904e-05/1.1, allocations: 7.562 kB / 0.6287 GB, free: 66.25 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01521/1.116, allocations: 6.761 MB / 0.6353 GB, free: 61.29 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.775e-05/1.116, allocations: 0 / 0.6353 GB, free: 61.29 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009539/1.117, allocations: 183.4 kB / 0.6355 GB, free: 61.14 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004491/1.121, allocations: 1.403 MB / 0.6369 GB, free: 60.25 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002291/1.121, allocations: 23.64 kB / 0.6369 GB, free: 60.24 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008275/1.13, allocations: 7.061 MB / 0.6438 GB, free: 54 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007336/1.13, allocations: 1.403 MB / 0.6452 GB, free: 52.53 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008333/1.139, allocations: 4.946 MB / 0.65 GB, free: 48.39 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008138/1.14, allocations: 279.7 kB / 0.6503 GB, free: 48.1 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006532/1.14, allocations: 11.52 kB / 0.6503 GB, free: 48.09 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001822/1.142, allocations: 106.3 kB / 0.6504 GB, free: 48 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003252/1.143, allocations: 84.39 kB / 0.6505 GB, free: 47.91 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001625/1.143, allocations: 39.98 kB / 0.6505 GB, free: 47.88 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003121/1.146, allocations: 1.404 MB / 0.6519 GB, free: 46.46 MB / 426.7 MB Notification: Performance of sort global known variables: time 3e-07/1.146, allocations: 0 / 0.6519 GB, free: 46.46 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005273/1.151, allocations: 0.6913 MB / 0.6526 GB, free: 45.77 MB / 426.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.008784/1.16, allocations: 5.938 MB / 0.6583 GB, free: 39.77 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007233/1.167, allocations: 4.144 MB / 0.6624 GB, free: 35.6 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.684e-06/1.167, allocations: 0 / 0.6624 GB, free: 35.6 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002967/1.17, allocations: 1.684 MB / 0.664 GB, free: 33.87 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001608/1.172, allocations: 208.2 kB / 0.6642 GB, free: 33.67 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01479/1.187, allocations: 6.29 MB / 0.6704 GB, free: 27.37 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002679/1.189, allocations: 2.356 MB / 0.6727 GB, free: 24.99 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.003572/1.193, allocations: 1.496 MB / 0.6741 GB, free: 23.5 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001454/1.194, allocations: 1.112 MB / 0.6752 GB, free: 22.39 MB / 426.7 MB Notification: Performance of SimCode: time 8.42e-07/1.195, allocations: 4 kB / 0.6752 GB, free: 22.38 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3164/1.511, allocations: 51.86 MB / 0.7259 GB, free: 110 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001833/1.511, allocations: 153.4 kB / 0.726 GB, free: 109.8 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.429/4.94, allocations: 0 / 0.726 GB, free: 109.8 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat does not exist to compare? outputFormat=mat