Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.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.SpringDamperSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",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.00115/0.001149, allocations: 177.1 kB / 8.349 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.309/1.309, allocations: 221.5 MB / 230.3 MB, free: 7.566 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.0009449/0.0009451, allocations: 97.23 kB / 281.2 MB, free: 5.316 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.012e-05/2.016e-05, allocations: 4 kB / 337.1 MB, free: 9.918 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09048/0.09051, allocations: 50.42 MB / 387.6 MB, free: 7.457 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3407/0.4312, allocations: 98.1 MB / 485.7 MB, free: 12.56 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002628/0.4315, allocations: 83.95 kB / 485.7 MB, free: 12.48 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4697/0.9013, allocations: 93.01 MB / 0.5652 GB, free: 96.32 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.983e-06/0.9013, allocations: 0 / 0.5652 GB, free: 96.32 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000274/0.9016, allocations: 93.06 kB / 0.5653 GB, free: 96.32 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1686 * Number of variables: 1686 Notification: Performance of Generate backend data structure: time 0.01813/0.9198, allocations: 4.704 MB / 0.5699 GB, free: 94.46 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.371e-05/0.9199, allocations: 9.469 kB / 0.5699 GB, free: 94.46 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01481/0.9347, allocations: 2.692 MB / 0.5725 GB, free: 94.15 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01714/0.9519, allocations: 5.307 MB / 0.5777 GB, free: 93.54 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003293/0.9523, allocations: 154.2 kB / 0.5778 GB, free: 93.54 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002265/0.9545, allocations: 284.3 kB / 0.5781 GB, free: 93.54 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01247/0.967, allocations: 6.929 MB / 0.5849 GB, free: 93.51 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02475/0.9918, allocations: 10.4 MB / 0.595 GB, free: 89.52 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003797/0.9923, allocations: 74.03 kB / 0.5951 GB, free: 89.51 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001742/0.994, allocations: 37.09 kB / 0.5951 GB, free: 89.51 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002952/0.997, allocations: 1.207 MB / 0.5963 GB, free: 89.32 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06996/1.067, allocations: 52.54 MB / 0.6476 GB, free: 49.29 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002861/1.07, allocations: 2.79 MB / 0.6503 GB, free: 46.68 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001431/1.071, allocations: 1.521 MB / 0.6518 GB, free: 45.3 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007491/1.072, allocations: 1.203 MB / 0.653 GB, free: 43.99 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.822e-05/1.072, allocations: 59.75 kB / 0.6531 GB, free: 43.92 MB / 426.7 MB Notification: Performance of pre-optimization done (n=187): time 5.59e-06/1.072, allocations: 0 / 0.6531 GB, free: 43.92 MB / 426.7 MB Notification: Performance of matching and sorting (n=203): time 0.02148/1.094, allocations: 11.96 MB / 0.6647 GB, free: 33.44 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.409e-05/1.094, allocations: 145.8 kB / 0.6649 GB, free: 33.27 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003688/1.097, allocations: 3.196 MB / 0.668 GB, free: 30.48 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002304/1.098, allocations: 25.7 kB / 0.668 GB, free: 30.45 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001363/1.099, allocations: 3.465 MB / 0.6714 GB, free: 27.3 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006243/1.1, allocations: 0.7812 MB / 0.6722 GB, free: 26.6 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002169/1.1, allocations: 3.938 kB / 0.6722 GB, free: 26.59 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003742/1.1, allocations: 0.593 MB / 0.6728 GB, free: 26.08 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002342/1.103, allocations: 2.044 MB / 0.6748 GB, free: 24.26 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003794/1.106, allocations: 6.244 MB / 0.6809 GB, free: 16.24 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003935/1.11, allocations: 3.513 MB / 0.6843 GB, free: 12.88 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.764e-05/1.11, allocations: 44 kB / 0.6843 GB, free: 12.84 MB / 426.7 MB Notification: Performance of matching and sorting (n=908) (initialization): time 0.01268/1.123, allocations: 8.082 MB / 0.6922 GB, free: 4.738 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.372e-05/1.123, allocations: 73.56 kB / 0.6923 GB, free: 4.668 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004202/1.127, allocations: 2.67 MB / 0.6949 GB, free: 1.988 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002892/1.13, allocations: 1.069 MB / 0.6959 GB, free: 0.9062 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005073/1.135, allocations: 1.645 MB / 0.6975 GB, free: 15.26 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004375/1.14, allocations: 4.226 MB / 0.7017 GB, free: 10.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005767/1.146, allocations: 383.3 kB / 0.702 GB, free: 10.43 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001222/1.147, allocations: 428 kB / 0.7024 GB, free: 10.01 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 688 * Number of states: 0 () * Number of discrete variables: 45 (damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[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]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (870): * Single equations (assignments): 861 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009982/1.148, allocations: 486.3 kB / 0.7029 GB, free: 9.527 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00634/1.154, allocations: 3.37 MB / 0.7062 GB, free: 6.129 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006203/1.155, allocations: 343.6 kB / 0.7065 GB, free: 5.789 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006217/1.161, allocations: 3.018 MB / 0.7095 GB, free: 2.754 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004772/1.166, allocations: 2.539 MB / 0.712 GB, free: 196 kB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.282e-05/1.166, allocations: 4 kB / 0.712 GB, free: 192 kB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.967e-05/1.166, allocations: 15.8 kB / 0.712 GB, free: 180 kB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2826/1.449, allocations: 9.376 MB / 0.7211 GB, free: 98.74 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.511e-05/1.449, allocations: 12.09 kB / 0.7211 GB, free: 98.74 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001952/1.451, allocations: 356.9 kB / 0.7215 GB, free: 98.74 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003335/1.454, allocations: 0.9665 MB / 0.7224 GB, free: 98.71 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003227/1.454, allocations: 31.94 kB / 0.7225 GB, free: 98.71 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004447/1.459, allocations: 4.481 MB / 0.7268 GB, free: 96.27 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006977/1.46, allocations: 1.407 MB / 0.7282 GB, free: 94.98 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009964/1.47, allocations: 6.925 MB / 0.735 GB, free: 92.62 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001271/1.471, allocations: 410.2 kB / 0.7354 GB, free: 92.53 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000419/1.471, allocations: 22.95 kB / 0.7354 GB, free: 92.53 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001757/1.473, allocations: 149.7 kB / 0.7355 GB, free: 92.53 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003105/1.473, allocations: 161.7 kB / 0.7357 GB, free: 92.52 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001474/1.474, allocations: 76.11 kB / 0.7358 GB, free: 92.52 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003376/1.477, allocations: 2.095 MB / 0.7378 GB, free: 92.38 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.6e-07/1.477, allocations: 0 / 0.7378 GB, free: 92.38 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005934/1.483, allocations: 1.01 MB / 0.7388 GB, free: 92.38 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 52 * Number of states: 14 ($STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],p2.s,p2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (177): * Single equations (assignments): 170 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009159/1.492, allocations: 10.41 MB / 0.749 GB, free: 86.71 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.009821/1.502, allocations: 5.45 MB / 0.7543 GB, free: 85.98 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.83e-05/1.502, allocations: 0 / 0.7543 GB, free: 85.98 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003578/1.506, allocations: 2.094 MB / 0.7563 GB, free: 85.1 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002978/1.509, allocations: 366.5 kB / 0.7567 GB, free: 84.95 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02753/1.536, allocations: 10.07 MB / 0.7665 GB, free: 81.31 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00586/1.542, allocations: 3.54 MB / 0.77 GB, free: 80.01 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.006041/1.548, allocations: 2.096 MB / 0.772 GB, free: 79.84 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003475/1.552, allocations: 2.061 MB / 0.774 GB, free: 78.16 MB / 442.7 MB Notification: Performance of SimCode: time 1.142e-06/1.552, allocations: 0 / 0.774 GB, free: 78.16 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1514/1.703, allocations: 76.19 MB / 0.8484 GB, free: 18.96 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001346/1.703, allocations: 159.3 kB / 0.8486 GB, free: 18.77 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.869/6.572, allocations: 4 kB / 0.8486 GB, free: 18.77 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat does not exist to compare? outputFormat=mat