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.001188/0.001188, allocations: 202.6 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.297/1.297, allocations: 227.2 MB / 245 MB, free: 7.594 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008605/0.0008606, allocations: 95.44 kB / 297.2 MB, free: 6.195 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002017/0.0002018, allocations: 8 kB / 358 MB, free: 9.453 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2142/0.2144, allocations: 51.48 MB / 409.5 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1022/0.3167, allocations: 79.06 MB / 488.5 MB, free: 11.55 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002526/0.317, allocations: 71.95 kB / 488.6 MB, free: 11.48 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01083/0.3278, allocations: 4.011 MB / 492.6 MB, free: 7.465 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3279, allocations: 0 / 492.6 MB, free: 7.465 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.513e-05/0.3279, allocations: 4.219 kB / 492.6 MB, free: 7.461 MB / 362.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.0007166/0.3286, allocations: 0.495 MB / 493.1 MB, free: 6.918 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.3286, allocations: 8.031 kB / 493.1 MB, free: 6.91 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.145e-05/0.3287, allocations: 54.55 kB / 493.2 MB, free: 6.848 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00022/0.329, allocations: 55.59 kB / 493.2 MB, free: 6.793 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002323/0.3292, allocations: 227.3 kB / 493.5 MB, free: 6.527 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.523e-05/0.3292, allocations: 12.44 kB / 493.5 MB, free: 6.516 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.869e-05/0.3293, allocations: 20 kB / 493.5 MB, free: 6.496 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003782/0.3296, allocations: 218.5 kB / 493.7 MB, free: 6.27 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.774e-05/0.3297, allocations: 7.984 kB / 493.7 MB, free: 6.262 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.019e-05/0.3297, allocations: 8 kB / 493.7 MB, free: 6.254 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.3297, allocations: 4 kB / 493.7 MB, free: 6.25 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00031/0.33, allocations: 160.5 kB / 493.9 MB, free: 6.094 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001147/0.3312, allocations: 0.7957 MB / 494.7 MB, free: 5.234 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003799/0.3316, allocations: 209 kB / 494.9 MB, free: 5.012 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.514e-05/0.3316, allocations: 7.938 kB / 494.9 MB, free: 5.004 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.18e-05/0.3316, allocations: 34.55 kB / 494.9 MB, free: 4.961 MB / 362.7 MB Notification: Performance of pre-optimization done (n=22): time 1.362e-06/0.3316, allocations: 0 / 494.9 MB, free: 4.961 MB / 362.7 MB Notification: Performance of matching and sorting (n=26): time 0.001486/0.3331, allocations: 0.8776 MB / 495.8 MB, free: 3.996 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.959e-05/0.3332, allocations: 85.02 kB / 495.9 MB, free: 3.895 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000136/0.3333, allocations: 158.4 kB / 496 MB, free: 3.73 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.138e-05/0.3334, allocations: 29.7 kB / 496.1 MB, free: 3.695 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.359e-05/0.3335, allocations: 140.4 kB / 496.2 MB, free: 3.555 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.465e-05/0.3335, allocations: 94.8 kB / 496.3 MB, free: 3.461 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.059e-05/0.3335, allocations: 8 kB / 496.3 MB, free: 3.453 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000118/0.3337, allocations: 326.8 kB / 496.6 MB, free: 3.125 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001447/0.3338, allocations: 75.89 kB / 496.7 MB, free: 3.051 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001583/0.334, allocations: 112.2 kB / 496.8 MB, free: 2.926 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001686/0.3342, allocations: 86.22 kB / 496.9 MB, free: 2.844 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.3342, allocations: 4 kB / 496.9 MB, free: 2.84 MB / 362.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004127/0.3346, allocations: 253.5 kB / 497.1 MB, free: 2.586 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/0.3346, allocations: 7.938 kB / 497.2 MB, free: 2.578 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.3346, allocations: 0 / 497.2 MB, free: 2.578 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.474e-05/0.3347, allocations: 11.94 kB / 497.2 MB, free: 2.566 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002494/0.3349, allocations: 59.91 kB / 497.2 MB, free: 2.508 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.396e-06/0.3349, allocations: 4 kB / 497.2 MB, free: 2.504 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001121/0.335, allocations: 12.09 kB / 497.2 MB, free: 2.492 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.813e-05/0.3351, allocations: 16 kB / 497.3 MB, free: 2.477 MB / 362.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 () * Number of clocked 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 0.0001244/0.3352, allocations: 141.7 kB / 497.4 MB, free: 2.328 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.711e-05/0.3353, allocations: 23.72 kB / 497.4 MB, free: 2.305 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.435e-05/0.3353, allocations: 25.88 kB / 497.4 MB, free: 2.277 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-06/0.3353, allocations: 0 / 497.4 MB, free: 2.277 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.3353, allocations: 7.953 kB / 497.5 MB, free: 2.27 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.051e-06/0.3354, allocations: 3.984 kB / 497.5 MB, free: 2.266 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007788/0.3361, allocations: 0.5788 MB / 498 MB, free: 1.621 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.778e-06/0.3362, allocations: 7.953 kB / 498 MB, free: 1.613 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002747/0.3364, allocations: 59.89 kB / 498.1 MB, free: 1.555 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.43e-06/0.3365, allocations: 8.094 kB / 498.1 MB, free: 1.547 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.97e-05/0.3365, allocations: 8 kB / 498.1 MB, free: 1.539 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.3365, allocations: 0 / 498.1 MB, free: 1.539 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.3365, allocations: 4 kB / 498.1 MB, free: 1.535 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006686/0.3372, allocations: 0.5396 MB / 498.7 MB, free: 0.9453 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.243e-05/0.3372, allocations: 105 kB / 498.8 MB, free: 0.8242 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.71e-05/0.3373, allocations: 0 / 498.8 MB, free: 0.8242 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001719/0.3375, allocations: 12 kB / 498.8 MB, free: 0.8125 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.561e-05/0.3375, allocations: 23.92 kB / 498.8 MB, free: 0.7891 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.344e-05/0.3375, allocations: 8 kB / 498.8 MB, free: 0.7812 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.76e-05/0.3376, allocations: 123.2 kB / 498.9 MB, free: 0.6602 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3376, allocations: 0 / 498.9 MB, free: 0.6602 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003111/0.338, allocations: 59.98 kB / 499 MB, free: 0.6016 MB / 362.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 () * Number of clocked 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.001074/0.339, allocations: 1.359 MB / 0.4886 GB, free: 15.19 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003945/0.3395, allocations: 194.5 kB / 0.4888 GB, free: 15 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.3395, allocations: 0 / 0.4888 GB, free: 15 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001875/0.3397, allocations: 104.2 kB / 0.4889 GB, free: 14.9 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003663/0.34, allocations: 36.06 kB / 0.4889 GB, free: 14.86 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002489/0.3425, allocations: 2.199 MB / 0.4911 GB, free: 12.58 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002823/0.3428, allocations: 0.752 MB / 0.4918 GB, free: 11.8 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.469e-05/0.3429, allocations: 17.95 kB / 0.4918 GB, free: 11.79 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001024/0.343, allocations: 67.41 kB / 0.4919 GB, free: 11.72 MB / 378.7 MB Notification: Performance of SimCode: time 3.31e-07/0.343, allocations: 0 / 0.4919 GB, free: 11.72 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01507/0.3581, allocations: 3.869 MB / 0.4957 GB, free: 8.008 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002059/0.3584, allocations: 187.2 kB / 0.4959 GB, free: 7.762 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.629/1.987, allocations: 0 / 0.4959 GB, free: 7.762 MB / 378.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