Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.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.RealSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001314/0.001315, allocations: 94.56 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.00134/0.00134, allocations: 184 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.401/1.401, allocations: 223.2 MB / 241.1 MB, free: 5.453 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002587/0.0002587, allocations: 6.031 kB / 300.8 MB, free: 6.34 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1057, allocations: 50.42 MB / 351.2 MB, free: 11.76 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample): time 0.001858/0.1076, allocations: 1.271 MB / 352.5 MB, free: 10.48 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007007/0.1083, allocations: 471.2 kB / 353 MB, free: 10.02 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.815e-05/0.1084, allocations: 3.938 kB / 353 MB, free: 10.01 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.598e-05/0.1085, allocations: 0 / 353 MB, free: 10.01 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001226/0.1086, allocations: 11.92 kB / 353 MB, free: 10 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002653/0.1089, allocations: 39.89 kB / 353 MB, free: 9.961 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 8.805e-05/0.109, allocations: 35.89 kB / 353.1 MB, free: 9.926 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.801e-05/0.1091, allocations: 16.12 kB / 353.1 MB, free: 9.91 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.056e-05/0.1092, allocations: 19.91 kB / 353.1 MB, free: 9.891 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.318e-05/0.1092, allocations: 23.86 kB / 353.1 MB, free: 9.867 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.306e-05/0.1093, allocations: 0 / 353.1 MB, free: 9.867 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.411e-05/0.1093, allocations: 4 kB / 353.1 MB, free: 9.863 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.26e-05/0.1093, allocations: 7.938 kB / 353.1 MB, free: 9.855 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001128/0.1094, allocations: 33.7 kB / 353.2 MB, free: 9.816 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 7.881e-05/0.1095, allocations: 35.92 kB / 353.2 MB, free: 9.781 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.564e-06/0.1095, allocations: 0 / 353.2 MB, free: 9.781 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1095, allocations: 4 kB / 353.2 MB, free: 9.777 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.807e-06/0.1095, allocations: 0 / 353.2 MB, free: 9.777 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.0005118/0.1101, allocations: 370.9 kB / 353.6 MB, free: 9.367 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.151e-05/0.1101, allocations: 12.03 kB / 353.6 MB, free: 9.355 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.14e-05/0.1102, allocations: 38.55 kB / 353.6 MB, free: 9.309 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.001e-05/0.1102, allocations: 11.86 kB / 353.6 MB, free: 9.297 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002099/0.1104, allocations: 190.9 kB / 353.8 MB, free: 9.07 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.145e-06/0.1104, allocations: 0 / 353.8 MB, free: 9.07 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.27e-05/0.1105, allocations: 4 kB / 353.8 MB, free: 9.066 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002793/0.1107, allocations: 121.9 kB / 353.9 MB, free: 8.926 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.773e-06/0.1108, allocations: 0 / 353.9 MB, free: 8.926 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.968e-06/0.1108, allocations: 3.953 kB / 353.9 MB, free: 8.922 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.979e-06/0.1108, allocations: 0 / 353.9 MB, free: 8.922 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.059e-05/0.1109, allocations: 31.92 kB / 354 MB, free: 8.891 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003858/0.1113, allocations: 270.7 kB / 354.2 MB, free: 8.57 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001176/0.1114, allocations: 75.78 kB / 354.3 MB, free: 8.469 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.675e-05/0.1114, allocations: 7.984 kB / 354.3 MB, free: 8.461 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.743e-05/0.1115, allocations: 42.52 kB / 354.4 MB, free: 8.41 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 1.433e-06/0.1115, allocations: 0 / 354.4 MB, free: 8.41 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002817/0.1118, allocations: 89.52 kB / 354.4 MB, free: 8.316 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.41e-05/0.1119, allocations: 110.8 kB / 354.5 MB, free: 8.184 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001426/0.112, allocations: 144.7 kB / 354.7 MB, free: 8.035 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.923e-05/0.112, allocations: 25.7 kB / 354.7 MB, free: 8.004 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.589e-05/0.1121, allocations: 96.5 kB / 354.8 MB, free: 7.906 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.819e-05/0.1121, allocations: 7.906 kB / 354.8 MB, free: 7.898 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.136e-06/0.1121, allocations: 0 / 354.8 MB, free: 7.898 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001582/0.1123, allocations: 310.8 kB / 355.1 MB, free: 7.586 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.674e-05/0.1124, allocations: 15.98 kB / 355.1 MB, free: 7.57 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.546e-05/0.1124, allocations: 31.42 kB / 355.2 MB, free: 7.527 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.617e-05/0.1125, allocations: 23.94 kB / 355.2 MB, free: 7.504 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.1125, allocations: 0 / 355.2 MB, free: 7.504 MB / 286.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002265/0.1127, allocations: 77.69 kB / 355.3 MB, free: 7.422 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.713e-05/0.1128, allocations: 11.94 kB / 355.3 MB, free: 7.41 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.1128, allocations: 0 / 355.3 MB, free: 7.41 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.443e-05/0.1128, allocations: 4 kB / 355.3 MB, free: 7.406 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.11e-05/0.1129, allocations: 8 kB / 355.3 MB, free: 7.398 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.037e-06/0.1129, allocations: 3.984 kB / 355.3 MB, free: 7.395 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.643e-05/0.1129, allocations: 7.906 kB / 355.3 MB, free: 7.387 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.033e-05/0.113, allocations: 4 kB / 355.3 MB, free: 7.383 MB / 286.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 9e-05/0.113, allocations: 113.8 kB / 355.4 MB, free: 7.262 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001566/0.1132, allocations: 61.48 kB / 355.5 MB, free: 7.195 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.05e-05/0.1133, allocations: 11.88 kB / 355.5 MB, free: 7.18 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.1133, allocations: 0 / 355.5 MB, free: 7.18 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.1133, allocations: 4 kB / 355.5 MB, free: 7.176 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.964e-06/0.1133, allocations: 7.922 kB / 355.5 MB, free: 7.168 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001984/0.1135, allocations: 173.6 kB / 355.7 MB, free: 6.949 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.1135, allocations: 0 / 355.7 MB, free: 6.949 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.811e-05/0.1136, allocations: 8 kB / 355.7 MB, free: 6.941 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.1136, allocations: 0 / 355.7 MB, free: 6.941 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.526e-05/0.1136, allocations: 16 kB / 355.7 MB, free: 6.926 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.1136, allocations: 0 / 355.7 MB, free: 6.926 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1136, allocations: 0 / 355.7 MB, free: 6.926 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002509/0.1139, allocations: 208.5 kB / 355.9 MB, free: 6.688 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.82e-05/0.114, allocations: 93 kB / 356 MB, free: 6.578 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.929e-05/0.114, allocations: 4 kB / 356 MB, free: 6.574 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.968e-05/0.1141, allocations: 4 kB / 356 MB, free: 6.57 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.583e-05/0.1141, allocations: 0 / 356 MB, free: 6.57 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.032e-06/0.1141, allocations: 3.984 kB / 356 MB, free: 6.566 MB / 286.1 MB Notification: Performance of sorting global known variables: time 9.133e-05/0.1142, allocations: 107.3 kB / 356.1 MB, free: 6.461 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1142, allocations: 0 / 356.1 MB, free: 6.461 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002382/0.1145, allocations: 12 kB / 356.1 MB, free: 6.449 MB / 286.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.0005635/0.115, allocations: 0.881 MB / 357 MB, free: 5.531 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001379/0.1152, allocations: 31.92 kB / 357 MB, free: 5.5 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1152, allocations: 0 / 357 MB, free: 5.5 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 4.655e-05/0.1152, allocations: 16.23 kB / 357 MB, free: 5.484 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003079/0.1156, allocations: 29.56 kB / 357.1 MB, free: 5.457 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001102/0.1167, allocations: 0.9802 MB / 358.1 MB, free: 4.406 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002433/0.1169, allocations: 0.6965 MB / 358.7 MB, free: 3.684 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 2.828e-05/0.117, allocations: 192 / 358.7 MB, free: 3.684 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.432e-05/0.117, allocations: 23.42 kB / 358.8 MB, free: 3.66 MB / 286.1 MB Notification: Performance of SimCode: time 3.11e-07/0.117, allocations: 0 / 358.8 MB, free: 3.66 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0107/0.1277, allocations: 1.451 MB / 360.2 MB, free: 2.359 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001762/0.1279, allocations: 199.5 kB / 360.4 MB, free: 2.113 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.85/1.978, allocations: 2.25 kB / 360.4 MB, free: 2.113 MB / 286.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample_res.mat does not exist to compare? outputFormat=mat