Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001502/0.001502, allocations: 181.5 kB / 13.23 MB, free: 2.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.302/2.302, allocations: 205.2 MB / 219 MB, free: 9.219 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001203/0.001203, allocations: 90.66 kB / 267.1 MB, free: 9.285 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1094/0.1094, allocations: 12.59 MB / 327.8 MB, free: 12.5 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.422e-05/3.441e-05, allocations: 0 / 386.1 MB, free: 69.51 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.1011, allocations: 50.38 MB / 436.5 MB, free: 19.12 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4482/0.5493, allocations: 77.79 MB / 0.5022 GB, free: 11.98 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002694/0.5496, allocations: 75.41 kB / 0.5023 GB, free: 11.98 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003668/0.5533, allocations: 1.116 MB / 0.5034 GB, free: 11.62 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.5534, allocations: 4.469 kB / 0.5034 GB, free: 11.61 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.071e-05/0.5534, allocations: 6.125 kB / 0.5034 GB, free: 11.61 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0003217/0.5537, allocations: 339.9 kB / 0.5037 GB, free: 11.27 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.439e-05/0.5538, allocations: 11.53 kB / 0.5037 GB, free: 11.27 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.189e-05/0.5538, allocations: 33.75 kB / 0.5037 GB, free: 11.23 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.958e-05/0.5539, allocations: 12.62 kB / 0.5038 GB, free: 11.22 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001769/0.5541, allocations: 187.6 kB / 0.5039 GB, free: 11.01 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.34e-05/0.5541, allocations: 7.797 kB / 0.5039 GB, free: 11.01 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.289e-05/0.5541, allocations: 0 / 0.5039 GB, free: 11.01 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002787/0.5544, allocations: 117.4 kB / 0.5041 GB, free: 10.94 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.5544, allocations: 4 kB / 0.5041 GB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.468e-06/0.5544, allocations: 0 / 0.5041 GB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.5545, allocations: 0 / 0.5041 GB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.066e-05/0.5545, allocations: 11.31 kB / 0.5041 GB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003296/0.5548, allocations: 269.2 kB / 0.5043 GB, free: 10.66 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001739/0.555, allocations: 135.2 kB / 0.5045 GB, free: 10.51 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.986e-05/0.5551, allocations: 23.41 kB / 0.5045 GB, free: 10.5 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.237e-05/0.5551, allocations: 3.938 kB / 0.5045 GB, free: 10.49 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.105e-05/0.5552, allocations: 38.34 kB / 0.5045 GB, free: 10.45 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.653e-06/0.5552, allocations: 0 / 0.5045 GB, free: 10.45 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001734/0.5554, allocations: 62.88 kB / 0.5046 GB, free: 10.41 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.648e-05/0.5554, allocations: 83.95 kB / 0.5047 GB, free: 10.31 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001089/0.5555, allocations: 119 kB / 0.5048 GB, free: 10.21 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.095e-05/0.5556, allocations: 25.7 kB / 0.5048 GB, free: 10.18 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.312e-05/0.5556, allocations: 90.28 kB / 0.5049 GB, free: 10.1 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.471e-05/0.5556, allocations: 3.906 kB / 0.5049 GB, free: 10.1 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.508e-06/0.5556, allocations: 3.812 kB / 0.5049 GB, free: 10.1 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.386e-05/0.5557, allocations: 314.8 kB / 0.5052 GB, free: 9.781 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.734e-05/0.5557, allocations: 8 kB / 0.5052 GB, free: 9.777 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.169e-05/0.5558, allocations: 29.25 kB / 0.5052 GB, free: 9.746 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.982e-05/0.5558, allocations: 12.12 kB / 0.5052 GB, free: 9.746 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.5558, allocations: 0 / 0.5052 GB, free: 9.746 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001038/0.556, allocations: 59.41 kB / 0.5053 GB, free: 9.703 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.701e-05/0.556, allocations: 7.719 kB / 0.5053 GB, free: 9.703 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.556, allocations: 0 / 0.5053 GB, free: 9.703 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.368e-05/0.556, allocations: 0 / 0.5053 GB, free: 9.703 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.696e-05/0.5561, allocations: 10.77 kB / 0.5053 GB, free: 9.703 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.386e-06/0.5561, allocations: 3.906 kB / 0.5053 GB, free: 9.703 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.183e-05/0.5562, allocations: 7.594 kB / 0.5053 GB, free: 9.699 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.065e-06/0.5562, allocations: 3.938 kB / 0.5053 GB, free: 9.695 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 5.414e-05/0.5563, allocations: 121.8 kB / 0.5054 GB, free: 9.578 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.973e-05/0.5564, allocations: 46.97 kB / 0.5055 GB, free: 9.543 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.669e-05/0.5564, allocations: 7.219 kB / 0.5055 GB, free: 9.539 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.5564, allocations: 3.969 kB / 0.5055 GB, free: 9.539 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.5564, allocations: 0 / 0.5055 GB, free: 9.539 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.5565, allocations: 0 / 0.5055 GB, free: 9.539 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001603/0.5566, allocations: 167.3 kB / 0.5057 GB, free: 9.348 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.5566, allocations: 3.844 kB / 0.5057 GB, free: 9.348 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.636e-05/0.5567, allocations: 9.703 kB / 0.5057 GB, free: 9.348 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.5567, allocations: 4 kB / 0.5057 GB, free: 9.344 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.626e-06/0.5568, allocations: 3.25 kB / 0.5057 GB, free: 9.344 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.058e-06/0.5568, allocations: 6.203 kB / 0.5057 GB, free: 9.34 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/0.5568, allocations: 7.828 kB / 0.5057 GB, free: 9.336 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000126/0.5569, allocations: 166.8 kB / 0.5059 GB, free: 9.172 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.892e-05/0.557, allocations: 97.03 kB / 0.5059 GB, free: 9.07 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.82e-05/0.557, allocations: 7.812 kB / 0.506 GB, free: 9.066 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.33e-05/0.5571, allocations: 0 / 0.506 GB, free: 9.066 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.453e-05/0.5572, allocations: 6.312 kB / 0.506 GB, free: 9.066 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.64e-06/0.5572, allocations: 3.938 kB / 0.506 GB, free: 9.066 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.936e-05/0.5572, allocations: 104.4 kB / 0.5061 GB, free: 8.992 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5573, allocations: 3.938 kB / 0.5061 GB, free: 8.988 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002718/0.5575, allocations: 3.844 kB / 0.5061 GB, free: 8.988 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.0003073/0.5579, allocations: 0.7711 MB / 0.5068 GB, free: 8.23 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001053/0.558, allocations: 21.11 kB / 0.5068 GB, free: 8.23 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.195e-06/0.558, allocations: 0 / 0.5068 GB, free: 8.23 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.877e-05/0.558, allocations: 3.938 kB / 0.5068 GB, free: 8.227 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003128/0.5583, allocations: 22.66 kB / 0.5069 GB, free: 8.223 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004107/0.5588, allocations: 129.5 kB / 0.507 GB, free: 8.102 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001574/0.5589, allocations: 0.6888 MB / 0.5077 GB, free: 7.406 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 3.35e-05/0.559, allocations: 10.22 kB / 0.5077 GB, free: 7.402 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.006e-05/0.559, allocations: 10.81 kB / 0.5077 GB, free: 7.398 MB / 330.7 MB Notification: Performance of SimCode: time 6.41e-07/0.559, allocations: 3.875 kB / 0.5077 GB, free: 7.398 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0193/0.5783, allocations: 1.226 MB / 0.5089 GB, free: 7.113 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000214/0.5786, allocations: 180.8 kB / 0.5091 GB, free: 6.883 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.453/3.032, allocations: 3.938 kB / 0.5091 GB, free: 6.879 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_Sample2_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_Sample2.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2_res.mat does not exist to compare? outputFormat=mat