Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.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.ClockSignals.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001037/0.001037, allocations: 101.3 kB / 17 MB, free: 6.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001324/0.001325, allocations: 193.9 kB / 17.9 MB, free: 5.91 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.531/1.531, allocations: 227.3 MB / 246 MB, free: 11.98 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002284/0.0002285, allocations: 8 kB / 306.8 MB, free: 1.477 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1081, allocations: 51.49 MB / 358.3 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample): time 0.001749/0.1099, allocations: 1.254 MB / 359.6 MB, free: 12.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008133/0.1107, allocations: 0.4951 MB / 360.1 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.944e-05/0.1108, allocations: 0 / 360.1 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.847e-05/0.1108, allocations: 7.922 kB / 360.1 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001097/0.1109, allocations: 7.938 kB / 360.1 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002434/0.1112, allocations: 51.89 kB / 360.1 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 8.339e-05/0.1113, allocations: 35.86 kB / 360.2 MB, free: 12.13 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.616e-05/0.1114, allocations: 19.97 kB / 360.2 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001048/0.1115, allocations: 19.92 kB / 360.2 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.001e-05/0.1115, allocations: 19.86 kB / 360.2 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.099e-05/0.1116, allocations: 0 / 360.2 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.572e-05/0.1116, allocations: 4 kB / 360.2 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.071e-05/0.1116, allocations: 11.98 kB / 360.2 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.65e-05/0.1117, allocations: 41.64 kB / 360.3 MB, free: 12.01 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 8.562e-05/0.1118, allocations: 39.92 kB / 360.3 MB, free: 11.97 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.167e-06/0.1118, allocations: 0 / 360.3 MB, free: 11.97 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1118, allocations: 0 / 360.3 MB, free: 11.97 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.687e-06/0.1118, allocations: 0 / 360.3 MB, free: 11.97 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.0004268/0.1122, allocations: 371.2 kB / 360.7 MB, free: 11.56 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.251e-05/0.1123, allocations: 8.031 kB / 360.7 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.153e-05/0.1123, allocations: 34.56 kB / 360.7 MB, free: 11.51 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001354/0.1125, allocations: 23.89 kB / 360.7 MB, free: 11.48 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001804/0.1127, allocations: 194.3 kB / 360.9 MB, free: 11.26 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.845e-06/0.1127, allocations: 0 / 360.9 MB, free: 11.26 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.231e-05/0.1127, allocations: 8 kB / 360.9 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002568/0.1129, allocations: 117 kB / 361 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.302e-06/0.113, allocations: 0 / 361 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.754e-06/0.113, allocations: 0 / 361 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.113, allocations: 0 / 361 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.45e-05/0.1131, allocations: 19.98 kB / 361.1 MB, free: 11.1 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003074/0.1134, allocations: 273.6 kB / 361.3 MB, free: 10.78 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.608e-05/0.1135, allocations: 37.28 kB / 361.4 MB, free: 10.72 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.789e-05/0.1135, allocations: 33.58 kB / 361.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.973e-05/0.1136, allocations: 4 kB / 361.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.376e-05/0.1136, allocations: 34.56 kB / 361.4 MB, free: 10.64 MB / 302.1 MB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/0.1136, allocations: 0 / 361.4 MB, free: 10.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002316/0.1138, allocations: 77.52 kB / 361.5 MB, free: 10.55 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.43e-05/0.1139, allocations: 77.11 kB / 361.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001175/0.1141, allocations: 142.4 kB / 361.7 MB, free: 10.31 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.204e-05/0.1141, allocations: 25.7 kB / 361.8 MB, free: 10.28 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.943e-05/0.1141, allocations: 92.12 kB / 361.8 MB, free: 10.18 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.35e-05/0.1142, allocations: 3.906 kB / 361.9 MB, free: 10.18 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.357e-06/0.1142, allocations: 0 / 361.9 MB, free: 10.18 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001174/0.1143, allocations: 318.8 kB / 362.2 MB, free: 9.859 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.322e-05/0.1143, allocations: 7.984 kB / 362.2 MB, free: 9.852 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.311e-05/0.1144, allocations: 29.66 kB / 362.2 MB, free: 9.816 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.123e-05/0.1144, allocations: 11.98 kB / 362.2 MB, free: 9.805 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.1145, allocations: 3.938 kB / 362.2 MB, free: 9.801 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001274/0.1146, allocations: 53.69 kB / 362.3 MB, free: 9.742 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.1146, allocations: 12.12 kB / 362.3 MB, free: 9.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.1146, allocations: 0 / 362.3 MB, free: 9.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.005e-05/0.1146, allocations: 0 / 362.3 MB, free: 9.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.961e-05/0.1147, allocations: 7.984 kB / 362.3 MB, free: 9.723 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.25e-06/0.1147, allocations: 0 / 362.3 MB, free: 9.723 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.498e-05/0.1148, allocations: 4 kB / 362.3 MB, free: 9.719 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.848e-06/0.1148, allocations: 11.89 kB / 362.3 MB, free: 9.707 MB / 302.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 9.052e-05/0.1149, allocations: 118.9 kB / 362.4 MB, free: 9.582 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.661e-05/0.1149, allocations: 37.61 kB / 362.5 MB, free: 9.539 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.048e-05/0.115, allocations: 15.83 kB / 362.5 MB, free: 9.52 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.115, allocations: 0 / 362.5 MB, free: 9.52 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.115, allocations: 4 kB / 362.5 MB, free: 9.516 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.115, allocations: 3.984 kB / 362.5 MB, free: 9.512 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000173/0.1152, allocations: 169.6 kB / 362.6 MB, free: 9.297 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.1152, allocations: 0 / 362.6 MB, free: 9.297 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.539e-05/0.1153, allocations: 11.98 kB / 362.7 MB, free: 9.285 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.1153, allocations: 4 kB / 362.7 MB, free: 9.281 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.612e-06/0.1153, allocations: 0 / 362.7 MB, free: 9.281 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.1153, allocations: 4.031 kB / 362.7 MB, free: 9.277 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.1153, allocations: 0 / 362.7 MB, free: 9.277 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001749/0.1155, allocations: 172.2 kB / 362.8 MB, free: 9.09 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.837e-05/0.1156, allocations: 89 kB / 362.9 MB, free: 8.984 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.424e-05/0.1156, allocations: 4.031 kB / 362.9 MB, free: 8.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.628e-05/0.1157, allocations: 4 kB / 362.9 MB, free: 8.977 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.794e-05/0.1157, allocations: 0 / 362.9 MB, free: 8.977 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.42e-06/0.1157, allocations: 7.938 kB / 362.9 MB, free: 8.969 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.913e-05/0.1158, allocations: 114 kB / 363 MB, free: 8.859 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1158, allocations: 0 / 363 MB, free: 8.859 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002176/0.116, allocations: 4 kB / 363 MB, free: 8.855 MB / 302.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.000448/0.1165, allocations: 0.6975 MB / 363.7 MB, free: 8.125 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001262/0.1166, allocations: 28.08 kB / 363.8 MB, free: 8.098 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.203e-05/0.1166, allocations: 0 / 363.8 MB, free: 8.098 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.137e-05/0.1167, allocations: 19.88 kB / 363.8 MB, free: 8.078 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000328/0.117, allocations: 16.02 kB / 363.8 MB, free: 8.062 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007423/0.1178, allocations: 495.8 kB / 364.3 MB, free: 7.523 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002826/0.1181, allocations: 0.6888 MB / 365 MB, free: 6.809 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.061e-05/0.1181, allocations: 7.891 kB / 365 MB, free: 6.801 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.78e-05/0.1181, allocations: 15.5 kB / 365 MB, free: 6.785 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1181, allocations: 0 / 365 MB, free: 6.785 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01054/0.1287, allocations: 1.281 MB / 366.3 MB, free: 5.656 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002175/0.1289, allocations: 202.8 kB / 366.5 MB, free: 5.41 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.692/1.821, allocations: 0 / 366.5 MB, free: 5.41 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample_res.mat does not exist to compare? outputFormat=mat