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.001102/0.001102, allocations: 197.3 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.422/1.422, allocations: 225.6 MB / 234.8 MB, free: 3.266 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009837/0.0009838, allocations: 93.73 kB / 286.7 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.248e-05/2.252e-05, allocations: 4 kB / 343.8 MB, free: 8.184 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.1166, allocations: 51.48 MB / 395.3 MB, free: 4.664 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3762/0.4928, allocations: 93.41 MB / 488.7 MB, free: 15.62 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002538/0.4931, allocations: 85.45 kB / 488.8 MB, free: 15.58 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1529/0.646, allocations: 58.66 MB / 0.5346 GB, free: 9.836 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.544e-06/0.6461, allocations: 4 kB / 0.5346 GB, free: 9.832 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001287/0.6462, allocations: 51.98 kB / 0.5347 GB, free: 9.781 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.01135/0.6576, allocations: 3.044 MB / 0.5376 GB, free: 6.684 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.872e-05/0.6577, allocations: 8.031 kB / 0.5376 GB, free: 6.676 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01008/0.6677, allocations: 2.11 MB / 0.5397 GB, free: 4.559 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008654/0.6764, allocations: 2.971 MB / 0.5426 GB, free: 1.539 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002015/0.6767, allocations: 80 kB / 0.5427 GB, free: 1.461 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001578/0.6783, allocations: 147.9 kB / 0.5428 GB, free: 1.316 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007933/0.6862, allocations: 4.081 MB / 0.5468 GB, free: 13.23 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01154/0.6978, allocations: 6.276 MB / 0.5529 GB, free: 6.223 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001145/0.698, allocations: 39.59 kB / 0.553 GB, free: 6.184 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003438/0.6983, allocations: 24 kB / 0.553 GB, free: 6.16 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001101/0.6994, allocations: 0.715 MB / 0.5537 GB, free: 5.441 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3289/1.028, allocations: 31.38 MB / 0.5843 GB, free: 75.57 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002329/1.031, allocations: 2.002 MB / 0.5863 GB, free: 74.91 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001069/1.032, allocations: 0.9726 MB / 0.5872 GB, free: 74.88 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008689/1.033, allocations: 0.9823 MB / 0.5882 GB, free: 74.04 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.123e-05/1.033, allocations: 47.75 kB / 0.5882 GB, free: 74 MB / 442.7 MB Notification: Performance of pre-optimization done (n=118): time 4.037e-06/1.033, allocations: 0 / 0.5882 GB, free: 74 MB / 442.7 MB Notification: Performance of matching and sorting (n=131): time 0.01727/1.05, allocations: 8.269 MB / 0.5963 GB, free: 72.12 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.506e-05/1.05, allocations: 142.6 kB / 0.5964 GB, free: 71.96 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002637/1.053, allocations: 2.135 MB / 0.5985 GB, free: 71.68 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001706/1.053, allocations: 28.36 kB / 0.5986 GB, free: 71.65 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009618/1.054, allocations: 2.112 MB / 0.6006 GB, free: 70.52 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004098/1.054, allocations: 0.5151 MB / 0.6011 GB, free: 70.23 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001525/1.054, allocations: 0 / 0.6011 GB, free: 70.23 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002538/1.055, allocations: 0.553 MB / 0.6017 GB, free: 69.91 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001679/1.056, allocations: 1.544 MB / 0.6032 GB, free: 69.89 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002657/1.059, allocations: 4.411 MB / 0.6075 GB, free: 66.14 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00278/1.062, allocations: 2.595 MB / 0.61 GB, free: 66.11 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.373e-05/1.062, allocations: 32.41 kB / 0.61 GB, free: 66.11 MB / 442.7 MB Notification: Performance of matching and sorting (n=616) (initialization): time 0.01129/1.073, allocations: 6.472 MB / 0.6164 GB, free: 65.61 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.51e-05/1.073, allocations: 50.19 kB / 0.6164 GB, free: 65.61 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005523/1.079, allocations: 2.476 MB / 0.6188 GB, free: 65.54 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005236/1.084, allocations: 1.471 MB / 0.6203 GB, free: 65.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0044/1.089, allocations: 1.066 MB / 0.6213 GB, free: 65.41 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01064/1.099, allocations: 6.896 MB / 0.628 GB, free: 61.76 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004206/1.103, allocations: 288.7 kB / 0.6283 GB, free: 61.73 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008588/1.104, allocations: 292.9 kB / 0.6286 GB, free: 61.7 MB / 442.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.0007335/1.105, allocations: 366.7 kB / 0.629 GB, free: 61.39 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.007077/1.112, allocations: 3.124 MB / 0.632 GB, free: 60.54 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006074/1.113, allocations: 216.1 kB / 0.6322 GB, free: 60.42 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0071/1.12, allocations: 2.756 MB / 0.6349 GB, free: 59.65 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00561/1.126, allocations: 2.447 MB / 0.6373 GB, free: 59.04 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.259e-05/1.126, allocations: 4.656 kB / 0.6373 GB, free: 59.04 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.368e-05/1.126, allocations: 12.77 kB / 0.6373 GB, free: 59.03 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0133/1.139, allocations: 6.757 MB / 0.6439 GB, free: 56.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.577e-05/1.139, allocations: 0.5156 kB / 0.6439 GB, free: 56.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008698/1.14, allocations: 181 kB / 0.6441 GB, free: 56.68 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004665/1.145, allocations: 1.411 MB / 0.6455 GB, free: 56.47 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001871/1.145, allocations: 21.25 kB / 0.6455 GB, free: 56.46 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007939/1.153, allocations: 7.06 MB / 0.6524 GB, free: 52.58 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007851/1.154, allocations: 1.396 MB / 0.6537 GB, free: 51.21 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0084/1.162, allocations: 4.941 MB / 0.6586 GB, free: 49.28 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001061/1.163, allocations: 285.7 kB / 0.6588 GB, free: 49.05 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000331/1.164, allocations: 11.28 kB / 0.6588 GB, free: 49.05 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001243/1.165, allocations: 112 kB / 0.6589 GB, free: 49.04 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002385/1.165, allocations: 79.77 kB / 0.659 GB, free: 49.03 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001036/1.165, allocations: 46.5 kB / 0.6591 GB, free: 49.02 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001968/1.167, allocations: 1.395 MB / 0.6604 GB, free: 48.47 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.81e-07/1.167, allocations: 0 / 0.6604 GB, free: 48.47 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004152/1.171, allocations: 0.7026 MB / 0.6611 GB, free: 48.46 MB / 442.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.007833/1.179, allocations: 5.937 MB / 0.6669 GB, free: 45.67 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006458/1.186, allocations: 4.126 MB / 0.6709 GB, free: 44.12 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.983e-06/1.186, allocations: 2.25 kB / 0.6709 GB, free: 44.12 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002712/1.188, allocations: 1.687 MB / 0.6726 GB, free: 43.39 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001333/1.19, allocations: 196.5 kB / 0.6728 GB, free: 43.29 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01316/1.203, allocations: 6.305 MB / 0.6789 GB, free: 40.01 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001939/1.205, allocations: 2.352 MB / 0.6812 GB, free: 38.16 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003528/1.208, allocations: 1.5 MB / 0.6827 GB, free: 37.24 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001983/1.211, allocations: 1.112 MB / 0.6838 GB, free: 36.21 MB / 442.7 MB Notification: Performance of SimCode: time 2.845e-06/1.211, allocations: 1.969 kB / 0.6838 GB, free: 36.21 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08614/1.297, allocations: 51.86 MB / 0.7344 GB, free: 5.484 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001973/1.297, allocations: 162.1 kB / 0.7346 GB, free: 5.285 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.681/4.978, allocations: 0 / 0.7346 GB, free: 5.285 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