Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.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.PendulumWithSpringDamper,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",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.002103/0.002103, allocations: 179.9 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.479/1.479, allocations: 223.2 MB / 240.3 MB, free: 10.17 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008903/0.0008904, allocations: 89.78 kB / 291.5 MB, free: 10.72 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003646/0.0003647, allocations: 11.94 kB / 351.2 MB, free: 15.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2805/0.2809, allocations: 50.41 MB / 401.6 MB, free: 32.56 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1135/0.3944, allocations: 101.3 MB / 0.4911 GB, free: 11.14 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002604/0.3947, allocations: 95.94 kB / 0.4912 GB, free: 11.05 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.349/0.7437, allocations: 76.55 MB / 0.5659 GB, free: 47.23 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.7438, allocations: 0 / 0.5659 GB, free: 47.23 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001926/0.744, allocations: 72 kB / 0.566 GB, free: 47.16 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: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.01118/0.7552, allocations: 3.651 MB / 0.5695 GB, free: 43.44 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.208e-05/0.7553, allocations: 8.031 kB / 0.5696 GB, free: 43.43 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002874/0.7581, allocations: 0.688 MB / 0.5702 GB, free: 42.73 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009817/0.768, allocations: 2.269 MB / 0.5724 GB, free: 40.46 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01073/0.7787, allocations: 3.796 MB / 0.5761 GB, free: 36.61 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003211/0.7791, allocations: 287.3 kB / 0.5764 GB, free: 36.33 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002116/0.7812, allocations: 379.8 kB / 0.5768 GB, free: 35.96 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02521/0.8065, allocations: 10.47 MB / 0.587 GB, free: 24.52 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002356/0.8068, allocations: 55.5 kB / 0.5871 GB, free: 24.46 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001684/0.8085, allocations: 183.9 kB / 0.5872 GB, free: 24.29 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00142/0.8099, allocations: 0.9976 MB / 0.5882 GB, free: 23.29 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01723/0.8272, allocations: 8.761 MB / 0.5968 GB, free: 14.52 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05245/0.8797, allocations: 44.72 MB / 0.6404 GB, free: 404 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009954/0.8896, allocations: 3.874 MB / 0.6442 GB, free: 12.32 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01525/0.9049, allocations: 7.629 MB / 0.6517 GB, free: 4.414 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.106e-05/0.905, allocations: 51.5 kB / 0.6517 GB, free: 4.355 MB / 426.7 MB Notification: Performance of pre-optimization done (n=150): time 5.3e-06/0.9051, allocations: 4 kB / 0.6517 GB, free: 4.352 MB / 426.7 MB Notification: Performance of matching and sorting (n=166): time 0.2716/1.177, allocations: 17.32 MB / 0.6686 GB, free: 99.18 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.912e-05/1.177, allocations: 146.8 kB / 0.6688 GB, free: 99.02 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005092/1.182, allocations: 3.11 MB / 0.6718 GB, free: 98.71 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003698/1.182, allocations: 49.36 kB / 0.6719 GB, free: 98.68 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002092/1.184, allocations: 2.73 MB / 0.6745 GB, free: 97.31 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007934/1.185, allocations: 0.6489 MB / 0.6752 GB, free: 96.95 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000232/1.185, allocations: 106.8 kB / 0.6753 GB, free: 96.95 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002666/1.186, allocations: 0.5416 MB / 0.6758 GB, free: 96.63 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002878/1.189, allocations: 1.941 MB / 0.6777 GB, free: 96.61 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004648/1.193, allocations: 5.324 MB / 0.6829 GB, free: 92.22 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005367/1.199, allocations: 3.134 MB / 0.686 GB, free: 92.2 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.136e-05/1.199, allocations: 35.03 kB / 0.686 GB, free: 92.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.01532/1.214, allocations: 8.129 MB / 0.6939 GB, free: 90.23 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.652e-05/1.214, allocations: 56.69 kB / 0.694 GB, free: 90.23 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000131/1.214, allocations: 120.4 kB / 0.6941 GB, free: 90.23 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003935/1.218, allocations: 1.322 MB / 0.6954 GB, free: 90.06 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004257/1.223, allocations: 1.269 MB / 0.6966 GB, free: 89.91 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008345/1.231, allocations: 6.287 MB / 0.7028 GB, free: 86.99 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005172/1.236, allocations: 351.8 kB / 0.7031 GB, free: 86.88 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001364/1.238, allocations: 336.4 kB / 0.7034 GB, free: 86.84 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 550 * Number of states: 0 () * Number of discrete variables: 36 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],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],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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (679): * Single equations (assignments): 675 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,88.9%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004938/1.243, allocations: 1.804 MB / 0.7052 GB, free: 85.97 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009761/1.244, allocations: 307.1 kB / 0.7055 GB, free: 85.8 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00794/1.251, allocations: 3.352 MB / 0.7087 GB, free: 84.71 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.454e-05/1.252, allocations: 18.31 kB / 0.7088 GB, free: 84.71 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-05/1.252, allocations: 7.688 kB / 0.7088 GB, free: 84.71 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-05/1.252, allocations: 7.547 kB / 0.7088 GB, free: 84.71 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01815/1.27, allocations: 7.591 MB / 0.7162 GB, free: 78.77 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.046e-05/1.27, allocations: 0 / 0.7162 GB, free: 78.77 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001243/1.271, allocations: 239.1 kB / 0.7164 GB, free: 78.57 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003605/1.275, allocations: 1.126 MB / 0.7175 GB, free: 77.86 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002824/1.275, allocations: 26.91 kB / 0.7175 GB, free: 77.84 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007904/1.283, allocations: 5.936 MB / 0.7233 GB, free: 72.7 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/1.283, allocations: 3.672 kB / 0.7233 GB, free: 72.7 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009807/1.293, allocations: 5.743 MB / 0.729 GB, free: 67.88 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001269/1.294, allocations: 355.5 kB / 0.7293 GB, free: 67.52 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009227/1.295, allocations: 24 kB / 0.7293 GB, free: 67.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001922/1.297, allocations: 103.6 kB / 0.7294 GB, free: 67.43 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002702/1.297, allocations: 96.45 kB / 0.7295 GB, free: 67.36 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000137/1.298, allocations: 43.61 kB / 0.7295 GB, free: 67.32 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004563/1.302, allocations: 2.151 MB / 0.7316 GB, free: 65.56 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.81e-07/1.302, allocations: 0 / 0.7316 GB, free: 65.56 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007301/1.309, allocations: 0.9217 MB / 0.7325 GB, free: 64.65 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * 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 (129): * Single equations (assignments): 125 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01076/1.32, allocations: 6.572 MB / 0.739 GB, free: 59.01 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007975/1.328, allocations: 4.745 MB / 0.7436 GB, free: 54.86 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.374e-06/1.328, allocations: 0 / 0.7436 GB, free: 54.86 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002363/1.331, allocations: 1.537 MB / 0.7451 GB, free: 53.5 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002481/1.333, allocations: 317.8 kB / 0.7454 GB, free: 53.22 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3051/1.638, allocations: 112.7 MB / 0.8555 GB, free: 106.2 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003626/1.642, allocations: 2.927 MB / 0.8584 GB, free: 105.5 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.004378/1.646, allocations: 1.703 MB / 0.86 GB, free: 105.4 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00296/1.649, allocations: 1.591 MB / 0.8616 GB, free: 105.4 MB / 458.7 MB Notification: Performance of SimCode: time 1.724e-06/1.649, allocations: 0 / 0.8616 GB, free: 105.4 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09962/1.749, allocations: 67.63 MB / 0.9276 GB, free: 61.91 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001709/1.749, allocations: 224.2 kB / 0.9278 GB, free: 61.67 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.04/5.789, allocations: 0 / 0.9278 GB, free: 61.67 MB / 458.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat does not exist to compare? outputFormat=mat