Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009303/0.0009304, allocations: 92.27 kB / 16.3 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009074/0.0009075, allocations: 185 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.376/1.376, allocations: 223.2 MB / 241.1 MB, free: 5.375 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000273/0.000273, allocations: 4.906 kB / 300.8 MB, free: 6.047 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1159, allocations: 50.42 MB / 351.2 MB, free: 11.61 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.002275/0.1182, allocations: 1.251 MB / 352.5 MB, free: 10.35 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008276/0.119, allocations: 467.2 kB / 352.9 MB, free: 9.887 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.12e-05/0.1191, allocations: 0 / 352.9 MB, free: 9.887 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.33e-05/0.1192, allocations: 3.984 kB / 352.9 MB, free: 9.883 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001284/0.1193, allocations: 19.86 kB / 353 MB, free: 9.863 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002825/0.1196, allocations: 39.02 kB / 353 MB, free: 9.828 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.839e-05/0.1197, allocations: 27.97 kB / 353 MB, free: 9.801 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001059/0.1198, allocations: 24.09 kB / 353 MB, free: 9.777 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.639e-05/0.1199, allocations: 27.8 kB / 353.1 MB, free: 9.75 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.592e-05/0.12, allocations: 11.94 kB / 353.1 MB, free: 9.738 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.711e-05/0.12, allocations: 3.984 kB / 353.1 MB, free: 9.734 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.35e-05/0.12, allocations: 0 / 353.1 MB, free: 9.734 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.75e-05/0.1201, allocations: 15.92 kB / 353.1 MB, free: 9.719 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.235e-05/0.1201, allocations: 33.7 kB / 353.1 MB, free: 9.68 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 7.655e-05/0.1202, allocations: 35.88 kB / 353.2 MB, free: 9.645 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.073e-06/0.1202, allocations: 0 / 353.2 MB, free: 9.645 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1202, allocations: 4 kB / 353.2 MB, free: 9.641 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.509e-06/0.1202, allocations: 0 / 353.2 MB, free: 9.641 MB / 286.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.0004954/0.1207, allocations: 363.1 kB / 353.5 MB, free: 9.238 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.536e-05/0.1208, allocations: 8.031 kB / 353.5 MB, free: 9.23 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.482e-05/0.1208, allocations: 38.55 kB / 353.6 MB, free: 9.184 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.295e-05/0.1209, allocations: 11.86 kB / 353.6 MB, free: 9.172 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002195/0.1211, allocations: 190.8 kB / 353.8 MB, free: 8.945 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.021e-05/0.1211, allocations: 4 kB / 353.8 MB, free: 8.941 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.246e-05/0.1211, allocations: 8 kB / 353.8 MB, free: 8.934 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002839/0.1214, allocations: 105 kB / 353.9 MB, free: 8.812 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.296e-06/0.1214, allocations: 0 / 353.9 MB, free: 8.812 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.308e-05/0.1215, allocations: 3.953 kB / 353.9 MB, free: 8.809 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.064e-06/0.1215, allocations: 7.875 kB / 353.9 MB, free: 8.801 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.085e-05/0.1216, allocations: 27.98 kB / 353.9 MB, free: 8.773 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003213/0.1219, allocations: 253.8 kB / 354.2 MB, free: 8.473 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.395e-05/0.122, allocations: 53.14 kB / 354.2 MB, free: 8.402 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.708e-05/0.122, allocations: 0 / 354.2 MB, free: 8.402 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.579e-05/0.122, allocations: 42.52 kB / 354.3 MB, free: 8.352 MB / 286.1 MB Notification: Performance of pre-optimization done (n=2): time 8.51e-07/0.122, allocations: 0 / 354.3 MB, free: 8.352 MB / 286.1 MB Notification: Performance of matching and sorting (n=2): time 0.00024/0.1223, allocations: 77.8 kB / 354.3 MB, free: 8.27 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001392/0.1224, allocations: 77.11 kB / 354.4 MB, free: 8.176 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000116/0.1226, allocations: 140.8 kB / 354.6 MB, free: 8.031 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.924e-05/0.1226, allocations: 33.69 kB / 354.6 MB, free: 7.992 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001084/0.1227, allocations: 88.14 kB / 354.7 MB, free: 7.902 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.47e-05/0.1227, allocations: 3.906 kB / 354.7 MB, free: 7.898 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.846e-06/0.1227, allocations: 3.938 kB / 354.7 MB, free: 7.895 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002447/0.123, allocations: 318.9 kB / 355 MB, free: 7.574 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.064e-05/0.123, allocations: 11.98 kB / 355 MB, free: 7.562 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.9e-05/0.1231, allocations: 17.72 kB / 355 MB, free: 7.539 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.315e-05/0.1231, allocations: 15.98 kB / 355 MB, free: 7.523 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.1231, allocations: 0 / 355 MB, free: 7.523 MB / 286.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001159/0.1233, allocations: 65.64 kB / 355.1 MB, free: 7.453 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.1233, allocations: 4 kB / 355.1 MB, free: 7.449 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.1233, allocations: 0 / 355.1 MB, free: 7.449 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.288e-05/0.1233, allocations: 4 kB / 355.1 MB, free: 7.445 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.092e-05/0.1234, allocations: 11.98 kB / 355.1 MB, free: 7.434 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.599e-06/0.1234, allocations: 0 / 355.1 MB, free: 7.434 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.603e-05/0.1234, allocations: 4.062 kB / 355.1 MB, free: 7.43 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.953e-06/0.1234, allocations: 4 kB / 355.1 MB, free: 7.426 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (2): * Single equations (assignments): 2 * 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 7.932e-05/0.1235, allocations: 117.8 kB / 355.2 MB, free: 7.301 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.613e-05/0.1236, allocations: 41.56 kB / 355.3 MB, free: 7.254 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.183e-05/0.1236, allocations: 15.81 kB / 355.3 MB, free: 7.234 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.1236, allocations: 3.984 kB / 355.3 MB, free: 7.23 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.1237, allocations: 0 / 355.3 MB, free: 7.23 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.1237, allocations: 0 / 355.3 MB, free: 7.23 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001719/0.1238, allocations: 169.7 kB / 355.5 MB, free: 7.016 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.1238, allocations: 7.969 kB / 355.5 MB, free: 7.008 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001557/0.124, allocations: 4 kB / 355.5 MB, free: 7.004 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.124, allocations: 4 kB / 355.5 MB, free: 7 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.053e-05/0.124, allocations: 3.953 kB / 355.5 MB, free: 6.996 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.124, allocations: 0 / 355.5 MB, free: 6.996 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.124, allocations: 0 / 355.5 MB, free: 6.996 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001864/0.1242, allocations: 178 kB / 355.7 MB, free: 6.797 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.765e-05/0.1243, allocations: 92.95 kB / 355.8 MB, free: 6.688 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.56e-05/0.1243, allocations: 3.938 kB / 355.8 MB, free: 6.684 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.199e-05/0.1244, allocations: 4 kB / 355.8 MB, free: 6.68 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.286e-05/0.1245, allocations: 3.984 kB / 355.8 MB, free: 6.676 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.823e-06/0.1245, allocations: 8 kB / 355.8 MB, free: 6.668 MB / 286.1 MB Notification: Performance of sorting global known variables: time 8.193e-05/0.1245, allocations: 112.8 kB / 355.9 MB, free: 6.559 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1246, allocations: 0 / 355.9 MB, free: 6.559 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002113/0.1248, allocations: 4 kB / 355.9 MB, free: 6.555 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (2): * Single equations (assignments): 2 * 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.0005661/0.1253, allocations: 0.7797 MB / 356.7 MB, free: 5.742 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001402/0.1255, allocations: 27.92 kB / 356.7 MB, free: 5.715 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1255, allocations: 0 / 356.7 MB, free: 5.715 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 4.058e-05/0.1255, allocations: 11.98 kB / 356.7 MB, free: 5.703 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003187/0.1259, allocations: 20.23 kB / 356.7 MB, free: 5.684 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009541/0.1268, allocations: 0.6394 MB / 357.4 MB, free: 4.984 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000441/0.1273, allocations: 0.6926 MB / 358.1 MB, free: 4.266 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.117e-05/0.1273, allocations: 7.984 kB / 358.1 MB, free: 4.258 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.118e-05/0.1274, allocations: 15.5 kB / 358.1 MB, free: 4.242 MB / 286.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1274, allocations: 0 / 358.1 MB, free: 4.242 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01166/0.1391, allocations: 1.36 MB / 359.4 MB, free: 3.035 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001724/0.1393, allocations: 188.7 kB / 359.6 MB, free: 2.801 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.639/1.778, allocations: 4.062 kB / 359.6 MB, free: 2.797 MB / 286.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.mat does not exist to compare? outputFormat=mat