Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.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.ShiftSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_ShiftSample",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.002415/0.002416, allocations: 181.1 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.246/2.246, allocations: 205.2 MB / 219 MB, free: 9.207 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.0015/0.0015, allocations: 89.52 kB / 267.1 MB, free: 9.277 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.1255/0.1255, allocations: 12.58 MB / 327.8 MB, free: 12.48 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.716e-05/3.74e-05, allocations: 4 kB / 386.1 MB, free: 69.5 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1014, allocations: 50.38 MB / 436.5 MB, free: 19.11 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4642/0.5657, allocations: 78.24 MB / 0.5027 GB, free: 11.83 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002754/0.566, allocations: 73.62 kB / 0.5027 GB, free: 11.83 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005376/0.5714, allocations: 1.446 MB / 0.5041 GB, free: 11.44 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.5714, allocations: 0 / 0.5041 GB, free: 11.44 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.165e-05/0.5715, allocations: 0 / 0.5041 GB, free: 11.44 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003719/0.5718, allocations: 353.8 kB / 0.5045 GB, free: 11.08 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.5719, allocations: 11.59 kB / 0.5045 GB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.431e-05/0.5719, allocations: 42 kB / 0.5045 GB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.154e-05/0.572, allocations: 11.72 kB / 0.5045 GB, free: 11.03 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002012/0.5722, allocations: 195 kB / 0.5047 GB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.069e-05/0.5722, allocations: 0 / 0.5047 GB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.695e-05/0.5722, allocations: 6.281 kB / 0.5047 GB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002611/0.5725, allocations: 107.5 kB / 0.5048 GB, free: 10.75 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.909e-06/0.5725, allocations: 4 kB / 0.5048 GB, free: 10.74 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.026e-05/0.5726, allocations: 0 / 0.5048 GB, free: 10.74 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.5726, allocations: 0 / 0.5048 GB, free: 10.74 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.454e-05/0.5726, allocations: 14.84 kB / 0.5049 GB, free: 10.74 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003609/0.573, allocations: 283.9 kB / 0.5051 GB, free: 10.45 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.533e-05/0.5731, allocations: 69.97 kB / 0.5052 GB, free: 10.38 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.774e-05/0.5732, allocations: 29.61 kB / 0.5052 GB, free: 10.35 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.43e-05/0.5732, allocations: 0 / 0.5052 GB, free: 10.35 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.956e-05/0.5732, allocations: 42 kB / 0.5053 GB, free: 10.3 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.563e-06/0.5733, allocations: 0 / 0.5053 GB, free: 10.3 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001912/0.5735, allocations: 59.42 kB / 0.5053 GB, free: 10.26 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.483e-05/0.5735, allocations: 113.3 kB / 0.5054 GB, free: 10.14 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001194/0.5736, allocations: 129.4 kB / 0.5055 GB, free: 10.04 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.218e-05/0.5737, allocations: 25.8 kB / 0.5056 GB, free: 10.01 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.322e-05/0.5737, allocations: 98.31 kB / 0.5057 GB, free: 9.922 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.548e-05/0.5737, allocations: 7.688 kB / 0.5057 GB, free: 9.922 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.338e-06/0.5738, allocations: 0 / 0.5057 GB, free: 9.922 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.31e-05/0.5738, allocations: 321.8 kB / 0.506 GB, free: 9.609 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.222e-05/0.5739, allocations: 0 / 0.506 GB, free: 9.609 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.316e-05/0.5739, allocations: 30.28 kB / 0.506 GB, free: 9.578 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.489e-05/0.5739, allocations: 11.81 kB / 0.506 GB, free: 9.57 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.574, allocations: 0 / 0.506 GB, free: 9.57 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001122/0.5741, allocations: 66.55 kB / 0.5061 GB, free: 9.531 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.5741, allocations: 7.531 kB / 0.5061 GB, free: 9.531 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.5741, allocations: 0 / 0.5061 GB, free: 9.531 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.436e-05/0.5741, allocations: 0 / 0.5061 GB, free: 9.531 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001068/0.5743, allocations: 11.84 kB / 0.5061 GB, free: 9.527 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.388e-06/0.5743, allocations: 6.938 kB / 0.5061 GB, free: 9.527 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.202e-05/0.5744, allocations: 3.781 kB / 0.5061 GB, free: 9.527 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.069e-05/0.5744, allocations: 3.953 kB / 0.5061 GB, free: 9.523 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.534e-05/0.5745, allocations: 116.5 kB / 0.5062 GB, free: 9.406 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.026e-05/0.5746, allocations: 51.34 kB / 0.5063 GB, free: 9.371 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.66e-05/0.5746, allocations: 7.531 kB / 0.5063 GB, free: 9.371 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.886e-06/0.5746, allocations: 4.062 kB / 0.5063 GB, free: 9.367 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.5746, allocations: 3.812 kB / 0.5063 GB, free: 9.367 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.5747, allocations: 3.141 kB / 0.5063 GB, free: 9.367 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000164/0.5748, allocations: 173.1 kB / 0.5065 GB, free: 9.176 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.053e-06/0.5748, allocations: 3.938 kB / 0.5065 GB, free: 9.172 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.086e-05/0.5749, allocations: 10.84 kB / 0.5065 GB, free: 9.172 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.575, allocations: 0 / 0.5065 GB, free: 9.172 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.629e-06/0.575, allocations: 3.844 kB / 0.5065 GB, free: 9.172 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.035e-06/0.575, allocations: 3.094 kB / 0.5065 GB, free: 9.172 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.575, allocations: 0 / 0.5065 GB, free: 9.172 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001473/0.5752, allocations: 193.9 kB / 0.5067 GB, free: 8.984 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.997e-05/0.5752, allocations: 99.23 kB / 0.5068 GB, free: 8.883 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.017e-05/0.5753, allocations: 3.938 kB / 0.5068 GB, free: 8.879 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001015/0.5754, allocations: 3.844 kB / 0.5068 GB, free: 8.879 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.549e-05/0.5754, allocations: 7.953 kB / 0.5068 GB, free: 8.871 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.185e-06/0.5754, allocations: 11.53 kB / 0.5068 GB, free: 8.867 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.584e-05/0.5755, allocations: 107.6 kB / 0.5069 GB, free: 8.793 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5755, allocations: 3.938 kB / 0.5069 GB, free: 8.789 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002805/0.5758, allocations: 3.844 kB / 0.5069 GB, free: 8.789 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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.0003495/0.5762, allocations: 0.8619 MB / 0.5077 GB, free: 7.938 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001115/0.5763, allocations: 27.19 kB / 0.5078 GB, free: 7.934 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.5763, allocations: 0 / 0.5078 GB, free: 7.934 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.474e-05/0.5764, allocations: 3.938 kB / 0.5078 GB, free: 7.93 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003298/0.5767, allocations: 29.42 kB / 0.5078 GB, free: 7.926 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004734/0.5772, allocations: 139.2 kB / 0.5079 GB, free: 7.797 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001651/0.5774, allocations: 0.6952 MB / 0.5086 GB, free: 7.102 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 4.553e-05/0.5774, allocations: 192 / 0.5086 GB, free: 7.098 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.183e-05/0.5775, allocations: 21.27 kB / 0.5086 GB, free: 7.094 MB / 330.7 MB Notification: Performance of SimCode: time 6.71e-07/0.5775, allocations: 4 kB / 0.5086 GB, free: 7.09 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0196/0.5971, allocations: 1.47 MB / 0.5101 GB, free: 6.699 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000221/0.5974, allocations: 180.9 kB / 0.5102 GB, free: 6.473 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.327/2.925, allocations: 0 / 0.5102 GB, free: 6.473 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_ShiftSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample_res.mat does not exist to compare? outputFormat=mat