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.001022/0.001022, allocations: 181.2 kB / 17.01 MB, free: 5.121 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.291/1.291, allocations: 205.4 MB / 223.1 MB, free: 9.117 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.001039/0.001039, allocations: 96.09 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002606/0.0002606, allocations: 4 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2299/0.2302, allocations: 47.57 MB / 375.9 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1049/0.3352, allocations: 91.96 MB / 467.9 MB, free: 4.668 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003308/0.3355, allocations: 91.89 kB / 468 MB, free: 4.578 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3113/0.6468, allocations: 58.14 MB / 0.5138 GB, free: 94.34 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.155e-06/0.6469, allocations: 0 / 0.5138 GB, free: 94.34 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.239e-05/0.647, allocations: 52.06 kB / 0.5138 GB, free: 94.33 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.008445/0.6554, allocations: 3.075 MB / 0.5168 GB, free: 93.01 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.759e-05/0.6555, allocations: 7.812 kB / 0.5168 GB, free: 93.01 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000724/0.6562, allocations: 0.5023 MB / 0.5173 GB, free: 92.95 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00747/0.6637, allocations: 2.057 MB / 0.5193 GB, free: 92.64 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008009/0.6717, allocations: 3.638 MB / 0.5229 GB, free: 91.4 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000105/0.6718, allocations: 193.4 kB / 0.5231 GB, free: 91.38 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004096/0.6722, allocations: 263 kB / 0.5233 GB, free: 91.3 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008405/0.6807, allocations: 7.021 MB / 0.5302 GB, free: 84.77 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.084e-05/0.6807, allocations: 51.52 kB / 0.5302 GB, free: 84.71 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002954/0.681, allocations: 126 kB / 0.5303 GB, free: 84.61 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007293/0.6818, allocations: 0.7182 MB / 0.531 GB, free: 83.89 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008664/0.6905, allocations: 6.09 MB / 0.537 GB, free: 77.8 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.025/0.7155, allocations: 32.71 MB / 0.5689 GB, free: 44.14 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005643/0.7211, allocations: 2.667 MB / 0.5715 GB, free: 41.33 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004555/0.7257, allocations: 3.918 MB / 0.5754 GB, free: 37.18 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.416e-05/0.7258, allocations: 47.05 kB / 0.5754 GB, free: 37.12 MB / 378.7 MB Notification: Performance of pre-optimization done (n=112): time 4.298e-06/0.7258, allocations: 0 / 0.5754 GB, free: 37.12 MB / 378.7 MB Notification: Performance of matching and sorting (n=125): time 0.02158/0.7474, allocations: 10.58 MB / 0.5857 GB, free: 26.34 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0008263/0.7482, allocations: 1.588 MB / 0.5873 GB, free: 24.58 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002813/0.7511, allocations: 2.476 MB / 0.5897 GB, free: 22.09 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001161/0.7512, allocations: 45.98 kB / 0.5898 GB, free: 22.04 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000824/0.752, allocations: 2.077 MB / 0.5918 GB, free: 19.96 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003365/0.7524, allocations: 0.5064 MB / 0.5923 GB, free: 19.46 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001558/0.7525, allocations: 91.94 kB / 0.5924 GB, free: 19.37 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001666/0.7527, allocations: 0.4922 MB / 0.5928 GB, free: 18.87 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001872/0.7546, allocations: 1.633 MB / 0.5944 GB, free: 17.23 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002756/0.7573, allocations: 4.399 MB / 0.5987 GB, free: 11.43 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002677/0.76, allocations: 2.627 MB / 0.6013 GB, free: 8.797 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.931e-05/0.7601, allocations: 28 kB / 0.6013 GB, free: 8.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=589) (initialization): time 0.01118/0.7713, allocations: 7.031 MB / 0.6082 GB, free: 1.727 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.899e-05/0.7714, allocations: 50.61 kB / 0.6082 GB, free: 1.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005628/0.777, allocations: 2.525 MB / 0.6107 GB, free: 15.14 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005017/0.7821, allocations: 1.514 MB / 0.6122 GB, free: 13.62 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003291/0.7854, allocations: 1.014 MB / 0.6132 GB, free: 12.61 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009632/0.7951, allocations: 7.439 MB / 0.6204 GB, free: 4.906 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003793/0.7989, allocations: 371.3 kB / 0.6208 GB, free: 4.547 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007798/0.7997, allocations: 284 kB / 0.6211 GB, free: 4.27 MB / 394.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 () * Number of clocked 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.00248/0.8022, allocations: 1.415 MB / 0.6225 GB, free: 2.84 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004656/0.8027, allocations: 237 kB / 0.6227 GB, free: 2.605 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006353/0.809, allocations: 2.838 MB / 0.6254 GB, free: 15.74 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005588/0.8147, allocations: 2.505 MB / 0.6279 GB, free: 13.22 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.185e-05/0.8147, allocations: 11.98 kB / 0.6279 GB, free: 13.21 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.113e-05/0.8147, allocations: 3.984 kB / 0.6279 GB, free: 13.2 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01319/0.8279, allocations: 6.871 MB / 0.6346 GB, free: 6.266 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.316e-05/0.828, allocations: 0 / 0.6346 GB, free: 6.266 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008679/0.8289, allocations: 179.7 kB / 0.6348 GB, free: 6.09 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004548/0.8334, allocations: 1.434 MB / 0.6362 GB, free: 4.645 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001906/0.8336, allocations: 27.97 kB / 0.6362 GB, free: 4.617 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009459/0.8431, allocations: 7.551 MB / 0.6436 GB, free: 12.8 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0009469/0.8441, allocations: 1.462 MB / 0.645 GB, free: 11.2 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008573/0.8527, allocations: 4.952 MB / 0.6499 GB, free: 6.164 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001125/0.8538, allocations: 301.9 kB / 0.6501 GB, free: 5.848 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003605/0.8542, allocations: 24 kB / 0.6502 GB, free: 5.824 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001306/0.8555, allocations: 135.1 kB / 0.6503 GB, free: 5.695 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002516/0.8558, allocations: 80.38 kB / 0.6504 GB, free: 5.617 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001065/0.8559, allocations: 39.98 kB / 0.6504 GB, free: 5.578 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00299/0.8589, allocations: 1.721 MB / 0.6521 GB, free: 3.848 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.8589, allocations: 0 / 0.6521 GB, free: 3.848 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003684/0.8626, allocations: 0.7735 MB / 0.6528 GB, free: 3.074 MB / 426.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 () * Number of clocked 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.1852/1.048, allocations: 5.957 MB / 0.6587 GB, free: 125 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007893/1.056, allocations: 4.326 MB / 0.6629 GB, free: 124.6 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.322e-06/1.056, allocations: 0 / 0.6629 GB, free: 124.6 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003136/1.059, allocations: 1.716 MB / 0.6646 GB, free: 124.2 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001735/1.061, allocations: 242.7 kB / 0.6648 GB, free: 124.2 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04992/1.111, allocations: 91.41 MB / 0.7541 GB, free: 44.06 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001812/1.113, allocations: 2.354 MB / 0.7564 GB, free: 43.01 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.003064/1.116, allocations: 1.413 MB / 0.7577 GB, free: 42.9 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001323/1.117, allocations: 1.12 MB / 0.7588 GB, free: 42.01 MB / 426.7 MB Notification: Performance of SimCode: time 9.11e-07/1.117, allocations: 0 / 0.7588 GB, free: 42.01 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08877/1.206, allocations: 54.94 MB / 0.8125 GB, free: 12.19 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002783/1.206, allocations: 232.5 kB / 0.8127 GB, free: 11.95 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.159/4.365, allocations: 0 / 0.8127 GB, free: 11.95 MB / 442.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