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.0009093/0.0009094, allocations: 88.84 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009955/0.0009957, allocations: 204.7 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.403/1.403, allocations: 227.3 MB / 245.9 MB, free: 12.02 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003105/0.0003105, allocations: 8 kB / 306.7 MB, free: 1.461 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1319/0.1323, allocations: 51.49 MB / 358.2 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample): time 0.002469/0.1348, allocations: 1.285 MB / 359.5 MB, free: 12.68 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.000976/0.1358, allocations: 0.4951 MB / 360 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.32e-05/0.1359, allocations: 3.938 kB / 360 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.628e-05/0.136, allocations: 0 / 360 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001316/0.1361, allocations: 19.91 kB / 360 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003061/0.1364, allocations: 47.39 kB / 360 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 9.065e-05/0.1365, allocations: 31.91 kB / 360.1 MB, free: 12.08 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001101/0.1366, allocations: 20.14 kB / 360.1 MB, free: 12.06 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001236/0.1368, allocations: 23.86 kB / 360.1 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.728e-05/0.1369, allocations: 19.88 kB / 360.1 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.289e-05/0.1369, allocations: 0 / 360.1 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.528e-05/0.1369, allocations: 7.984 kB / 360.1 MB, free: 12.01 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.149e-05/0.137, allocations: 11.92 kB / 360.2 MB, free: 12 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.083e-05/0.137, allocations: 33.7 kB / 360.2 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 9.979e-05/0.1371, allocations: 39.94 kB / 360.2 MB, free: 11.92 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.1371, allocations: 0 / 360.2 MB, free: 11.92 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1371, allocations: 0 / 360.2 MB, free: 11.92 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.378e-06/0.1372, allocations: 0 / 360.2 MB, free: 11.92 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.0005202/0.1377, allocations: 371.2 kB / 360.6 MB, free: 11.51 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.622e-05/0.1377, allocations: 8.031 kB / 360.6 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.493e-05/0.1378, allocations: 38.56 kB / 360.6 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000166/0.138, allocations: 19.89 kB / 360.7 MB, free: 11.44 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002681/0.1382, allocations: 201.4 kB / 360.9 MB, free: 11.2 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.418e-06/0.1383, allocations: 0 / 360.9 MB, free: 11.2 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.745e-05/0.1383, allocations: 7.984 kB / 360.9 MB, free: 11.2 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000287/0.1386, allocations: 109.9 kB / 361 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.906e-06/0.1386, allocations: 11.98 kB / 361 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.278e-06/0.1386, allocations: 0 / 361 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.1386, allocations: 0 / 361 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.207e-05/0.1387, allocations: 27.92 kB / 361 MB, free: 11.03 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003734/0.1391, allocations: 274.6 kB / 361.3 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001256/0.1392, allocations: 75.78 kB / 361.4 MB, free: 10.6 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.592e-05/0.1393, allocations: 3.938 kB / 361.4 MB, free: 10.6 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.779e-05/0.1393, allocations: 34.56 kB / 361.4 MB, free: 10.55 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 1.122e-06/0.1393, allocations: 4.062 kB / 361.4 MB, free: 10.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002748/0.1396, allocations: 85.52 kB / 361.5 MB, free: 10.46 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.333e-05/0.1397, allocations: 111.1 kB / 361.6 MB, free: 10.33 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001267/0.1398, allocations: 145.8 kB / 361.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.43e-05/0.1399, allocations: 25.7 kB / 361.8 MB, free: 10.14 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.905e-05/0.1399, allocations: 88.05 kB / 361.8 MB, free: 10.05 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.849e-05/0.14, allocations: 15.92 kB / 361.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.816e-06/0.14, allocations: 0 / 361.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.1401, allocations: 318.8 kB / 362.2 MB, free: 9.719 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.485e-05/0.1402, allocations: 11.98 kB / 362.2 MB, free: 9.707 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.119e-05/0.1402, allocations: 35.44 kB / 362.2 MB, free: 9.66 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.266e-05/0.1403, allocations: 15.98 kB / 362.2 MB, free: 9.645 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.1403, allocations: 0 / 362.2 MB, free: 9.645 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001405/0.1404, allocations: 81.45 kB / 362.3 MB, free: 9.559 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/0.1405, allocations: 8 kB / 362.3 MB, free: 9.551 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.1405, allocations: 0 / 362.3 MB, free: 9.551 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.166e-05/0.1405, allocations: 0 / 362.3 MB, free: 9.551 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.144e-05/0.1406, allocations: 12 kB / 362.3 MB, free: 9.539 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.029e-06/0.1406, allocations: 3.938 kB / 362.3 MB, free: 9.535 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.274e-05/0.1406, allocations: 8.109 kB / 362.3 MB, free: 9.527 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.965e-06/0.1407, allocations: 4 kB / 362.3 MB, free: 9.523 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 9.277e-05/0.1408, allocations: 121.8 kB / 362.5 MB, free: 9.395 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.715e-05/0.1408, allocations: 53.53 kB / 362.5 MB, free: 9.336 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.606e-05/0.1409, allocations: 15.83 kB / 362.5 MB, free: 9.316 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.1409, allocations: 0 / 362.5 MB, free: 9.316 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.409e-06/0.1409, allocations: 0 / 362.5 MB, free: 9.316 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.1409, allocations: 4 kB / 362.5 MB, free: 9.312 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001821/0.1411, allocations: 177.6 kB / 362.7 MB, free: 9.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.1411, allocations: 8.062 kB / 362.7 MB, free: 9.082 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.859e-05/0.1412, allocations: 8 kB / 362.7 MB, free: 9.074 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.1412, allocations: 0 / 362.7 MB, free: 9.074 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.724e-06/0.1412, allocations: 0 / 362.7 MB, free: 9.074 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.576e-06/0.1412, allocations: 4 kB / 362.7 MB, free: 9.07 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.1412, allocations: 7.969 kB / 362.7 MB, free: 9.062 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002656/0.1415, allocations: 208.5 kB / 362.9 MB, free: 8.824 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.717e-05/0.1416, allocations: 93 kB / 363 MB, free: 8.715 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.555e-05/0.1416, allocations: 0 / 363 MB, free: 8.715 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.699e-05/0.1416, allocations: 4 kB / 363 MB, free: 8.711 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.249e-05/0.1417, allocations: 4 kB / 363 MB, free: 8.707 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.807e-06/0.1417, allocations: 4 kB / 363 MB, free: 8.703 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.807e-05/0.1418, allocations: 117.6 kB / 363.2 MB, free: 8.59 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1418, allocations: 0 / 363.2 MB, free: 8.59 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002259/0.142, allocations: 8 kB / 363.2 MB, free: 8.582 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.0005657/0.1426, allocations: 0.8705 MB / 364 MB, free: 7.668 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001487/0.1428, allocations: 40.28 kB / 364.1 MB, free: 7.629 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1428, allocations: 4.062 kB / 364.1 MB, free: 7.625 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.885e-05/0.1428, allocations: 15.94 kB / 364.1 MB, free: 7.609 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003079/0.1431, allocations: 27.94 kB / 364.1 MB, free: 7.582 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001157/0.1443, allocations: 0.9793 MB / 365.1 MB, free: 6.535 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000374/0.1447, allocations: 0.6965 MB / 365.8 MB, free: 5.812 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.879e-05/0.1447, allocations: 7.938 kB / 365.8 MB, free: 5.805 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.15e-05/0.1448, allocations: 19.48 kB / 365.8 MB, free: 5.785 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1448, allocations: 4 kB / 365.8 MB, free: 5.781 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01264/0.1574, allocations: 1.448 MB / 367.3 MB, free: 4.484 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002833/0.1578, allocations: 191.2 kB / 367.5 MB, free: 4.242 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.886/2.044, allocations: 0 / 367.5 MB, free: 4.242 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