Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Sensors.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.Sensors,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Sensors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Sensors,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Sensors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001147/0.001147, allocations: 199 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.266/1.266, allocations: 227.2 MB / 245 MB, free: 7.59 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008561/0.0008558, allocations: 99.89 kB / 297.3 MB, free: 6.191 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002493/0.000249, allocations: 8 kB / 358 MB, free: 9.453 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2251/0.2254, allocations: 51.48 MB / 409.5 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09701/0.3225, allocations: 79.05 MB / 488.5 MB, free: 11.58 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002196/0.3227, allocations: 71.95 kB / 488.6 MB, free: 11.51 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007275/0.33, allocations: 2.778 MB / 491.4 MB, free: 8.738 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.993e-06/0.3301, allocations: 0 / 491.4 MB, free: 8.738 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.257e-06/0.3301, allocations: 4 kB / 491.4 MB, free: 8.734 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0004463/0.3305, allocations: 426.8 kB / 491.8 MB, free: 8.27 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.52e-05/0.3306, allocations: 16.03 kB / 491.8 MB, free: 8.254 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.373e-05/0.3306, allocations: 50.55 kB / 491.9 MB, free: 8.195 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001191/0.3308, allocations: 23.89 kB / 491.9 MB, free: 8.172 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001761/0.3309, allocations: 191 kB / 492.1 MB, free: 7.945 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.654e-05/0.331, allocations: 19.94 kB / 492.1 MB, free: 7.926 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.963e-05/0.331, allocations: 16 kB / 492.1 MB, free: 7.91 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002613/0.3313, allocations: 137.6 kB / 492.3 MB, free: 7.77 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.393e-05/0.3313, allocations: 4 kB / 492.3 MB, free: 7.766 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.518e-05/0.3313, allocations: 8 kB / 492.3 MB, free: 7.758 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.556e-06/0.3313, allocations: 4 kB / 492.3 MB, free: 7.754 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001884/0.3315, allocations: 99.62 kB / 492.4 MB, free: 7.656 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007728/0.3323, allocations: 0.5329 MB / 492.9 MB, free: 7.066 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001512/0.3325, allocations: 78.53 kB / 493 MB, free: 6.98 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.398e-05/0.3325, allocations: 8 kB / 493 MB, free: 6.973 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.145e-05/0.3325, allocations: 34.56 kB / 493 MB, free: 6.93 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 1.422e-06/0.3325, allocations: 0 / 493 MB, free: 6.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0009931/0.3335, allocations: 0.608 MB / 493.6 MB, free: 6.23 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.549e-05/0.3336, allocations: 51.59 kB / 493.7 MB, free: 6.168 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001055/0.3337, allocations: 117.5 kB / 493.8 MB, free: 6.047 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.926e-05/0.3337, allocations: 33.64 kB / 493.8 MB, free: 6.008 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.875e-05/0.3338, allocations: 135.9 kB / 494 MB, free: 5.871 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.408e-05/0.3339, allocations: 43.36 kB / 494 MB, free: 5.828 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.031e-06/0.3339, allocations: 8 kB / 494 MB, free: 5.82 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.334, allocations: 322.8 kB / 494.3 MB, free: 5.496 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.049e-05/0.3341, allocations: 31.98 kB / 494.4 MB, free: 5.465 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001213/0.3342, allocations: 89.08 kB / 494.4 MB, free: 5.355 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.701e-05/0.3343, allocations: 43.94 kB / 494.5 MB, free: 5.312 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-06/0.3344, allocations: 0 / 494.5 MB, free: 5.312 MB / 362.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002868/0.3346, allocations: 157.4 kB / 494.6 MB, free: 5.152 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.164e-05/0.3347, allocations: 11.98 kB / 494.6 MB, free: 5.141 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.3347, allocations: 0 / 494.6 MB, free: 5.141 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.564e-05/0.3347, allocations: 8 kB / 494.7 MB, free: 5.133 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001698/0.3349, allocations: 43.88 kB / 494.7 MB, free: 5.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.436e-06/0.3349, allocations: 4 kB / 494.7 MB, free: 5.086 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.05e-05/0.335, allocations: 4.188 kB / 494.7 MB, free: 5.082 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.258e-05/0.335, allocations: 12 kB / 494.7 MB, free: 5.07 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (19): * Single equations (assignments): 19 * 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.0001157/0.3351, allocations: 133.8 kB / 494.8 MB, free: 4.93 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.11e-05/0.3352, allocations: 7.906 kB / 494.9 MB, free: 4.922 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.732e-05/0.3352, allocations: 8.375 kB / 494.9 MB, free: 4.91 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.3352, allocations: 0 / 494.9 MB, free: 4.91 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.3352, allocations: 8 kB / 494.9 MB, free: 4.902 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.3352, allocations: 3.984 kB / 494.9 MB, free: 4.898 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005528/0.3358, allocations: 451.9 kB / 495.3 MB, free: 4.395 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.3358, allocations: 192 / 495.3 MB, free: 4.395 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001775/0.336, allocations: 31.98 kB / 495.3 MB, free: 4.363 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.174e-06/0.336, allocations: 11.83 kB / 495.4 MB, free: 4.352 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.128e-05/0.336, allocations: 0 / 495.4 MB, free: 4.352 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.23e-06/0.3361, allocations: 12 kB / 495.4 MB, free: 4.34 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3361, allocations: 0 / 495.4 MB, free: 4.34 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003704/0.3364, allocations: 279.8 kB / 495.6 MB, free: 4.035 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.624e-05/0.3365, allocations: 85.05 kB / 495.7 MB, free: 3.934 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.885e-05/0.3365, allocations: 0 / 495.7 MB, free: 3.934 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.593e-05/0.3366, allocations: 11.98 kB / 495.7 MB, free: 3.922 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.858e-05/0.3367, allocations: 7.938 kB / 495.7 MB, free: 3.914 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.163e-06/0.3367, allocations: 4 kB / 495.8 MB, free: 3.91 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.217e-05/0.3367, allocations: 104.8 kB / 495.9 MB, free: 3.809 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3368, allocations: 64 / 495.9 MB, free: 3.809 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002622/0.337, allocations: 28 kB / 495.9 MB, free: 3.781 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (mass.s,mass.v) * 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 (11): * Single equations (assignments): 11 * 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.0006604/0.3377, allocations: 0.9494 MB / 496.8 MB, free: 2.793 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002263/0.3379, allocations: 91.84 kB / 496.9 MB, free: 2.703 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.3379, allocations: 448 / 496.9 MB, free: 2.703 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.396e-05/0.338, allocations: 43.92 kB / 497 MB, free: 2.66 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000235/0.3383, allocations: 15.94 kB / 497 MB, free: 2.645 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002068/0.3404, allocations: 2.035 MB / 499 MB, free: 0.5234 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003811/0.3407, allocations: 0.7277 MB / 499.7 MB, free: 15.77 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 6.238e-05/0.3408, allocations: 8.875 kB / 499.7 MB, free: 15.76 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.698e-05/0.3409, allocations: 39.42 kB / 499.8 MB, free: 15.72 MB / 378.7 MB Notification: Performance of SimCode: time 1.052e-06/0.3409, allocations: 0 / 499.8 MB, free: 15.72 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01593/0.3568, allocations: 2.075 MB / 0.4901 GB, free: 13.77 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002496/0.3572, allocations: 174.5 kB / 0.4903 GB, free: 13.53 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.633/1.99, allocations: 0 / 0.4903 GB, free: 13.53 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Sensors.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Sensors.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.Sensors_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_Sensors_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_Sensors.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Sensors.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Translational.Examples.Sensors_res.mat does not exist to compare? outputFormat=mat