Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Damper.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.Damper,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Damper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Damper,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Damper",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002078/0.002078, allocations: 198.6 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.283/1.283, allocations: 227.2 MB / 245 MB, free: 5.773 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009281/0.000928, allocations: 100.9 kB / 297.3 MB, free: 5.945 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00025/0.00025, allocations: 11.98 kB / 358 MB, free: 9.199 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2205/0.2208, allocations: 51.47 MB / 409.5 MB, free: 26.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09713/0.318, allocations: 78.17 MB / 487.7 MB, free: 12.41 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002902/0.3183, allocations: 71.95 kB / 487.7 MB, free: 12.34 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01138/0.3297, allocations: 4.274 MB / 492 MB, free: 8.062 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.006e-06/0.3298, allocations: 0 / 492 MB, free: 8.062 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.061e-05/0.3298, allocations: 4 kB / 492 MB, free: 8.059 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.000843/0.3306, allocations: 0.4916 MB / 492.5 MB, free: 7.516 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.668e-05/0.3307, allocations: 16.03 kB / 492.5 MB, free: 7.5 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.518e-05/0.3308, allocations: 62.67 kB / 492.6 MB, free: 7.43 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.985e-05/0.3309, allocations: 31.66 kB / 492.6 MB, free: 7.398 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003347/0.3312, allocations: 235.3 kB / 492.8 MB, free: 7.125 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.337e-05/0.3313, allocations: 16.56 kB / 492.9 MB, free: 7.109 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.585e-05/0.3313, allocations: 27.91 kB / 492.9 MB, free: 7.082 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004185/0.3318, allocations: 239.4 kB / 493.1 MB, free: 6.832 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.382e-05/0.3318, allocations: 7.984 kB / 493.1 MB, free: 6.824 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.295e-05/0.3318, allocations: 12 kB / 493.1 MB, free: 6.812 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.157e-06/0.3319, allocations: 4 kB / 493.1 MB, free: 6.809 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002914/0.3321, allocations: 163.8 kB / 493.3 MB, free: 6.648 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001252/0.3334, allocations: 0.8049 MB / 494.1 MB, free: 5.785 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004981/0.3339, allocations: 294.7 kB / 494.4 MB, free: 5.473 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.306e-05/0.334, allocations: 7.953 kB / 494.4 MB, free: 5.465 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.125e-05/0.334, allocations: 38.84 kB / 494.4 MB, free: 5.418 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 1.933e-06/0.334, allocations: 0 / 494.4 MB, free: 5.418 MB / 362.7 MB Notification: Performance of matching and sorting (n=45): time 0.002671/0.3367, allocations: 1.951 MB / 496.4 MB, free: 3.211 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.454e-05/0.3368, allocations: 110.8 kB / 496.5 MB, free: 3.078 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001656/0.3369, allocations: 174.3 kB / 496.7 MB, free: 2.895 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.748e-05/0.337, allocations: 29.7 kB / 496.7 MB, free: 2.859 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001039/0.3371, allocations: 140.8 kB / 496.8 MB, free: 2.719 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001172/0.3372, allocations: 157.6 kB / 497 MB, free: 2.562 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.621e-05/0.3372, allocations: 8.938 kB / 497 MB, free: 2.555 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.3374, allocations: 342.8 kB / 497.3 MB, free: 2.211 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001444/0.3375, allocations: 92.83 kB / 497.4 MB, free: 2.121 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001795/0.3377, allocations: 154.3 kB / 497.6 MB, free: 1.945 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001868/0.3379, allocations: 122.7 kB / 497.7 MB, free: 1.828 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.3379, allocations: 4 kB / 497.7 MB, free: 1.824 MB / 362.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0004971/0.3384, allocations: 338 kB / 498 MB, free: 1.492 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.983e-05/0.3384, allocations: 8 kB / 498 MB, free: 1.484 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.3384, allocations: 0 / 498 MB, free: 1.484 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.726e-05/0.3385, allocations: 4 kB / 498 MB, free: 1.48 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003308/0.3388, allocations: 95.84 kB / 498.1 MB, free: 1.387 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.048e-05/0.3388, allocations: 7.938 kB / 498.1 MB, free: 1.379 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001243/0.339, allocations: 11.98 kB / 498.2 MB, free: 1.367 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.683e-05/0.339, allocations: 16 kB / 498.2 MB, free: 1.352 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (54): * Single equations (assignments): 54 * 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.0001452/0.3391, allocations: 153.8 kB / 498.3 MB, free: 1.191 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.352e-05/0.3392, allocations: 27.72 kB / 498.3 MB, free: 1.164 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.991e-05/0.3393, allocations: 33.88 kB / 498.4 MB, free: 1.129 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-06/0.3393, allocations: 7.984 kB / 498.4 MB, free: 1.121 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.3394, allocations: 4 kB / 498.4 MB, free: 1.117 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.694e-06/0.3394, allocations: 0 / 498.4 MB, free: 1.117 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00132/0.3407, allocations: 1.054 MB / 499.4 MB, free: 15.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.3407, allocations: 0 / 499.4 MB, free: 15.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003822/0.3411, allocations: 91.89 kB / 499.5 MB, free: 15.89 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.336e-06/0.3411, allocations: 4 kB / 499.5 MB, free: 15.88 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.134e-05/0.3412, allocations: 12 kB / 499.5 MB, free: 15.87 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.609e-06/0.3412, allocations: 4 kB / 499.6 MB, free: 15.87 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.612e-06/0.3412, allocations: 7.938 kB / 499.6 MB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008339/0.342, allocations: 0.8483 MB / 0.4887 GB, free: 14.9 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.304e-05/0.3421, allocations: 100.8 kB / 0.4888 GB, free: 14.78 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.149e-05/0.3422, allocations: 16.19 kB / 0.4888 GB, free: 14.77 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002069/0.3424, allocations: 15.98 kB / 0.4888 GB, free: 14.75 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.868e-05/0.3424, allocations: 39.88 kB / 0.4888 GB, free: 14.71 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.931e-05/0.3425, allocations: 16 kB / 0.4889 GB, free: 14.7 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.889e-05/0.3426, allocations: 135.2 kB / 0.489 GB, free: 14.56 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3426, allocations: 0 / 0.489 GB, free: 14.56 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004219/0.343, allocations: 75.95 kB / 0.4891 GB, free: 14.49 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (springDamper3.s_rel,springDamper3.v_rel,damper1.s_rel,damper1.v_rel,damper2.s_rel,damper2.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 (45): * Single equations (assignments): 45 * 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.001471/0.3445, allocations: 2.147 MB / 0.4912 GB, free: 12.25 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004782/0.345, allocations: 266.2 kB / 0.4914 GB, free: 11.99 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.345, allocations: 0 / 0.4914 GB, free: 11.99 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002178/0.3452, allocations: 148.4 kB / 0.4916 GB, free: 11.84 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005627/0.3458, allocations: 55.86 kB / 0.4916 GB, free: 11.79 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003601/0.3494, allocations: 2.904 MB / 0.4944 GB, free: 8.785 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004479/0.3499, allocations: 0.784 MB / 0.4952 GB, free: 7.969 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001526/0.35, allocations: 26.97 kB / 0.4952 GB, free: 7.941 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001461/0.3502, allocations: 91.41 kB / 0.4953 GB, free: 7.852 MB / 378.7 MB Notification: Performance of SimCode: time 4.81e-07/0.3502, allocations: 0 / 0.4953 GB, free: 7.852 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01784/0.368, allocations: 5.296 MB / 0.5005 GB, free: 2.715 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002019/0.3683, allocations: 185.6 kB / 0.5007 GB, free: 2.469 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.852/2.22, allocations: 0 / 0.5007 GB, free: 2.469 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Damper.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Damper.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Damper.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Damper.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.Damper_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_Damper_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_Damper.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Damper.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Translational.Examples.Damper_res.mat does not exist to compare? outputFormat=mat