Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.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.BackSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008732/0.0008731, allocations: 99.33 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000938/0.0009382, allocations: 206.1 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.447/1.447, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002343/0.0002341, allocations: 8 kB / 306.7 MB, free: 1.258 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.121, allocations: 51.5 MB / 358.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample): time 0.002347/0.1234, allocations: 1.32 MB / 359.5 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001119/0.1246, allocations: 0.5224 MB / 360 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001345/0.1247, allocations: 0 / 360 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 5.837e-05/0.1248, allocations: 3.938 kB / 360.1 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001935/0.125, allocations: 19.86 kB / 360.1 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004194/0.1254, allocations: 51.81 kB / 360.1 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001234/0.1255, allocations: 35.95 kB / 360.2 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001286/0.1257, allocations: 15.97 kB / 360.2 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001318/0.1258, allocations: 31.86 kB / 360.2 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.48e-05/0.1259, allocations: 27.84 kB / 360.2 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.277e-05/0.1259, allocations: 0 / 360.2 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.127e-05/0.126, allocations: 7.938 kB / 360.2 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.819e-05/0.126, allocations: 11.94 kB / 360.2 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.374e-05/0.1261, allocations: 33.7 kB / 360.3 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001285/0.1262, allocations: 51.84 kB / 360.3 MB, free: 11.62 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1262, allocations: 0 / 360.3 MB, free: 11.62 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.1262, allocations: 0 / 360.3 MB, free: 11.62 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.175e-06/0.1262, allocations: 0 / 360.3 MB, free: 11.62 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005776/0.1268, allocations: 383.2 kB / 360.7 MB, free: 11.2 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.175e-05/0.1269, allocations: 8.031 kB / 360.7 MB, free: 11.19 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.674e-05/0.1269, allocations: 34.56 kB / 360.7 MB, free: 11.15 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001774/0.1271, allocations: 27.8 kB / 360.8 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002482/0.1274, allocations: 194.3 kB / 361 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.022e-05/0.1274, allocations: 0 / 361 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.04e-05/0.1274, allocations: 11.95 kB / 361 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003531/0.1278, allocations: 138.7 kB / 361.1 MB, free: 10.72 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.134e-05/0.1278, allocations: 0 / 361.1 MB, free: 10.72 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.266e-05/0.1278, allocations: 7.938 kB / 361.1 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.582e-06/0.1278, allocations: 0 / 361.1 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001015/0.1279, allocations: 31.92 kB / 361.2 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004143/0.1284, allocations: 287.5 kB / 361.4 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001799/0.1286, allocations: 102.4 kB / 361.5 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.791e-05/0.1286, allocations: 0 / 361.5 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.229e-05/0.1286, allocations: 46.61 kB / 361.6 MB, free: 10.15 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.002e-06/0.1286, allocations: 0 / 361.6 MB, free: 10.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003571/0.129, allocations: 105.4 kB / 361.7 MB, free: 10.04 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001073/0.1291, allocations: 137 kB / 361.8 MB, free: 9.879 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000146/0.1293, allocations: 150.4 kB / 362 MB, free: 9.719 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.644e-05/0.1293, allocations: 25.7 kB / 362 MB, free: 9.688 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.64e-05/0.1294, allocations: 96.31 kB / 362.1 MB, free: 9.59 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.657e-05/0.1294, allocations: 4 kB / 362.1 MB, free: 9.586 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.767e-06/0.1294, allocations: 4 kB / 362.1 MB, free: 9.582 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001344/0.1296, allocations: 318.8 kB / 362.4 MB, free: 9.262 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.388e-05/0.1296, allocations: 8 kB / 362.4 MB, free: 9.254 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.102e-05/0.1297, allocations: 53.14 kB / 362.5 MB, free: 9.184 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.556e-05/0.1297, allocations: 23.98 kB / 362.5 MB, free: 9.16 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.1297, allocations: 0 / 362.5 MB, free: 9.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001615/0.1299, allocations: 97.34 kB / 362.6 MB, free: 9.059 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.297e-05/0.1299, allocations: 4 kB / 362.6 MB, free: 9.055 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.1299, allocations: 0 / 362.6 MB, free: 9.055 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.738e-05/0.13, allocations: 4 kB / 362.6 MB, free: 9.051 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.946e-05/0.1301, allocations: 20.12 kB / 362.6 MB, free: 9.031 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.864e-06/0.1301, allocations: 3.984 kB / 362.6 MB, free: 9.027 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.154e-05/0.1301, allocations: 11.98 kB / 362.6 MB, free: 9.016 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.035e-05/0.1302, allocations: 4 kB / 362.6 MB, free: 9.012 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (6): * Single equations (assignments): 6 * 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.0001023/0.1303, allocations: 124.2 kB / 362.7 MB, free: 8.883 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001013/0.1304, allocations: 69.48 kB / 362.8 MB, free: 8.809 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.981e-05/0.1304, allocations: 19.94 kB / 362.8 MB, free: 8.785 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.1304, allocations: 4.094 kB / 362.8 MB, free: 8.781 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.353e-06/0.1304, allocations: 4 kB / 362.8 MB, free: 8.777 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.561e-06/0.1305, allocations: 4 kB / 362.8 MB, free: 8.773 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002015/0.1307, allocations: 177.5 kB / 363 MB, free: 8.551 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.1307, allocations: 3.938 kB / 363 MB, free: 8.547 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.199e-05/0.1307, allocations: 19.92 kB / 363 MB, free: 8.527 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.1308, allocations: 3.953 kB / 363 MB, free: 8.523 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.561e-05/0.1308, allocations: 11.98 kB / 363.1 MB, free: 8.512 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.1308, allocations: 0 / 363.1 MB, free: 8.512 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.1308, allocations: 0 / 363.1 MB, free: 8.512 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000253/0.1311, allocations: 235.1 kB / 363.3 MB, free: 8.238 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.081e-05/0.1311, allocations: 100.9 kB / 363.4 MB, free: 8.121 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.643e-05/0.1312, allocations: 0 / 363.4 MB, free: 8.121 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.163e-05/0.1312, allocations: 4 kB / 363.4 MB, free: 8.117 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.772e-05/0.1313, allocations: 3.984 kB / 363.4 MB, free: 8.113 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.821e-06/0.1313, allocations: 4 kB / 363.4 MB, free: 8.109 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.275e-05/0.1314, allocations: 118.5 kB / 363.5 MB, free: 7.996 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1314, allocations: 0 / 363.5 MB, free: 7.996 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000236/0.1316, allocations: 8 kB / 363.5 MB, free: 7.988 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (6): * Single equations (assignments): 6 * 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.0005506/0.1322, allocations: 0.9731 MB / 364.5 MB, free: 6.965 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001528/0.1324, allocations: 47.91 kB / 364.5 MB, free: 6.918 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.1324, allocations: 384 / 364.5 MB, free: 6.918 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.954e-05/0.1324, allocations: 12 kB / 364.6 MB, free: 6.906 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003473/0.1328, allocations: 47.72 kB / 364.6 MB, free: 6.859 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001365/0.1341, allocations: 1.337 MB / 365.9 MB, free: 5.441 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003475/0.1345, allocations: 0.7043 MB / 366.6 MB, free: 4.711 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.448e-05/0.1346, allocations: 0.6719 kB / 366.6 MB, free: 4.711 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.329e-05/0.1346, allocations: 27.36 kB / 366.7 MB, free: 4.684 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1346, allocations: 0 / 366.7 MB, free: 4.684 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01188/0.1465, allocations: 1.739 MB / 368.4 MB, free: 3.098 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001699/0.1467, allocations: 196.8 kB / 368.6 MB, free: 2.852 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.85/1.997, allocations: 0 / 368.6 MB, free: 2.852 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample_res.mat does not exist to compare? outputFormat=mat