Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008937/0.0008937, allocations: 99.8 kB / 17.01 MB, free: 6.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001259/0.001259, allocations: 194.4 kB / 17.91 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.44/1.44, allocations: 227.3 MB / 246 MB, free: 10.26 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003121/0.0003126, allocations: 8 kB / 306.8 MB, free: 1.281 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1239/0.1242, allocations: 51.49 MB / 358.3 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample): time 0.001979/0.1263, allocations: 1.297 MB / 359.6 MB, free: 12.49 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009586/0.1273, allocations: 0.5107 MB / 360.1 MB, free: 11.97 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.946e-05/0.1274, allocations: 0 / 360.1 MB, free: 11.97 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.8e-05/0.1274, allocations: 3.938 kB / 360.1 MB, free: 11.97 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001604/0.1276, allocations: 7.938 kB / 360.1 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003005/0.1279, allocations: 47.89 kB / 360.2 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 9.181e-05/0.128, allocations: 35.86 kB / 360.2 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001089/0.1281, allocations: 24.14 kB / 360.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001182/0.1283, allocations: 27.86 kB / 360.3 MB, free: 11.83 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.552e-05/0.1283, allocations: 11.94 kB / 360.3 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.154e-05/0.1283, allocations: 3.938 kB / 360.3 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.169e-05/0.1284, allocations: 7.984 kB / 360.3 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.41e-05/0.1284, allocations: 8 kB / 360.3 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.173e-05/0.1285, allocations: 37.64 kB / 360.3 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 9.753e-05/0.1286, allocations: 43.86 kB / 360.4 MB, free: 11.71 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.92e-06/0.1286, allocations: 0 / 360.4 MB, free: 11.71 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1286, allocations: 0 / 360.4 MB, free: 11.71 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.409e-06/0.1286, allocations: 4 kB / 360.4 MB, free: 11.71 MB / 302.1 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.0004769/0.1291, allocations: 371.3 kB / 360.7 MB, free: 11.3 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.644e-05/0.1292, allocations: 8.031 kB / 360.7 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.136e-05/0.1292, allocations: 38.56 kB / 360.8 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001461/0.1294, allocations: 19.89 kB / 360.8 MB, free: 11.22 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001888/0.1296, allocations: 185.6 kB / 361 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.42e-05/0.1296, allocations: 15.95 kB / 361 MB, free: 10.99 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.344e-05/0.1296, allocations: 3.984 kB / 361 MB, free: 10.98 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002741/0.1299, allocations: 113.9 kB / 361.1 MB, free: 10.85 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.697e-06/0.1299, allocations: 0 / 361.1 MB, free: 10.85 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.915e-06/0.1299, allocations: 7.938 kB / 361.1 MB, free: 10.84 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.1299, allocations: 4 kB / 361.1 MB, free: 10.84 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.477e-05/0.13, allocations: 27.92 kB / 361.2 MB, free: 10.81 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003267/0.1304, allocations: 270.6 kB / 361.4 MB, free: 10.49 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001134/0.1305, allocations: 75.78 kB / 361.5 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.565e-05/0.1306, allocations: 30.64 kB / 361.5 MB, free: 10.35 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.377e-05/0.1306, allocations: 3.984 kB / 361.5 MB, free: 10.35 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.584e-05/0.1306, allocations: 42.5 kB / 361.6 MB, free: 10.3 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 1.032e-06/0.1306, allocations: 0 / 361.6 MB, free: 10.3 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002601/0.1309, allocations: 85.52 kB / 361.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.043e-05/0.131, allocations: 111.2 kB / 361.8 MB, free: 10.07 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001197/0.1311, allocations: 141.8 kB / 361.9 MB, free: 9.926 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.933e-05/0.1311, allocations: 29.7 kB / 361.9 MB, free: 9.891 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.41e-05/0.1312, allocations: 88.05 kB / 362 MB, free: 9.801 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.539e-05/0.1312, allocations: 0 / 362 MB, free: 9.801 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.212e-06/0.1312, allocations: 4 kB / 362 MB, free: 9.797 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001674/0.1314, allocations: 326.7 kB / 362.3 MB, free: 9.469 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.468e-05/0.1315, allocations: 19.94 kB / 362.4 MB, free: 9.449 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.595e-05/0.1316, allocations: 35.41 kB / 362.4 MB, free: 9.402 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.339e-05/0.1316, allocations: 15.98 kB / 362.4 MB, free: 9.387 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.629e-06/0.1316, allocations: 4 kB / 362.4 MB, free: 9.383 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001431/0.1318, allocations: 69.53 kB / 362.5 MB, free: 9.309 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.115e-05/0.1318, allocations: 8 kB / 362.5 MB, free: 9.301 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.1318, allocations: 0 / 362.5 MB, free: 9.301 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.384e-05/0.1319, allocations: 0 / 362.5 MB, free: 9.301 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.136e-05/0.132, allocations: 15.92 kB / 362.5 MB, free: 9.285 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.969e-06/0.132, allocations: 4 kB / 362.5 MB, free: 9.281 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.425e-05/0.132, allocations: 12.12 kB / 362.5 MB, free: 9.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.006e-06/0.132, allocations: 0 / 362.5 MB, free: 9.27 MB / 302.1 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.0001361/0.1322, allocations: 122.9 kB / 362.6 MB, free: 9.141 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.538e-05/0.1323, allocations: 57.55 kB / 362.7 MB, free: 9.078 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.218e-05/0.1323, allocations: 19.81 kB / 362.7 MB, free: 9.055 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.1323, allocations: 0 / 362.7 MB, free: 9.055 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.1323, allocations: 0 / 362.7 MB, free: 9.055 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.1324, allocations: 4 kB / 362.7 MB, free: 9.051 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002012/0.1326, allocations: 173.7 kB / 362.9 MB, free: 8.832 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.1326, allocations: 3.938 kB / 362.9 MB, free: 8.828 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.418e-05/0.1326, allocations: 11.98 kB / 362.9 MB, free: 8.816 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.1326, allocations: 4 kB / 362.9 MB, free: 8.812 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.237e-06/0.1327, allocations: 0 / 362.9 MB, free: 8.812 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.1327, allocations: 0 / 362.9 MB, free: 8.812 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.1327, allocations: 4 kB / 362.9 MB, free: 8.809 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002125/0.1329, allocations: 189 kB / 363.1 MB, free: 8.602 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.669e-05/0.133, allocations: 89 kB / 363.2 MB, free: 8.496 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.721e-05/0.133, allocations: 0 / 363.2 MB, free: 8.496 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.39e-05/0.1331, allocations: 7.984 kB / 363.2 MB, free: 8.488 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.759e-05/0.1331, allocations: 0 / 363.2 MB, free: 8.488 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.011e-06/0.1331, allocations: 8 kB / 363.2 MB, free: 8.48 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.972e-05/0.1332, allocations: 113.5 kB / 363.3 MB, free: 8.371 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1333, allocations: 0 / 363.3 MB, free: 8.371 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002392/0.1335, allocations: 8 kB / 363.3 MB, free: 8.363 MB / 302.1 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.0005401/0.134, allocations: 0.714 MB / 364 MB, free: 7.613 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001506/0.1342, allocations: 31.92 kB / 364.1 MB, free: 7.582 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.1342, allocations: 0 / 364.1 MB, free: 7.582 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.033e-05/0.1343, allocations: 20.23 kB / 364.1 MB, free: 7.562 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004017/0.1347, allocations: 31.89 kB / 364.1 MB, free: 7.531 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009059/0.1356, allocations: 0.5319 MB / 364.6 MB, free: 6.938 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003323/0.1359, allocations: 0.6926 MB / 365.3 MB, free: 6.219 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.537e-05/0.136, allocations: 15.86 kB / 365.4 MB, free: 6.203 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.178e-05/0.136, allocations: 19.44 kB / 365.4 MB, free: 6.184 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1361, allocations: 0 / 365.4 MB, free: 6.184 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01448/0.1505, allocations: 1.455 MB / 366.8 MB, free: 4.887 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003592/0.151, allocations: 203.8 kB / 367 MB, free: 4.641 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.883/2.034, allocations: 4 kB / 367 MB, free: 4.637 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample_res.mat does not exist to compare? outputFormat=mat