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.002196/0.002201, allocations: 178.8 kB / 15.8 MB, free: 6.34 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.064/2.064, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001137/0.001137, allocations: 94.83 kB / 270.3 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09696/0.09696, allocations: 12.59 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005616/0.0005617, allocations: 12.66 kB / 392.1 MB, free: 54.71 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09783/0.09843, allocations: 50.37 MB / 442.5 MB, free: 10.81 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1411/0.2396, allocations: 78.33 MB / 0.5086 GB, free: 12.37 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003164/0.24, allocations: 79.95 kB / 0.5087 GB, free: 12.29 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006149/0.2461, allocations: 1.444 MB / 0.5101 GB, free: 10.84 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.434e-06/0.2462, allocations: 0 / 0.5101 GB, free: 10.84 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.555e-05/0.2462, allocations: 4 kB / 0.5101 GB, free: 10.84 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005209/0.2467, allocations: 382.9 kB / 0.5105 GB, free: 10.41 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.642e-05/0.2468, allocations: 8.031 kB / 0.5105 GB, free: 10.41 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.016e-05/0.2468, allocations: 42.55 kB / 0.5105 GB, free: 10.36 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.54e-05/0.2469, allocations: 7.906 kB / 0.5105 GB, free: 10.35 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002504/0.2472, allocations: 198.7 kB / 0.5107 GB, free: 10.11 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.49e-05/0.2472, allocations: 4 kB / 0.5107 GB, free: 10.11 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.615e-05/0.2472, allocations: 0 / 0.5107 GB, free: 10.11 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003609/0.2476, allocations: 117.9 kB / 0.5108 GB, free: 9.973 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.729e-06/0.2476, allocations: 0 / 0.5108 GB, free: 9.973 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.024e-05/0.2476, allocations: 4 kB / 0.5108 GB, free: 9.969 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.189e-06/0.2476, allocations: 0 / 0.5108 GB, free: 9.969 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001485/0.2478, allocations: 27.92 kB / 0.5108 GB, free: 9.941 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000497/0.2483, allocations: 286.6 kB / 0.5111 GB, free: 9.605 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001596/0.2485, allocations: 67.78 kB / 0.5112 GB, free: 9.512 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.737e-05/0.2485, allocations: 4 kB / 0.5112 GB, free: 9.508 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.765e-05/0.2486, allocations: 34.62 kB / 0.5112 GB, free: 9.465 MB / 362.7 MB Notification: Performance of pre-optimization done (n=4): time 3.838e-06/0.2486, allocations: 0 / 0.5112 GB, free: 9.465 MB / 362.7 MB Notification: Performance of matching and sorting (n=4): time 0.0004063/0.249, allocations: 105.7 kB / 0.5113 GB, free: 9.355 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.46e-05/0.2491, allocations: 110.8 kB / 0.5114 GB, free: 9.223 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000162/0.2493, allocations: 132.8 kB / 0.5116 GB, free: 9.086 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.85e-05/0.2493, allocations: 25.7 kB / 0.5116 GB, free: 9.055 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.245e-05/0.2494, allocations: 96.03 kB / 0.5117 GB, free: 8.957 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.702e-05/0.2494, allocations: 3.984 kB / 0.5117 GB, free: 8.953 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.789e-06/0.2494, allocations: 0 / 0.5117 GB, free: 8.953 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001366/0.2496, allocations: 320.3 kB / 0.512 GB, free: 8.633 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.168e-05/0.2497, allocations: 15.98 kB / 0.512 GB, free: 8.617 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.656e-05/0.2497, allocations: 31.44 kB / 0.512 GB, free: 8.574 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.886e-05/0.2499, allocations: 27.92 kB / 0.5121 GB, free: 8.547 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.2499, allocations: 0 / 0.5121 GB, free: 8.547 MB / 362.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002309/0.2501, allocations: 73.52 kB / 0.5121 GB, free: 8.469 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.2501, allocations: 4 kB / 0.5121 GB, free: 8.465 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.2502, allocations: 0 / 0.5121 GB, free: 8.465 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.637e-05/0.2502, allocations: 4 kB / 0.5121 GB, free: 8.461 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001157/0.2503, allocations: 8.125 kB / 0.5121 GB, free: 8.453 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.207e-06/0.2503, allocations: 4 kB / 0.5121 GB, free: 8.449 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.033e-05/0.2504, allocations: 11.92 kB / 0.5122 GB, free: 8.438 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.456e-05/0.2504, allocations: 4 kB / 0.5122 GB, free: 8.434 MB / 362.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 () * Number of clocked 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 0.0001141/0.2506, allocations: 121.6 kB / 0.5123 GB, free: 8.305 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001181/0.2507, allocations: 53.59 kB / 0.5123 GB, free: 8.246 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.117e-05/0.2507, allocations: 7.875 kB / 0.5123 GB, free: 8.238 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.713e-06/0.2508, allocations: 0 / 0.5123 GB, free: 8.238 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.2508, allocations: 12 kB / 0.5123 GB, free: 8.227 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.2508, allocations: 0 / 0.5123 GB, free: 8.227 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000238/0.251, allocations: 181.5 kB / 0.5125 GB, free: 8 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.251, allocations: 0 / 0.5125 GB, free: 8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001012/0.2512, allocations: 12 kB / 0.5125 GB, free: 7.988 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.2512, allocations: 0 / 0.5125 GB, free: 7.988 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.299e-05/0.2512, allocations: 4 kB / 0.5125 GB, free: 7.984 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.2512, allocations: 0 / 0.5125 GB, free: 7.984 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.117e-06/0.2512, allocations: 3.984 kB / 0.5125 GB, free: 7.98 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003286/0.2516, allocations: 208.5 kB / 0.5127 GB, free: 7.742 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.5e-05/0.2517, allocations: 89 kB / 0.5128 GB, free: 7.637 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.547e-05/0.2517, allocations: 4 kB / 0.5128 GB, free: 7.633 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001064/0.2518, allocations: 15.94 kB / 0.5128 GB, free: 7.617 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.586e-05/0.2519, allocations: 0 / 0.5128 GB, free: 7.617 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.123e-05/0.2519, allocations: 3.953 kB / 0.5128 GB, free: 7.613 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001239/0.252, allocations: 111.2 kB / 0.5129 GB, free: 7.504 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.252, allocations: 0 / 0.5129 GB, free: 7.504 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003249/0.2524, allocations: 4 kB / 0.513 GB, free: 7.5 MB / 362.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 () * Number of clocked 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.0007177/0.2531, allocations: 0.8783 MB / 0.5138 GB, free: 6.582 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002294/0.2533, allocations: 35.97 kB / 0.5138 GB, free: 6.547 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.2534, allocations: 0 / 0.5138 GB, free: 6.547 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.232e-05/0.2534, allocations: 11.94 kB / 0.5139 GB, free: 6.535 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003667/0.2538, allocations: 31.77 kB / 0.5139 GB, free: 6.508 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001344/0.2552, allocations: 0.9645 MB / 0.5148 GB, free: 5.469 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003192/0.2555, allocations: 0.6977 MB / 0.5155 GB, free: 4.746 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.53e-05/0.2556, allocations: 4.188 kB / 0.5155 GB, free: 4.742 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.194e-05/0.2557, allocations: 23.48 kB / 0.5155 GB, free: 4.723 MB / 362.7 MB Notification: Performance of SimCode: time 1.062e-06/0.2557, allocations: 0 / 0.5155 GB, free: 4.723 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02013/0.2758, allocations: 1.468 MB / 0.517 GB, free: 3.266 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003322/0.2762, allocations: 202.5 kB / 0.5172 GB, free: 3.023 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.347/2.624, allocations: 0 / 0.5172 GB, free: 3.023 MB / 362.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