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.00149/0.00149, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.595/1.595, allocations: 225.6 MB / 234.8 MB, free: 3.25 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008899/0.0008901, allocations: 96.81 kB / 286.7 MB, free: 5.258 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.332e-05/2.318e-05, allocations: 4 kB / 343.8 MB, free: 8.195 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1358/0.1359, allocations: 51.48 MB / 395.3 MB, free: 4.676 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4666/0.6025, allocations: 78.32 MB / 473.6 MB, free: 13.11 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000252/0.6028, allocations: 73.09 kB / 473.6 MB, free: 13.08 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01055/0.6134, allocations: 3.959 MB / 477.6 MB, free: 10.81 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.362e-06/0.6134, allocations: 0 / 477.6 MB, free: 10.81 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.409e-05/0.6134, allocations: 4 kB / 477.6 MB, free: 10.81 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.000605/0.614, allocations: 480.9 kB / 478.1 MB, free: 10.34 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.588e-05/0.6141, allocations: 12.03 kB / 478.1 MB, free: 10.33 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002578/0.6144, allocations: 48.88 kB / 478.1 MB, free: 10.29 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002254/0.6146, allocations: 233.4 kB / 478.4 MB, free: 10.04 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.716e-05/0.6146, allocations: 7.609 kB / 478.4 MB, free: 10.04 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.7e-05/0.6147, allocations: 15.94 kB / 478.4 MB, free: 10.02 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002413/0.6149, allocations: 114.6 kB / 478.5 MB, free: 9.953 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000275/0.6152, allocations: 169.2 kB / 478.7 MB, free: 9.832 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.616e-05/0.6152, allocations: 1.125 kB / 478.7 MB, free: 9.832 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.907e-05/0.6152, allocations: 0 / 478.7 MB, free: 9.832 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.6153, allocations: 8 kB / 478.7 MB, free: 9.824 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00104/0.6163, allocations: 0.755 MB / 479.4 MB, free: 9.234 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002895/0.6166, allocations: 173.7 kB / 479.6 MB, free: 9.102 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001587/0.6168, allocations: 88.91 kB / 479.7 MB, free: 9.035 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.37e-05/0.6168, allocations: 0 / 479.7 MB, free: 9.035 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.165e-05/0.6168, allocations: 43.56 kB / 479.7 MB, free: 8.992 MB / 346.7 MB Notification: Performance of pre-optimization done (n=22): time 2.264e-06/0.6169, allocations: 3.188 kB / 479.7 MB, free: 8.992 MB / 346.7 MB Notification: Performance of matching and sorting (n=26): time 0.001022/0.6179, allocations: 0.7102 MB / 480.4 MB, free: 8.301 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.877e-05/0.6179, allocations: 82.38 kB / 480.5 MB, free: 8.203 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001138/0.6181, allocations: 135.4 kB / 480.7 MB, free: 8.086 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.011e-05/0.6181, allocations: 25.7 kB / 480.7 MB, free: 8.055 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.782e-05/0.6182, allocations: 140.5 kB / 480.8 MB, free: 7.938 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.029e-05/0.6182, allocations: 86.89 kB / 480.9 MB, free: 7.871 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.037e-05/0.6182, allocations: 4 kB / 480.9 MB, free: 7.867 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.941e-05/0.6183, allocations: 334.7 kB / 481.2 MB, free: 7.547 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.176e-05/0.6184, allocations: 52.56 kB / 481.3 MB, free: 7.516 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.326e-05/0.6185, allocations: 84.92 kB / 481.4 MB, free: 7.445 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001033/0.6186, allocations: 68.45 kB / 481.4 MB, free: 7.41 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-06/0.6186, allocations: 0 / 481.4 MB, free: 7.41 MB / 346.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0002722/0.6189, allocations: 190.3 kB / 481.6 MB, free: 7.27 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.72e-05/0.6189, allocations: 8 kB / 481.6 MB, free: 7.262 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.6189, allocations: 0 / 481.6 MB, free: 7.262 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.65e-05/0.619, allocations: 4 kB / 481.6 MB, free: 7.258 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002454/0.6192, allocations: 62.88 kB / 481.7 MB, free: 7.207 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.267e-06/0.6192, allocations: 9.781 kB / 481.7 MB, free: 7.199 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000115/0.6194, allocations: 17.67 kB / 481.7 MB, free: 7.184 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.751e-05/0.6194, allocations: 15.31 kB / 481.7 MB, free: 7.172 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 6.866e-05/0.6195, allocations: 101 kB / 481.8 MB, free: 7.066 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002587/0.6197, allocations: 177.2 kB / 482 MB, free: 6.934 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.075e-05/0.6198, allocations: 15.81 kB / 482 MB, free: 6.918 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.876e-05/0.6198, allocations: 23.14 kB / 482 MB, free: 6.914 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.6199, allocations: 7.953 kB / 482.1 MB, free: 6.906 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.6199, allocations: 0 / 482.1 MB, free: 6.906 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.6199, allocations: 9.359 kB / 482.1 MB, free: 6.898 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006318/0.6205, allocations: 0.5125 MB / 482.6 MB, free: 6.477 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.6205, allocations: 4 kB / 482.6 MB, free: 6.473 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002639/0.6208, allocations: 62.73 kB / 482.6 MB, free: 6.422 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.973e-06/0.6208, allocations: 4 kB / 482.6 MB, free: 6.418 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.805e-05/0.6208, allocations: 4.188 kB / 482.7 MB, free: 6.418 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.639e-06/0.6209, allocations: 5.453 kB / 482.7 MB, free: 6.414 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.6209, allocations: 0.6562 kB / 482.7 MB, free: 6.414 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004339/0.6213, allocations: 492.6 kB / 483.1 MB, free: 5.973 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.017e-05/0.6214, allocations: 98.39 kB / 483.2 MB, free: 5.859 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.104e-05/0.6214, allocations: 7.688 kB / 483.2 MB, free: 5.855 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001568/0.6216, allocations: 7.141 kB / 483.2 MB, free: 5.852 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.721e-05/0.6216, allocations: 21.06 kB / 483.3 MB, free: 5.836 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.391e-05/0.6216, allocations: 13.22 kB / 483.3 MB, free: 5.828 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6e-05/0.6217, allocations: 116.7 kB / 483.4 MB, free: 5.73 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6217, allocations: 0 / 483.4 MB, free: 5.73 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003268/0.622, allocations: 48.25 kB / 483.4 MB, free: 5.684 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.0006157/0.6227, allocations: 1.296 MB / 484.7 MB, free: 4.426 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000238/0.6229, allocations: 140.4 kB / 484.9 MB, free: 4.328 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.6229, allocations: 0 / 484.9 MB, free: 4.328 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001013/0.623, allocations: 81.84 kB / 485 MB, free: 4.27 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003568/0.6234, allocations: 33.89 kB / 485 MB, free: 4.246 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001066/0.6245, allocations: 0.5854 MB / 485.6 MB, free: 3.656 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001948/0.6247, allocations: 0.7557 MB / 486.3 MB, free: 2.875 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 9.714e-05/0.6248, allocations: 14.08 kB / 486.3 MB, free: 2.863 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.11e-05/0.6249, allocations: 67.84 kB / 486.4 MB, free: 2.836 MB / 346.7 MB Notification: Performance of SimCode: time 2.4e-07/0.6249, allocations: 1.688 kB / 486.4 MB, free: 2.836 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02395/0.6489, allocations: 3.398 MB / 489.8 MB, free: 15.51 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002815/0.6492, allocations: 146.5 kB / 490 MB, free: 15.32 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.88/2.529, allocations: 0 / 490 MB, free: 15.32 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