Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.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.PendulumWithSpringDamper,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.00111/0.00111, allocations: 196.8 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 225.4 MB / 240.1 MB, free: 15.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000865/0.0008653, allocations: 87.34 kB / 292.1 MB, free: 5.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.814e-05/2.824e-05, allocations: 4 kB / 350.6 MB, free: 2.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1023, allocations: 51.48 MB / 402.1 MB, free: 14.88 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3871/0.4895, allocations: 101.9 MB / 0.4922 GB, free: 3.914 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002857/0.4898, allocations: 86.52 kB / 0.4922 GB, free: 3.871 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2251/0.7149, allocations: 77.37 MB / 0.5678 GB, free: 7.453 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.774e-06/0.7149, allocations: 0 / 0.5678 GB, free: 7.453 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002584/0.7152, allocations: 75.98 kB / 0.5679 GB, free: 7.379 MB / 442.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.01452/0.7297, allocations: 3.507 MB / 0.5713 GB, free: 3.82 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.966e-05/0.7298, allocations: 11.97 kB / 0.5713 GB, free: 3.809 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003504/0.7333, allocations: 0.6802 MB / 0.572 GB, free: 3.117 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01186/0.7452, allocations: 2.266 MB / 0.5742 GB, free: 0.8438 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4144/1.16, allocations: 3.272 MB / 0.5774 GB, free: 83.1 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005116/1.16, allocations: 280.9 kB / 0.5776 GB, free: 83.09 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002785/1.163, allocations: 375.2 kB / 0.578 GB, free: 83.09 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03777/1.201, allocations: 10.38 MB / 0.5881 GB, free: 80.52 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003236/1.201, allocations: 61.44 kB / 0.5882 GB, free: 80.52 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001978/1.203, allocations: 182 kB / 0.5884 GB, free: 80.52 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002604/1.206, allocations: 0.995 MB / 0.5893 GB, free: 80.52 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03024/1.236, allocations: 8.584 MB / 0.5977 GB, free: 80.48 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08251/1.319, allocations: 44.71 MB / 0.6414 GB, free: 51.32 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01574/1.335, allocations: 3.851 MB / 0.6451 GB, free: 49.64 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003882/1.339, allocations: 1.765 MB / 0.6469 GB, free: 48.9 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01684/1.355, allocations: 7.634 MB / 0.6543 GB, free: 44.81 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.115e-05/1.356, allocations: 50.38 kB / 0.6544 GB, free: 44.76 MB / 442.7 MB Notification: Performance of pre-optimization done (n=150): time 7.194e-06/1.356, allocations: 0 / 0.6544 GB, free: 44.76 MB / 442.7 MB Notification: Performance of matching and sorting (n=166): time 0.06201/1.418, allocations: 14.66 MB / 0.6687 GB, free: 40.02 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.339e-05/1.418, allocations: 147.7 kB / 0.6688 GB, free: 39.86 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004992/1.423, allocations: 3.049 MB / 0.6718 GB, free: 38.7 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004896/1.423, allocations: 51.58 kB / 0.6719 GB, free: 38.65 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001781/1.425, allocations: 2.736 MB / 0.6745 GB, free: 36.54 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001017/1.426, allocations: 0.6386 MB / 0.6752 GB, free: 36.07 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000258/1.426, allocations: 110.2 kB / 0.6753 GB, free: 35.99 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002984/1.427, allocations: 0.5378 MB / 0.6758 GB, free: 35.59 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002742/1.429, allocations: 1.867 MB / 0.6776 GB, free: 34.97 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004376/1.434, allocations: 5.256 MB / 0.6827 GB, free: 29.63 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004405/1.438, allocations: 3.096 MB / 0.6858 GB, free: 28.5 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.836e-05/1.438, allocations: 32.31 kB / 0.6858 GB, free: 28.5 MB / 442.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.01592/1.454, allocations: 7.998 MB / 0.6936 GB, free: 25.77 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001072/1.454, allocations: 54.28 kB / 0.6937 GB, free: 25.77 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001906/1.455, allocations: 122.4 kB / 0.6938 GB, free: 25.77 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004147/1.459, allocations: 1.308 MB / 0.6951 GB, free: 25.61 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004714/1.463, allocations: 1.268 MB / 0.6963 GB, free: 25.43 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008537/1.472, allocations: 6.106 MB / 0.7023 GB, free: 20.14 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00565/1.478, allocations: 345.3 kB / 0.7026 GB, free: 19.85 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001296/1.479, allocations: 339.6 kB / 0.7029 GB, free: 19.52 MB / 442.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 () * 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.001226/1.48, allocations: 0.5235 MB / 0.7034 GB, free: 19 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007898/1.481, allocations: 315.9 kB / 0.7037 GB, free: 18.68 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006858/1.488, allocations: 3.324 MB / 0.707 GB, free: 16.13 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.812e-05/1.488, allocations: 20 kB / 0.707 GB, free: 16.11 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.439e-05/1.488, allocations: 4 kB / 0.707 GB, free: 16.11 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.667e-05/1.488, allocations: 10.73 kB / 0.707 GB, free: 16.1 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01494/1.503, allocations: 7.572 MB / 0.7144 GB, free: 10.08 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.072e-05/1.503, allocations: 0 / 0.7144 GB, free: 10.08 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001333/1.504, allocations: 240 kB / 0.7146 GB, free: 9.883 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003537/1.508, allocations: 1.118 MB / 0.7157 GB, free: 9.172 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003182/1.508, allocations: 30.25 kB / 0.7157 GB, free: 9.148 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007598/1.516, allocations: 5.747 MB / 0.7214 GB, free: 4.156 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/1.516, allocations: 4.031 kB / 0.7214 GB, free: 4.152 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01244/1.529, allocations: 5.924 MB / 0.7271 GB, free: 15.96 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001316/1.53, allocations: 357.8 kB / 0.7275 GB, free: 15.6 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004919/1.53, allocations: 31.33 kB / 0.7275 GB, free: 15.57 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001535/1.532, allocations: 106.6 kB / 0.7276 GB, free: 15.5 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002831/1.532, allocations: 90.89 kB / 0.7277 GB, free: 15.44 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001288/1.532, allocations: 47.84 kB / 0.7277 GB, free: 15.4 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003818/1.536, allocations: 2.094 MB / 0.7298 GB, free: 13.55 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.51e-07/1.536, allocations: 0 / 0.7298 GB, free: 13.55 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005991/1.542, allocations: 0.9199 MB / 0.7307 GB, free: 12.64 MB / 458.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 () * 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.01139/1.554, allocations: 6.527 MB / 0.7371 GB, free: 6.82 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.009564/1.563, allocations: 4.661 MB / 0.7416 GB, free: 2.176 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.979e-06/1.563, allocations: 3.938 kB / 0.7416 GB, free: 2.172 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002805/1.566, allocations: 1.498 MB / 0.7431 GB, free: 0.668 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002541/1.569, allocations: 324.3 kB / 0.7434 GB, free: 368 kB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3011/1.87, allocations: 7.749 MB / 0.751 GB, free: 89.79 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00343/1.873, allocations: 2.929 MB / 0.7538 GB, free: 89.02 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.004548/1.878, allocations: 1.703 MB / 0.7555 GB, free: 88.99 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00287/1.881, allocations: 1.586 MB / 0.757 GB, free: 88.98 MB / 458.7 MB Notification: Performance of SimCode: time 1.382e-06/1.881, allocations: 0 / 0.757 GB, free: 88.98 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1265/2.007, allocations: 67.86 MB / 0.8233 GB, free: 78.09 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001872/2.008, allocations: 211.5 kB / 0.8235 GB, free: 77.86 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.326/6.334, allocations: 3.391 kB / 0.8235 GB, free: 77.86 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat does not exist to compare? outputFormat=mat