Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.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.Translational.Examples.Oscillator,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Oscillator,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001295/0.001296, allocations: 197.2 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.536/1.536, allocations: 225.4 MB / 240.1 MB, free: 15.05 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009853/0.0009852, allocations: 93.91 kB / 292.1 MB, free: 5.953 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.719e-05/5.74e-05, allocations: 0 / 350.6 MB, free: 2.434 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1513/0.1514, allocations: 51.48 MB / 402.1 MB, free: 14.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4517/0.6031, allocations: 78.99 MB / 481.1 MB, free: 10.46 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002448/0.6034, allocations: 71 kB / 481.2 MB, free: 10.43 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01018/0.6136, allocations: 3.993 MB / 485.2 MB, free: 7.105 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.6137, allocations: 0 / 485.2 MB, free: 7.105 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.625e-05/0.6137, allocations: 4 kB / 485.2 MB, free: 7.102 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0006489/0.6143, allocations: 491 kB / 485.7 MB, free: 6.602 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.451e-05/0.6144, allocations: 12.03 kB / 485.7 MB, free: 6.59 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.034e-05/0.6145, allocations: 49.23 kB / 485.7 MB, free: 6.543 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002432/0.6147, allocations: 51.69 kB / 485.8 MB, free: 6.492 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002741/0.615, allocations: 234.5 kB / 486 MB, free: 6.234 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.497e-05/0.6151, allocations: 18.89 kB / 486 MB, free: 6.227 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.516e-05/0.6151, allocations: 19.5 kB / 486 MB, free: 6.215 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003855/0.6155, allocations: 200.3 kB / 486.2 MB, free: 6.059 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.836e-05/0.6155, allocations: 0 / 486.2 MB, free: 6.059 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.773e-05/0.6156, allocations: 12.25 kB / 486.2 MB, free: 6.055 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.178e-06/0.6156, allocations: 4 kB / 486.2 MB, free: 6.051 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002398/0.6158, allocations: 127.3 kB / 486.4 MB, free: 5.965 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00114/0.617, allocations: 0.8006 MB / 487.2 MB, free: 5.23 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003748/0.6174, allocations: 191.1 kB / 487.3 MB, free: 5.074 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002325/0.6176, allocations: 94.67 kB / 487.4 MB, free: 5.004 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.177e-05/0.6177, allocations: 0 / 487.4 MB, free: 5.004 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.16e-05/0.6177, allocations: 42.23 kB / 487.5 MB, free: 4.957 MB / 346.7 MB Notification: Performance of pre-optimization done (n=22): time 1.663e-06/0.6177, allocations: 4 kB / 487.5 MB, free: 4.953 MB / 346.7 MB Notification: Performance of matching and sorting (n=26): time 0.001388/0.6191, allocations: 0.7656 MB / 488.3 MB, free: 4.199 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.822e-05/0.6192, allocations: 81.11 kB / 488.3 MB, free: 4.102 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001362/0.6193, allocations: 155 kB / 488.5 MB, free: 3.961 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.858e-05/0.6193, allocations: 27.77 kB / 488.5 MB, free: 3.93 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.422e-05/0.6194, allocations: 149.2 kB / 488.7 MB, free: 3.801 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.847e-05/0.6195, allocations: 93.47 kB / 488.7 MB, free: 3.723 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.088e-05/0.6195, allocations: 6.078 kB / 488.8 MB, free: 3.723 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001194/0.6197, allocations: 330.6 kB / 489.1 MB, free: 3.398 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.69e-05/0.6198, allocations: 53.56 kB / 489.1 MB, free: 3.367 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001272/0.6199, allocations: 90.66 kB / 489.2 MB, free: 3.285 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001274/0.62, allocations: 78.72 kB / 489.3 MB, free: 3.234 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-06/0.62, allocations: 0 / 489.3 MB, free: 3.234 MB / 346.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0002862/0.6203, allocations: 217.2 kB / 489.5 MB, free: 3.062 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.404e-05/0.6204, allocations: 5.25 kB / 489.5 MB, free: 3.059 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.6204, allocations: 8.5 kB / 489.5 MB, free: 3.051 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/0.6204, allocations: 3.953 kB / 489.5 MB, free: 3.047 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002401/0.6207, allocations: 68.75 kB / 489.6 MB, free: 2.984 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.142e-05/0.6207, allocations: 3.938 kB / 489.6 MB, free: 2.98 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001068/0.6208, allocations: 24.83 kB / 489.6 MB, free: 2.961 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.634e-05/0.6208, allocations: 8 kB / 489.6 MB, free: 2.953 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.265e-05/0.6209, allocations: 119.5 kB / 489.7 MB, free: 2.84 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.314e-05/0.6209, allocations: 15.81 kB / 489.8 MB, free: 2.824 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.498e-05/0.621, allocations: 25.09 kB / 489.8 MB, free: 2.816 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.652e-06/0.621, allocations: 15.94 kB / 489.8 MB, free: 2.801 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.6211, allocations: 0 / 489.8 MB, free: 2.801 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.241e-06/0.6211, allocations: 0 / 489.8 MB, free: 2.801 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000729/0.6218, allocations: 0.5693 MB / 490.4 MB, free: 2.258 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.6218, allocations: 4.094 kB / 490.4 MB, free: 2.254 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002675/0.6221, allocations: 63.41 kB / 490.4 MB, free: 2.195 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.109e-06/0.6221, allocations: 4 kB / 490.4 MB, free: 2.191 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.458e-05/0.6221, allocations: 9.797 kB / 490.4 MB, free: 2.188 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.028e-06/0.6221, allocations: 4 kB / 490.5 MB, free: 2.184 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.6222, allocations: 5.016 kB / 490.5 MB, free: 2.18 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005854/0.6227, allocations: 0.4975 MB / 491 MB, free: 1.715 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.56e-05/0.6228, allocations: 92.92 kB / 491 MB, free: 1.605 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.157e-05/0.6229, allocations: 7.688 kB / 491.1 MB, free: 1.602 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001606/0.623, allocations: 19.42 kB / 491.1 MB, free: 1.586 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.179e-05/0.6231, allocations: 15.61 kB / 491.1 MB, free: 1.574 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.56e-05/0.6231, allocations: 8 kB / 491.1 MB, free: 1.566 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.805e-05/0.6232, allocations: 135.5 kB / 491.2 MB, free: 1.453 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6232, allocations: 0 / 491.2 MB, free: 1.453 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003256/0.6236, allocations: 54.69 kB / 491.3 MB, free: 1.406 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (mass1.s,mass1.v,damper1.s_rel,damper1.v_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009382/0.6245, allocations: 1.325 MB / 492.6 MB, free: 116 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002929/0.6248, allocations: 155.4 kB / 492.8 MB, free: 4 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.6248, allocations: 0 / 492.8 MB, free: 4 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000196/0.625, allocations: 83.81 kB / 492.8 MB, free: 15.93 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004921/0.6255, allocations: 39.67 kB / 492.9 MB, free: 15.89 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001302/0.6268, allocations: 0.6018 MB / 493.5 MB, free: 15.25 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003803/0.6272, allocations: 0.7521 MB / 494.2 MB, free: 14.47 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001005/0.6273, allocations: 22.08 kB / 494.3 MB, free: 14.45 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000118/0.6275, allocations: 67.41 kB / 494.3 MB, free: 14.38 MB / 362.7 MB Notification: Performance of SimCode: time 2.034e-06/0.6275, allocations: 0 / 494.3 MB, free: 14.38 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0159/0.6434, allocations: 3.873 MB / 498.2 MB, free: 10.74 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001859/0.6436, allocations: 166.8 kB / 498.4 MB, free: 10.51 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.89/2.534, allocations: 0 / 498.4 MB, free: 10.51 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_Oscillator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_Oscillator.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat does not exist to compare? outputFormat=mat